-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
4.4.0 add function compilation is wrong #29743
Comments
@719media
Rolling back to 4.3.1 cancels the issue. P.S. out of curiosity: what words "Erroneous area" could mean in my case? |
I noticed this as well when using the custom-select. Looks like it would affect the subtract function as well. Oddly enough the main Bootstrap website has it working. |
/cc @twbs/css-review |
I can reproduce this with Dart Sass, by running sass scss/bootstrap.scss dist/css/bootstrap-sass.css @twbs/team, we probably need to release a patch for this this week Gonna look into this this evening. |
I can release 4.4.1 when ready, just ping me. Now, even if we did have a dart sass build test, we wouldn't have noticed this either since compilation didn't fail. I think we should add a note in the docs as a warning about the Sass implementation we use, and if people use another one issues might arise. |
@twbs/css-review I checked this. #29743 (comment)) is a solution but it doesn't work on ruby-sass - https://www.sassmeister.com/gist/b8f21c26b379106438151b01ffd629ca Can we ignore the ruby-sass ? because it is already unsupported. If we concern this, |
I think we should keep Ruby Sass support for v4. For v5, and assuming we make it clear in our docs with a huge warning that we only use one Sass implementation and add more info, we can drop support for Ruby Sass. |
Sorry,
is wrong. That support all compiler (dart-dass, libsass and Sass ). I misunderstood the code: |
OMG! Same issue in the subtract! dart-sass: el {
padding: subtract(1rem, subtract(1em, 1px, false)); // output invalid calc(1rem - 1em-1px);
} |
I thought you guys tested it... Please ping me when there's the final and real fix in a PR because I will need to redo the whole thing. |
Damn it, I thought that would work without spaces. Nice catch, @ysds. |
I should have confirmed it, but I overlooked something... |
All good, let's just make sure everything is fine with all Sass implementations this time and ping me in the PR :) |
Hi guys, sorry to come back to this but it seems there's a regression somewhere. I'm using Bootstrap with Laravel and its Laravel Mix SASS compiler and the following error is triggered, only when I'm loading the
Could the |
Ok, sorry for the noise, that was a mistake from my behalf => I did set the |
The bootstrap 4.4 add function doesn't quite work right with sass compilation.
As an example, paste the following
into https://www.sassmeister.com/
You'll notice that the compiled css has some wonkiness:
One option is to interpolate the plus sign in the function, like so:
@return if($return-calc == true, calc(#{$value1} + #{$value2}), #{$value1 '+' $value2});
The text was updated successfully, but these errors were encountered: