I am not passing the first lesson of the Sass Units:
https://learn.freecodecamp.org/front-end-libraries/sass/store-data-with-sass-variables
I’ve declared $text-color, assigned red to it and assigned the variable to color, but the consol still says
“// running test
Your .blog-post element should have a color of red.
Your h2 elements should have a color of red.
// tests completed”
Is this a Bug or am I blind and doing something wrong?
Here's my Code
"<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>"