Skip to content

Commit

Permalink
Add a line break in a documentation code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
meduzen committed Jul 22, 2019
1 parent b5539e6 commit 3fd3d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Assigning the computed value of a SCSS function follows the same [interpolation
--superColor: var(--secondaryColor); // correct ✅, regular syntax
--superColor: v(secondaryColor); // error 🚫, custom property assignment needs interpolation
--superColor: #{v(secondaryColor)}; // correct ✅, function interpolated with `#{}`

color: v(superColor); // correct ✅, `color` is not a custom property
}
```
Expand Down Expand Up @@ -116,6 +116,7 @@ Other example with three dashes instead of two dashes:
.my-class-with-more-dashes {
--#{'-'}: .5; // correct ✅
#{'---'}: .5; // also correct ✅

opacity: var(#{'---'}); // correct ✅, interpolated
opacity: v('-'); // correct ✅, thanks to v() coolness ✌️
}
Expand Down

0 comments on commit 3fd3d13

Please sign in to comment.