-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning suppression functionality #2911
Conversation
8830e49
to
614fe69
Compare
614fe69
to
cb2004a
Compare
cb2004a
to
6bb713b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty much there for me 🙌🏻 Just noticed we're missing a test case and nitpicked on the terminology for the $govuk-suppressed-warnings
map 😊
6bb713b
to
c4f7c96
Compare
c4f7c96
to
062c4f9
Compare
062c4f9
to
07f1181
Compare
Code-wise this is looking pretty cushy to me, but I'll leave the formal review for the folks who've been looking at it for longer. 😉 |
07f1181
to
c181db4
Compare
These are a setting to record which sass warnings users suppressed and a means to interact with said settings respectively.
Specific changes: - Replace all instances of `@warn` with the `_warning` mixin - Add a section explaining the `_warning` mixin and warning suppression
c181db4
to
26611f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the tests and docs 🙌🏻
With 2 approvals I'm gonna go ahead and merge this. There was a slight change since Claire's approval to the managing change docs but this is intended as internal content and can be changed at any time so I'm not worried about this. |
Fixes #2890
This PR does the following:
$govuk-suppressed-warnings
map_warning
mixin@warn
with the_warning
mixinThe
settings/warnings
suite ($govuk-suppressed-warnings
and_warning
) are intended as a way to allow users to suppress deprecation warnings in instances where they're stuck on specific versions so they have the choice to keep their sass compile log clean. It also will allow us to suppress the compatibility mode deprecation warnings in our local legacy app between now and the release of v5.0.More details are in the commit history.