Closed makolivaresbbt closed 1 year ago
Currently, we have a mixin function that generates content based on how the user uses it.
@mixin headings($from: 1, $to: 6) { @for $i from $from through $to { h#{ $i } { @content; } } }
If you notice the h#{ $i }, the curly braces return the error below
h#{ $i }
Below are the dependencies that we have
"devDependencies": { "@roots/bud": "^6.9.0", "@roots/bud-eslint": "^6.9.0", "@roots/bud-prettier": "^6.9.0", "@roots/bud-sass": "^6.9.0", "@roots/bud-stylelint": "^6.9.0", "@roots/eslint-config": "^6.9.0", "@roots/bud-entrypoints": "6.9.0", "@roots/bud-postcss": "6.9.0", "@roots/sage": "6.9.0" },
Since this is a SCSS function, this should be working perfectly
but the issue render this error
No response
Sage 10
Let's use your existing support topic on Roots Discourse for the back-and-forth on this — Sage doesn't include Sass out of the box, so this is either an issue with our docs or upstream in bud
Terms
Description
Currently, we have a mixin function that generates content based on how the user uses it.
@mixin headings($from: 1, $to: 6) { @for $i from $from through $to { h#{ $i } { @content; } } }
If you notice the
h#{ $i }
, the curly braces return the error belowBelow are the dependencies that we have
"devDependencies": { "@roots/bud": "^6.9.0", "@roots/bud-eslint": "^6.9.0", "@roots/bud-prettier": "^6.9.0", "@roots/bud-sass": "^6.9.0", "@roots/bud-stylelint": "^6.9.0", "@roots/eslint-config": "^6.9.0", "@roots/bud-entrypoints": "6.9.0", "@roots/bud-postcss": "6.9.0", "@roots/sage": "6.9.0" },
Steps To Reproduce
"devDependencies": { "@roots/bud": "^6.9.0", "@roots/bud-eslint": "^6.9.0", "@roots/bud-prettier": "^6.9.0", "@roots/bud-sass": "^6.9.0", "@roots/bud-stylelint": "^6.9.0", "@roots/eslint-config": "^6.9.0", "@roots/bud-entrypoints": "6.9.0", "@roots/bud-postcss": "6.9.0", "@roots/sage": "6.9.0" },
@mixin headings($from: 1, $to: 6) { @for $i from $from through $to { h#{ $i } { @content; } } }
Expected Behavior
Since this is a SCSS function, this should be working perfectly
Actual Behavior
but the issue render this error
Relevant Log Output
No response
Versions
Sage 10