Skip to content

Commit

Permalink
Turn on declaration-no-important stylelint rule
Browse files Browse the repository at this point in the history
This rule was accidentally missed in the initial config for
stylelint-config-gds. This applies disabling of this rule in the
situations where we make an exception and want important rules.
  • Loading branch information
kevindew committed Sep 1, 2020
1 parent 81bb035 commit 4e71395
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ignoreFiles: src/govuk/vendor/**/*
plugins:
- stylelint-order
rules:
declaration-no-important: ~
# govuk-frontend has a specific ordering pattern that should be applied to
# rules
#
Expand Down
1 change: 1 addition & 0 deletions src/govuk/overrides/_display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@import "../base";

// stylelint-disable declaration-no-important
@include govuk-exports("govuk/overrides/display") {
.govuk-\!-display-inline {
display: inline !important;
Expand Down
1 change: 1 addition & 0 deletions src/govuk/overrides/_width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@import "../base";

// stylelint-disable declaration-no-important
@include govuk-exports("govuk/overrides/width") {
.govuk-\!-width-full {
width: 100% !important;
Expand Down

0 comments on commit 4e71395

Please sign in to comment.