Skip to content

Commit dda6af7

Browse files
crisbetommalerba
authored andcommitted
build: fix stylelint violations and bump stylelint version (#18023)
We had missed some stylelint violations, because we had a very well hidden `stylelint-disable` in one place. These changes fix the linting issues and bump us to the latest version of Stylelint.
1 parent a936b34 commit dda6af7

File tree

3 files changed

+269
-114
lines changed

3 files changed

+269
-114
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"semver": "^6.3.0",
142142
"send": "^0.17.1",
143143
"shelljs": "^0.8.3",
144-
"stylelint": "^10.1.0",
144+
"stylelint": "^12.0.0",
145145
"terser": "^4.3.9",
146146
"ts-api-guardian": "^0.4.6",
147147
"ts-node": "^3.0.4",

src/cdk/a11y/_a11y.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
// `white-on-black` or `black-on-white`.
2727
@mixin cdk-high-contrast($target: active) {
2828
@if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
29-
@error 'Unknown cdk-high-contrast value "#{$target}" provided. Allowed values are "active", "black-on-white", and "white-on-black"'; // stylelint-disable
29+
@error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
30+
'Allowed values are "active", "black-on-white", and "white-on-black"';
3031
}
3132

3233
// If the selector context has multiple parts, such as `.section, .region`, just doing
@@ -36,10 +37,11 @@
3637
$selector-context: #{&};
3738
.cdk-high-contrast-#{$target} {
3839
@if ($selector-context == '') {
39-
@content
40-
} @else {
40+
@content;
41+
}
42+
@else {
4143
#{$selector-context} {
42-
@content
44+
@content;
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)