Release fix for "Deprecation warning $weight: Passing a number without unit % (100) is deprecated" in a patch version? #37467
-
Ref #37425 This is pretty annoying error and even more if you use some error emitter in your dev stack which shows error in overlay above all content on each page load. Of course, one can disable the emitting temporarily or downgrade or whatever, but.. Couldn't be the patch released in new patch version? It doesn't seem to me it has to wait until new minor.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @dakur We are discussing it in the core team and will provide an official answer in this discussion. Just out of curiosity, something like the following couldn't work without a patch release from Bootstrap? @import "../node_modules/bootstrap/scss/functions";
// Override the definition of the function raising the warning
@function opaque($background, $foreground) {
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/maps";
@import "../node_modules/bootstrap/scss/mixins";
@import "../node_modules/bootstrap/scss/root";
// Optionally include any other parts as needed
@import "../node_modules/bootstrap/scss/utilities";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";
@import "../node_modules/bootstrap/scss/images";
@import "../node_modules/bootstrap/scss/containers";
@import "../node_modules/bootstrap/scss/grid";
@import "../node_modules/bootstrap/scss/helpers";
// Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
@import "../node_modules/bootstrap/scss/utilities/api";
// Add additional custom code here |
Beta Was this translation helpful? Give feedback.
-
Good news! |
Beta Was this translation helpful? Give feedback.
Good news!
This patch will be released this week in the v5.2.3. Stay tuned!Edit: This patch is released in the v5.2.3.