[BUG] Store Data with Sass Variables

Tell us what’s happening:

Is this a bug in FCC’s lesson?

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 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) 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

1 Like

Your code worked fine for me. You might need to reset you code or do a hard refresh of your browser if it is not working for you. :slight_smile:

1 Like

Thanks for responding!

It works but the lesson doesn’t seem to be passing.

It passed fine for for me. Try doing a hard reset of your browser as this should clear the cache and often works:

I will try that out and update after! I sort of skipped ahead, so I’ll finish the responsive stuff first. :slight_smile:

Hi, i’m facing this same problem, the wrote the same code as yours too, the display on the right is updating correctly, but the 2 last tests won’t pass, i’ve tried to reset to reload and to hard reload, to log out and login, but still the same thing :cry: