-
Notifications
You must be signed in to change notification settings - Fork 347
Open
Labels
sass / csstooling🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)Something isn't working the way it should (including incorrect wording in documentation)
Milestone
Description
Hello 👋
It's been a while since I was on govuk-frontend issues 😆
Description of the issue
We've just noticed Sass deprecation warnings popping up for latest [email protected]
:
https://sass-lang.com/d/slash-div
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($button-shadow-size, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
35 │ padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2) (govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2)); // s1
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/govuk-frontend/govuk/components/button/_index.scss 35:141 @content
node_modules/govuk-frontend/govuk/tools/_exports.scss 29:5 govuk-exports()
node_modules/govuk-frontend/govuk/components/button/_index.scss 1:1 @import
node_modules/govuk-frontend/govuk/components/_all.scss 6:9 @import
node_modules/govuk-frontend/govuk/all.scss 6:9 @import
With the "fix" being a breaking change for older versions of Sass, we might need to look into running the Sass migrator before we import any *.scss
files: https://github.com/sass/migrator#readme
Steps to reproduce the issue
Importing any GOV.UK Frontend *.scss
files using /
for division with [email protected]
and up.
See release notes: https://github.com/sass/dart-sass/releases/tag/1.33.0
gunjam, DevRCRun, likeuwill, SamChatfield, ethanmills and 3 more
Metadata
Metadata
Assignees
Labels
sass / csstooling🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)Something isn't working the way it should (including incorrect wording in documentation)