Skip to content

Commit 74cd65a

Browse files
authored
build: enforce consistent spaces between colons (#19856)
Enables a lint rule that enforces that we have consistent spaces around the colon which prevents things like `display:none`.
1 parent b251ef3 commit 74cd65a

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.stylelintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"declaration-block-semicolon-space-after": "always-single-line",
6767
"declaration-block-semicolon-newline-before": "never-multi-line",
6868
"declaration-block-semicolon-newline-after": "always-multi-line",
69+
"declaration-colon-space-after": "always-single-line",
6970
"declaration-property-value-blacklist": [
7071
{"/.*/": ["initial"]},
7172
{"message": "The `initial` value is not supported in IE."}

src/material/checkbox/checkbox.scss

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
242242
@extend %mat-checkbox-outer-box;
243243

244244
background-color: transparent;
245-
transition:
246-
border-color $mat-checkbox-transition-duration $mat-linear-out-slow-in-timing-function;
245+
transition: border-color $mat-checkbox-transition-duration
246+
$mat-linear-out-slow-in-timing-function;
247247
border: {
248248
width: $mat-checkbox-border-width;
249249
style: solid;
@@ -437,8 +437,8 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
437437
}
438438

439439
.mat-checkbox-mixedmark {
440-
animation:
441-
$mat-checkbox-transition-duration linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark;
440+
animation: $mat-checkbox-transition-duration linear 0ms
441+
mat-checkbox-unchecked-indeterminate-mixedmark;
442442
}
443443
}
444444

@@ -448,32 +448,32 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
448448
}
449449

450450
.mat-checkbox-checkmark-path {
451-
animation:
452-
$mat-checkbox-transition-duration linear 0ms mat-checkbox-checked-unchecked-checkmark-path;
451+
animation: $mat-checkbox-transition-duration linear 0ms
452+
mat-checkbox-checked-unchecked-checkmark-path;
453453
}
454454
}
455455

456456
&-checked-indeterminate {
457457
.mat-checkbox-checkmark {
458-
animation:
459-
$mat-checkbox-transition-duration linear 0ms mat-checkbox-checked-indeterminate-checkmark;
458+
animation: $mat-checkbox-transition-duration linear 0ms
459+
mat-checkbox-checked-indeterminate-checkmark;
460460
}
461461

462462
.mat-checkbox-mixedmark {
463-
animation:
464-
$mat-checkbox-transition-duration linear 0ms mat-checkbox-checked-indeterminate-mixedmark;
463+
animation: $mat-checkbox-transition-duration linear 0ms
464+
mat-checkbox-checked-indeterminate-mixedmark;
465465
}
466466
}
467467

468468
&-indeterminate-checked {
469469
.mat-checkbox-checkmark {
470-
animation:
471-
$indeterminate-change-duration linear 0ms mat-checkbox-indeterminate-checked-checkmark;
470+
animation: $indeterminate-change-duration linear 0ms
471+
mat-checkbox-indeterminate-checked-checkmark;
472472
}
473473

474474
.mat-checkbox-mixedmark {
475-
animation:
476-
$indeterminate-change-duration linear 0ms mat-checkbox-indeterminate-checked-mixedmark;
475+
animation: $indeterminate-change-duration linear 0ms
476+
mat-checkbox-indeterminate-checked-mixedmark;
477477
}
478478
}
479479

@@ -483,9 +483,8 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
483483
}
484484

485485
.mat-checkbox-mixedmark {
486-
animation:
487-
$indeterminate-change-duration * 0.6 linear 0ms
488-
mat-checkbox-indeterminate-unchecked-mixedmark;
486+
animation: $indeterminate-change-duration * 0.6 linear 0ms
487+
mat-checkbox-indeterminate-unchecked-mixedmark;
489488
}
490489
}
491490
}

src/material/grid-list/grid-list.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $mat-grid-list-text-padding: 16px;
7575
}
7676

7777
&:empty {
78-
display:none;
78+
display: none;
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)