-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap color map utilities (?bug?) #624
Comments
scssphp 1.x does not fully stick to the spec (dart-sass does, as it is the reference implementation). We have an in-progress rewrite of scssphp for 2.0 to become spec compliant. |
Cheers; didn't want to declare it a bug without knowing for sure if it was you or Bootstrap doing it wrong :-) |
can anybody urgently put a fix in on this? willing to pay, extremely urgent. |
This is essentially the same bug than #504. Our parsing turns those parenthesis into a list containing a single value instead of a parenthesized expression. This is why removing those (useless) parentheses fixes the issue. I'm not sure fixing that in our 1.x codebase is even possible. The root cause of this is that our 1.x parsing is not spec compliant. |
I've encountered a problem using this library to build a custom Bootstrap (5.2.1) custom stylesheet.
To replicate: copying the example directly from https://getbootstrap.com/docs/5.2/customize/color/#generating-utilities will result in and error:
It looks like a problem with the format in
map-get
; specifically, if I modify:and remove the enclosing brackets thusly:
then the error disappears and everything is fine.
However, the original sample code from Bootstrap does compile without error using the Dart SASS that's installed on my system.
I don't know SCSS well enough to know whether the problem is with
scssphp
or if it's sticking to the spec properly and it's only working under Dart because of a bug in the way they handle things - if so, feel free to close this issue :-)The text was updated successfully, but these errors were encountered: