fix(css): rename $prefix
in $func-prefix
in get-color-from-rgba-string
function
#1567
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Issue reported by @Lausselloic with the following project: demo-custom-build.zip
Download the zip file and run
unzip -d demo-custom-build demo-custom-build.zip && cd demo-custom-build/demo-custom-build && npm i && npm run css
Error:
Now open
node_modules/boosted/scss/mixins/_utilities.scss
and modify it to have the same content as in this PR.If you re-run
npm run css
the compilation is now OK.get-color-from-rgba-string
.Motivation & Context
For security, IMO we should apply this patch to avoid unexpected results when having 2
$prefix
definitions.However, I don't understand for now the difference between this build and a fresh build with Vite for example where the issue doesn't seem to appear. It must be linked to:
Types of change
Checklist
npm run lint
)