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 Sass 1.56 Passing a number without unit #37441

Closed
3 tasks done
snmabaur opened this issue Nov 7, 2022 · 1 comment
Closed
3 tasks done

Deprecation Warning Sass 1.56 Passing a number without unit #37441

snmabaur opened this issue Nov 7, 2022 · 1 comment

Comments

@snmabaur
Copy link

snmabaur commented Nov 7, 2022

Prerequisites

Describe the issue

I've updated SASS to 1.56 and get the following deprecation warning

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
    node_modules/bootstrap/scss/bootstrap.scss 20:9               @import

Reduced test cases

Add unit (100%)
@function opaque($background, $foreground) { @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%); }

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

@julien-deramond
Copy link
Member

Duplicate of #37424

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

No branches or pull requests

2 participants