Skip to content

Deprecation warning when compiling with dart-sass (slash-div) #2749

@salami-art

Description

@salami-art

I had issues with node-sass, so I decided to updata to dart-sass, bootstrap-select works fine, however, i'm getting a deprecation warning for a line in the component's styles:

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($amnt, 100) or calc($amnt / 100)

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

   ╷
26 │     $amnt: $amnt / 100; // convert to percentage if int
   │            ^^^^^^^^^^^
   ╵
    node_modules/bootstrap-select/sass/bootstrap-select.scss 26:12   fade()
    node_modules/bootstrap-select/sass/bootstrap-select.scss 352:43  @import
    [...]

It would be nice if someone updated the source code to use the newer recommended syntax. I am available for submitting a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions