Skip to content

[Bug]: Upgrade Sass to fix breaking changes #911

@georgephillips

Description

@georgephillips

Bug description

@import is deprecated in the latest versions of sass (https://sass-lang.com/documentation/breaking-changes/import/). So is desaturate: https://sass-lang.com/documentation/modules/color/#desaturate

Expected behavior

It should work exactly the same with no warnings.

Steps to reproduce

  1. Build with sass 1.80.4
  2. See error:
Deprecation Warning [color-functions]: lighten() is deprecated. Suggestions:

color.scale($color, $lightness: 38.6363636364%)
color.adjust($color, $lightness: 30%)

More info: https://sass-lang.com/d/color-functions

   ╷
57 │             color: lighten(desaturate($select-color-item-text, 100%), $select-lighten-disabled-item-text);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules/tom-select/dist/scss/_items.scss 57:11         @import

and

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
71 │ @import 'items';
   │         ^^^^^^^
   ╵
    node_modules/tom-select/dist/scss/tom-select.scss 71:9      @use
    app/assets/stylesheets/redesign/vendor/tom-select.scss 4:1  @use

Additional context

  • OS: [e.g. iOS, Windows]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
  • Device: [e.g. iPhone6]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions