Skip to content

Deprecation Warning [mixed-decls]: Sass's behavior for declarations that appear after nested [...] #2094

Open

Description

@willdurand

I ran yarn && yarn start and saw this warning in the output:

Deprecation Warning [mixed-decls]: 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

    ┌──> ../../../foundation-sites/scss/xy-grid/_grid.scss
19  │     max-width: $width;
    │     ^^^^^^^^^^^^^^^^^ declaration
    ╵
    ┌──> ../../../foundation-sites/scss/util/_breakpoint.scss
180 │ ┌         @media print, screen and #{$str} {
181 │ │           @content;
182 │ │         }
    │ └─── nested rule
    ╵
    ../../../foundation-sites/scss/xy-grid/_grid.scss 19:3      xy-grid-container()
    ../../../foundation-sites/scss/xy-grid/_classes.scss 14:5   xy-base-grid-classes()
    ../../../foundation-sites/scss/xy-grid/_classes.scss 457:5  foundation-xy-grid-classes()
    ../../../../src/assets/css/styles.scss 27:1                 root stylesheet

We probably need to do something about it.

Activity

  1. diox commented on Mar 5, 2026

    @diox
    Member

    Other Deprecation Warnings (we may want to move them to their own issue, just commenting here so that it's not lost):

    • Deprecation Warning [color-functions]: darken() is deprecated.
    • Deprecation Warning [slash-div]: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
    • Deprecation Warning [abs-percent]: Passing percentage units to the global abs() function is deprecated.
    • Deprecation Warning [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
    • Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions