Beta - Test Case Broken - Sass: Use @for to Create a Sass Loop
See original GitHub issueChallenge Name
http://beta.freecodecamp.com/en/challenges/sass/use-for-to-create-a-sass-loop?
Issue Description
The test case for this challenge is broken.
SASS does not appear to be working for the in browser editor, as hitting submit doesn’t properly show the SASS changes.
Using an editor like codepen that has sass configured will show that the code does what is instructed.
FCC says it fails these tests, but the code is correct, FCC is wrong. Your .text-1 class should have a font-size of 10px. Your .text-2 class should have a font-size of 20px. Your .text-3 class should have a font-size of 30px. Your .text-4 class should have a font-size of 40px. Your .text-5 class should have a font-size of 50px.
Browser Information
- Browser Name, Version: Chrome
- Operating System: Windows 10
- Mobile, Desktop, or Tablet: Desktop
Your Code
<style>
@for $j from 1 to 6{
.text-#{$j} {font-size: 10px* $j};
}
</style>
<p class="text-1">Hello</p>
<p class="text-2">Hello</p>
<p class="text-3">Hello</p>
<p class="text-4">Hello</p>
<p class="text-5">Hello</p>
Screenshot
Issue Analytics
- State:
- Created 6 years ago
- Comments:31 (6 by maintainers)
Top Results From Across the Web
Use @for to Create a Sass Loop - Sass - Free Code Camp
In this front end libraries certification tutorial we look as SASS where we use @for to create a Sass loop. This video constitutes...
Read more >Use @for to Create a Sass Loop- Answer Correct but no test ...
I need you to open the browser console (Ctrl+Shft+J) and use the Inspector tool to select the preview pane. Once selected, go the...
Read more >Sass loop @mixin and @include - css - Stack Overflow
I have tested your code in https://www.sassmeister.com/ and just added @include generatePadding(3); at the end of it. It's result is:
Read more >Customize Styling | Mendix Documentation
... of apps and create re-usable styling. For progressive and web apps, SASS (SCSS) is used and for native mobile apps JavaScript is...
Read more >gulp-sass - npm
Gulp plugin for sass. Latest version: 5.1.0, last published: a year ago. Start using gulp-sass in your project by running `npm i gulp-sass`....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is working 100%`