Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up4.4.0 add function compilation is wrong #29743
Comments
This comment has been minimized.
This comment has been minimized.
@719media
Rolling back to 4.3.1 cancels the issue. P.S. out of curiosity: what words "Erroneous area" could mean in my case? |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
/cc @twbs/css-review |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
@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, |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
Sorry,
is wrong. That support all compiler (dart-dass, libsass and Sass ). I misunderstood the code: |
This comment has been minimized.
This comment has been minimized.
OMG! Same issue in the subtract! dart-sass: el {
padding: subtract(1rem, subtract(1em, 1px, false)); // output invalid calc(1rem - 1em-1px);
} |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
Damn it, I thought that would work without spaces. Nice catch, @ysds. |
This comment has been minimized.
This comment has been minimized.
I should have confirmed it, but I overlooked something... |
This comment has been minimized.
This comment has been minimized.
All good, let's just make sure everything is fine with all Sass implementations this time and ping me in the PR :) |
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});