Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 13657ec

Browse files
authored
Merge pull request #88 from material-components/sgomes-stylelint-fixes
style(scss): Preemptively fixing styling issues for updated stylelint.
2 parents 24dd59d + 870eb0e commit 13657ec

File tree

11 files changed

+25
-6
lines changed

11 files changed

+25
-6
lines changed

packages/mdc-button/mdc-button.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
.mdc-button {
2626
@include mdc-typography(body2);
2727
@include mdc-theme-prop(color, text-primary-on-light);
28+
2829
display: inline-block;
2930
position: relative;
3031
min-width: 64px;
@@ -185,6 +186,7 @@
185186
fieldset:disabled &--raised,
186187
&--raised:disabled {
187188
@include mdc-elevation(0);
189+
188190
background-color: rgba(0, 0, 0, .12);
189191
pointer-events: none;
190192

packages/mdc-card/mdc-card.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
.mdc-card__action {
8080
margin: 0 8px 0 0;
8181
}
82+
8283
.mdc-card__action:last-child {
8384
margin-right: 0;
8485
}
@@ -91,6 +92,7 @@
9192
.mdc-card__action {
9293
margin: 0 0 4px;
9394
}
95+
9496
.mdc-card__action:last-child {
9597
margin-bottom: 0;
9698
}

packages/mdc-checkbox/_keyframes.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
@keyframes mdc-checkbox-checked-unchecked-checkmark-path {
101101
from {
102102
@include mdc-animation-fast-out-linear-in;
103+
103104
opacity: 1;
104105
stroke-dashoffset: 0;
105106
}

packages/mdc-checkbox/mdc-checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
border-radius: 2px;
4444

4545
@include mdc-checkbox-cover-element;
46+
4647
box-sizing: border-box;
4748
pointer-events: none;
4849
}
@@ -67,7 +68,6 @@
6768
transition:
6869
mdc-checkbox-transition-exit(background-color),
6970
mdc-checkbox-transition-exit(border-color);
70-
7171
border: $mdc-checkbox-border-width solid $mdc-checkbox-border-color;
7272
background-color: transparent;
7373
will-change: background-color, border-color;

packages/mdc-elevation/_mixins.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
@mixin mdc-elevation-transition(
6464
$duration: $mdc-elevation-transition-duration,
6565
$easing: $mdc-elevation-transition-timing-function) {
66-
6766
transition: mdc-elevation-transition-rule($duration, $easing);
6867
will-change: $mdc-elevation-property;
6968
}

packages/mdc-icon-toggle/mdc-icon-toggle.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
.mdc-icon-toggle {
2424
@include mdc-theme-prop(color, text-secondary-on-light);
25+
2526
display: flex;
2627
position: relative;
2728
box-sizing: border-box;
@@ -41,7 +42,6 @@
4142
right: 0;
4243
bottom: 0;
4344
left: 0;
44-
4545
transform: scale(0, 0);
4646
transition: mdc-animation-exit(opacity, 80ms), mdc-animation-exit(transform, 80ms);
4747
border-radius: 50%;
@@ -83,6 +83,7 @@
8383

8484
.mdc-icon-toggle--disabled {
8585
@include mdc-theme-prop(color, text-disabled-on-light);
86+
8687
pointer-events: none;
8788

8889
@include mdc-theme-dark(".mdc-icon-toggle", true) {

packages/mdc-list/mdc-list.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127

128128
&__start-detail {
129129
@include mdc-list-start-detail-size_(40px);
130+
130131
border-radius: 50%;
131132
}
132133
}
@@ -168,6 +169,7 @@
168169
$mdc-list-divider-inset-amt: /* text offset */ 72px - /* padding offset */ 16px;
169170

170171
@include mdc-rtl-reflexive-box(margin, left, $mdc-list-divider-inset-amt, ".mdc-list-group");
172+
171173
width: calc(100% - #{$mdc-list-divider-inset-amt});
172174
}
173175

packages/mdc-ripple/_mixins.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
--mdc-ripple-fg-unbounded-opacity-duration: 0ms;
4141
--mdc-ripple-fg-unbounded-transform-duration: 0ms;
4242
--mdc-ripple-fg-approx-xf: 0;
43+
4344
will-change: transition, opacity;
4445
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
4546
}
@@ -99,6 +100,7 @@
99100
@if ($pseudo) {
100101
&#{$pseudo} {
101102
@include mdc-ripple-bg-base_($config);
103+
102104
content: "";
103105
}
104106
} @else {
@@ -153,6 +155,7 @@
153155
@if ($pseudo) {
154156
&#{$pseudo} {
155157
@include mdc-ripple-fg-base_($config);
158+
156159
content: "";
157160
}
158161
} @else {

packages/mdc-select/mdc-select.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
// Resets for <select> element
3535
appearance: none;
36+
3637
&::-ms-expand {
3738
display: none;
3839
}
@@ -44,7 +45,6 @@
4445
transition:
4546
mdc-animation-exit(border-bottom-color, 150ms),
4647
mdc-animation-exit(background-color, 150ms);
47-
4848
border: none;
4949
border-bottom: 1px solid rgba(black, .12);
5050
border-radius: 0;
@@ -60,6 +60,7 @@
6060

6161
&:focus {
6262
@include mdc-theme-prop(border-bottom-color, primary);
63+
6364
outline: none;
6465
background-color: rgba(black, .06);
6566
}
@@ -71,10 +72,12 @@
7172
@include mdc-theme-dark {
7273
@include mdc-theme-prop(color, text-primary-on-dark);
7374
@include mdc-select-dd-arrow-svg-bg_(ffffff);
75+
7476
border-bottom: 1px solid rgba(white, .12);
7577

7678
&:focus {
7779
@include mdc-theme-prop(border-bottom-color, primary);
80+
7881
background-color: rgba(white, .09);
7982
}
8083
}
@@ -109,6 +112,7 @@
109112
.mdc-select[disabled] {
110113
@include mdc-theme-prop(color, text-disabled-on-light);
111114
@include mdc-select-dd-arrow-svg-bg_(000000, .38);
115+
112116
border-bottom-style: dotted;
113117
cursor: default;
114118
pointer-events: none;
@@ -118,6 +122,7 @@
118122
@include mdc-theme-dark(".mdc-select", true) {
119123
@include mdc-theme-prop(color, text-disabled-on-dark);
120124
@include mdc-select-dd-arrow-svg-bg_(ffffff, .38);
125+
121126
border-bottom: 1px dotted rgba(white, .38);
122127
}
123128
}
@@ -149,6 +154,7 @@
149154

150155
.mdc-list-group {
151156
@include mdc-theme-prop(color, text-hint-on-light);
157+
152158
font-weight: normal;
153159

154160
.mdc-list-item {

packages/mdc-snackbar/mdc-snackbar.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
&__text {
7979
@include mdc-typography(body1);
8080
@include mdc-rtl-reflexive-box(margin, right, auto, ".mdc-snackbar");
81+
8182
display: flex;
8283
align-items: center;
8384
height: 48px;
@@ -103,13 +104,13 @@
103104
min-width: auto;
104105
height: inherit;
105106
transition: mdc-animation-exit(opacity, .3s);
106-
107107
opacity: 0;
108108
visibility: hidden;
109109

110110
&::-moz-focus-inner {
111111
border: 0;
112112
}
113+
113114
&:not([aria-hidden]) {
114115
visibility: inherit;
115116
}

0 commit comments

Comments
 (0)