Store Data with Sass Variables error

Store Data with Sass Variables error
0.0 0

#1

Tell us what’s happening:

still giving an error that .blogpost and h2 elements color isn’ t red

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; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0.

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


#2

An issue about this thread is already open: GitHub - FreeCodeCamp Issues