Closed msuperina closed 2 years ago
Hello, thanks for raising this. Use of "/" for division has been superseded in dart-sass only. While other Sass implementations (libsass, node-sass, etc) are largely deprecated, there may be Design System users still using them and if the Design System migrates to the new math.div() function anyone not using dart-sass will be unable to compile the CSS.
The documentation on the Design System site currently recommends using node-sass, which is now deprecated. I'll take an action to update that recommendation to dart-sass, as it's the reference Sass implementation, but use of "/" in division is likely to be retained in the Design System for some time.
For reference, here is an explanation of this breaking change: https://sass-lang.com/documentation/breaking-changes/slash-div
Thank you for the quick reply and taking action on your side. We can live with the warnings now that we know you know 😄
We are building our CSS using the Dart Sass API on version
sass@^1.38.2
.We are importing the Design System Pattern Library in the first line of
index.scss
by doing@import "@scottish-government/pattern-library/src/pattern-library";
.Below is an example of the warnings we are getting. They all seem related to usage of / for division.
Is there anything we need to do on our side around configuration and how to import the library ? Or is this an issue with the library ?