itsjavi / bootstrap-colorpicker

Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
https://itsjavi.com/bootstrap-colorpicker/
MIT License
1.38k stars 367 forks source link

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

Open simonschaufi opened 2 years ago

simonschaufi commented 2 years ago

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

Expected behavior

No deprecation warning

Use instead

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