prestashop-ui-kit
prestashop-ui-kit copied to clipboard
Fix deprecation notices on divisions without calc()
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