diff --git a/client/src/templates/Challenges/rechallenge/transformers.js b/client/src/templates/Challenges/rechallenge/transformers.js index 3f7bb01e15..90fd88394f 100644 --- a/client/src/templates/Challenges/rechallenge/transformers.js +++ b/client/src/templates/Challenges/rechallenge/transformers.js @@ -177,7 +177,9 @@ function getBabelOptions({ preview = false, protect = true }) { const sassWorker = createWorker(sassCompile); async function transformSASS(element) { - const styleTags = element.querySelectorAll('style[type="text/sass"]'); + // we only teach scss syntax, not sass. Also the compiler does not seem to be + // able to deal with sass. + const styleTags = element.querySelectorAll('style[type~="text/scss"]'); await Promise.all( [].map.call(styleTags, async style => { style.type = 'text/css'; diff --git a/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md b/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md index 5f07537d5b..ed2971c9b2 100644 --- a/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md @@ -60,7 +60,7 @@ tests: