Store Data with Sass Variables Still Not Working

Store Data with Sass Variables Still Not Working
0.0 0

#1

First simple example of SASS.

I think the test isn’t working. Also the next challenge failed as well. Was Sass fixed?

Repeat:
reset all code on page
type $text-color: red; on line 2
replace red with $text-color in CSS line 9
(test still fails)

Tried also deleting lines 8-10 and rewriting the .blog-post and h2 separately and again nothing passes

Screenshot below:

Your code so far


<style type='text/sass'>
  $text-color: red;

  
  .header{
    text-align: center;
  }
  .blog-post, h2 {
    color: $text-color;
  }
</style>

<h1 class="header">Learn Sass</h1>
<div class="blog-post">
  <h2>Some random title</h2>
  <p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
  <h2>Header #2</h2>
  <p>Here is some more random text.</p>
</div>
<div class="blog-post">
  <h2>Here is another header</h2>
  <p>Even more random text within a paragraph</p>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/store-data-with-sass-variables


#2

I was able to get past the challenge.
I will try to cut and paste your code to see if it fails for me but it doesn’t look like the problem is specific to the environment.


#3

when I pasted your code in, it stopped working for me. Then even after I reset, it doesn’t want to accept anything. So it does look like a problem with this challenge. You should open a bug in Github I believe. @ArielLeslie may have further advice.