Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

[BUG] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. #336

Open
simonschaufi opened this issue Mar 18, 2022 · 0 comments
Labels

Comments

@simonschaufi
Copy link

simonschaufi commented Mar 18, 2022

Description

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

Recommendation: math.div($size, 2) or calc($size / 2)

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

   ╷
13 │   background-position: 0 0, $size/2 $size/2;
   │                                     ^^^^^^^
   ╵
    node_modules/bootstrap-colorpicker/src/sass/colorpicker.scss 13:37  bgCheckerBox()
    node_modules/bootstrap-colorpicker/src/sass/colorpicker.scss 213:3  @import

Context

  • bootstrap-colorpicker version: 2.4.0

Expected behavior

No deprecation warning

Use instead

Recommendation: math.div($size, 2) or calc($size / 2)

simonschaufi added a commit to simonschaufi/bootstrap-colorpicker that referenced this issue Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant