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 % (2) is deprecated #38960

Closed
3 tasks done
aaronhernan opened this issue Jul 24, 2023 · 3 comments
Closed
3 tasks done

Comments

@aaronhernan
Copy link

Prerequisites

Describe the issue

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

To preserve current behavior: $weight * 1%

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

212 │ @return mix(black, $color, $weight);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules\bootstrap\scss_functions.scss 212:11 shade-color()

There are serveral "mix" function calls, with the same deprecation warning message.

Reduced test cases

Can be fixed like issue #37430,

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

Windows, Linux

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

Chrome, Firefox

What version of Bootstrap are you using?

5.3.0

@miken32
Copy link

miken32 commented Nov 15, 2023

@aaronhernan why did you close this? It hasn't been fixed

@aaronhernan
Copy link
Author

@miken32 i dont remember exacly why... but after hours, i think it was my fault. I was able to run my code without any warning just changing the include order or bootstrap scss functions. I did a lot of things, and blaming myself at the end.

@miken32
Copy link

miken32 commented Nov 15, 2023

It's not your fault. For some reason they only seem to be fixing this on a one-off basis, rather than finding all uses of the mix() function. Was going to open my own bug but figured since this one is already here...

vite v4.5.0 building for production...
transforming (1) resources/js/rampuser.jsDeprecation Warning: $weight: Passing a number without unit % (48) is deprecated.

To preserve current behavior: $weight * 1%

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

    ╷
212 │   @return mix(black, $color, $weight);
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/bootstrap/scss/_functions.scss 212:11  shade-color()
    node_modules/bootstrap/scss/_functions.scss 217:27  shift-color()
    resources/sass/rampuser.scss 172:12                 root stylesheet

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

To preserve current behavior: $weight * 1%

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

    ╷
207 │   @return mix(white, $color, $weight);
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/bootstrap/scss/_functions.scss 207:11  tint-color()
    node_modules/bootstrap/scss/_functions.scss 217:57  shift-color()
    resources/sass/app.scss 173:17                 root stylesheet

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

2 participants