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 2 years 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

@tleon @mflasquin Dont forget to add the "Waiting for QA" label else the PR will never move forward

matks avatar Jul 28 '23 13:07 matks

Hi @Quetzacoalt91, npm run build and the result is the same CSS file. ✅

Snímek obrazovky 2023-08-03 143429

Hlavtox avatar Aug 03 '23 12:08 Hlavtox

Hello @Quetzacoalt91

Thank you for your PR, I try it on 8.0.5 and here's what I got :

there is not enought space between some component as you can see :

Before : image

After : image

Before : image

image

After : image

image


About the dropdown button with a big down arrow on it, they are not centered in the same way and they don't have the same highlight :

Before : image

After : image

Before : image

After : image


Images doesn"t have the same space as before as you can see :

Before : image

After : image

Before : image

After : image


The checkboxes are not properly checked as you can see : image


The font looks a little different on the Order page, as you can see :

Before : image

After : image


I hope that all these screens can help you in the improvement of your PR

Waiting for your feedback

Thank you

AureRita avatar Aug 03 '23 13:08 AureRita

Thanks for the feedback. I'll have a look at it later, as I struggled a bit to load my local instance today. :)

Quetzacoalt91 avatar Aug 04 '23 15:08 Quetzacoalt91