Skip to content
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

Deprecation warning $weight: Passing a number without unit % (100) is deprecated. #37430

Closed
3 tasks done
MtnBiker opened this issue Nov 4, 2022 · 3 comments
Closed
3 tasks done

Comments

@MtnBiker
Copy link

MtnBiker commented Nov 4, 2022

Prerequisites

Describe the issue

Deprecation warning when compile

Deprecation Warning: $weight: Passing a number without unit % (100) is deprecated.

To preserve current behavior: $weight * 1%

More info: https://sass-lang.com/d/function-units

201 │ @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules/bootstrap/scss/_functions.scss 201:11 opaque()
node_modules/bootstrap/scss/mixins/_table-variants.scss 4:28 table-variant()
node_modules/bootstrap/scss/_tables.scss 147:3 @import
bootstrap/scss/bootstrap.scss 20:9 @import
app/assets/stylesheets/application.bootstrap.scss 1:9 root stylesheet

Reduced test cases

Although a browser is asked for this is compiling in iTerm in a Ruby on Rails application

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

5.2.2

@jakeboone02
Copy link

jakeboone02 commented Nov 4, 2022

This was already fixed by #37425.

Edit: fix was merged, not released yet.

@w4sevens
Copy link

i met the same question!!!

@julien-deramond
Copy link
Member

i met the same question!!!

Answer's here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants