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 notices with latest Dart Sass 1.77.7 #40622

Closed
3 tasks done
ptdev opened this issue Jul 10, 2024 · 1 comment
Closed
3 tasks done

Deprecation notices with latest Dart Sass 1.77.7 #40622

ptdev opened this issue Jul 10, 2024 · 1 comment

Comments

@ptdev
Copy link

ptdev commented Jul 10, 2024

Prerequisites

Describe the issue

Hello,

We've just updated a project to the latest Dart Sass 1.77.7 and we are now receiving multiple deprecation warnings like these:

Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

    ┌──> node_modules/bootstrap/scss/_reboot.scss
503 │     font-weight: $legend-font-weight;
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declaration
    ╵
    ┌──> node_modules/bootstrap/scss/vendor/_rfs.scss
136 │ ┌     @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
137 │ │       @content;
138 │ │     }
    │ └─── nested rule
    ╵
    node_modules/bootstrap/scss/_reboot.scss 503:3  @import
    app/assets/css/bs.scss 97:9                     root stylesheet

The above is only one sample, but we get many more while building the project.

This is apparently a change on this latest version of Dart SASS to make it match with some CSS changes as described here.

Reduced test cases

We get this issue when using our own sass file to personalize our bootstrap deployment as instructed on your own documentation

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

Windows, macOS, Linux

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

Chrome

What version of Bootstrap are you using?

v5.3.3

@julien-deramond
Copy link
Member

Thanks for reporting this issue @ptdev
It has been reported almost at the same time in #40621
Closing this one as a duplicate

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