prestashop-ui-kit icon indicating copy to clipboard operation
prestashop-ui-kit copied to clipboard

Fix deprecation notices on divisions without calc()

Open Quetzacoalt91 opened this issue 1 year ago • 4 comments

Questions Answers
Description? While building a project with a recent version of SASS, I get deprecation notices that are coming from this library (Details on the error at the bottom).
Type? refactor
BC breaks? Nope
Deprecations? Nope
Fixed ticket? /
Sponsor company /
How to test? The result on the style must be the same as before. If something goes wrong, it would be likely the spacing between elements or ps tagger.

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

Recommendation: math.div($pixels, $context) or calc($pixels / $context)

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

Quetzacoalt91 avatar Jul 03 '23 16:07 Quetzacoalt91