material_components_web-sass 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/material_components_web/sass/version.rb +1 -1
  4. data/vendor/assets/javascripts/material-components-web.js +698 -637
  5. data/vendor/assets/stylesheets/@material/button/_mixins.scss +2 -2
  6. data/vendor/assets/stylesheets/@material/button/_variables.scss +0 -3
  7. data/vendor/assets/stylesheets/@material/button/mdc-button.scss +2 -2
  8. data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +1 -1
  9. data/vendor/assets/stylesheets/@material/fab/_mixins.scss +2 -2
  10. data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +1 -5
  11. data/vendor/assets/stylesheets/@material/icon-toggle/mdc-icon-toggle.scss +4 -19
  12. data/vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss +4 -0
  13. data/vendor/assets/stylesheets/@material/list/_mixins.scss +83 -0
  14. data/vendor/assets/stylesheets/@material/list/_variables.scss +18 -0
  15. data/vendor/assets/stylesheets/@material/list/mdc-list.scss +50 -43
  16. data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +33 -35
  17. data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +1 -1
  18. data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +3 -2
  19. data/vendor/assets/stylesheets/@material/ripple/_mixins.scss +172 -34
  20. data/vendor/assets/stylesheets/@material/ripple/_variables.scss +23 -0
  21. data/vendor/assets/stylesheets/@material/ripple/mdc-ripple.scss +3 -3
  22. data/vendor/assets/stylesheets/@material/select/mdc-select.scss +146 -35
  23. data/vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss +3 -3
  24. data/vendor/assets/stylesheets/@material/textfield/mdc-text-field.scss +2 -2
  25. data/vendor/assets/stylesheets/@material/theme/_mixins.scss +1 -1
  26. data/vendor/assets/stylesheets/@material/theme/_variables.scss +13 -1
  27. data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +1 -1
  28. metadata +4 -2
@@ -28,10 +28,10 @@
28
28
 
29
29
  @if ($fill-tone == "dark") {
30
30
  @include mdc-button-ink-color(text-primary-on-dark);
31
- @include mdc-ripple-color(text-primary-on-dark, $mdc-filled-button-ripple-opacity);
31
+ @include mdc-states(text-primary-on-dark);
32
32
  } @else {
33
33
  @include mdc-button-ink-color(text-primary-on-light);
34
- @include mdc-ripple-color(text-primary-on-light, $mdc-filled-button-ripple-opacity);
34
+ @include mdc-states(text-primary-on-light);
35
35
  }
36
36
  }
37
37
 
@@ -18,6 +18,3 @@ $mdc-button-height: 36px;
18
18
  $mdc-button-horizontal-padding: 16px;
19
19
  $mdc-dense-button-height: 32px;
20
20
  $mdc-compact-button-horizontal-padding: 8px;
21
-
22
- $mdc-unfilled-button-ripple-opacity: .16;
23
- $mdc-filled-button-ripple-opacity: .32;
@@ -25,7 +25,7 @@
25
25
  @include mdc-button-corner-radius(2px);
26
26
  @include mdc-button-container-fill-color(transparent);
27
27
  @include mdc-button-ink-color(primary);
28
- @include mdc-ripple-color(primary, $mdc-unfilled-button-ripple-opacity);
28
+ @include mdc-states(primary);
29
29
  }
30
30
 
31
31
  .mdc-button--raised,
@@ -33,7 +33,7 @@
33
33
  @include mdc-button--filled_;
34
34
  @include mdc-button-container-fill-color(primary);
35
35
  @include mdc-button-ink-color(text-primary-on-primary);
36
- @include mdc-ripple-color(text-primary-on-primary, $mdc-filled-button-ripple-opacity);
36
+ @include mdc-states(text-primary-on-primary);
37
37
  }
38
38
 
39
39
  .mdc-button--raised {
@@ -26,7 +26,7 @@
26
26
  @include mdc-checkbox-ink-color($mdc-checkbox-mark-color);
27
27
  @include mdc-checkbox-focus-indicator-color($mdc-checkbox-baseline-theme-color);
28
28
  @include mdc-ripple-surface;
29
- @include mdc-ripple-color($mdc-checkbox-baseline-theme-color, $mdc-checkbox-ripple-opacity);
29
+ @include mdc-states($mdc-checkbox-baseline-theme-color);
30
30
  @include mdc-ripple-radius($mdc-checkbox-ripple-radius);
31
31
  @include mdc-checkbox-container-colors();
32
32
 
@@ -27,10 +27,10 @@
27
27
 
28
28
  @if ($fill-tone == "dark") {
29
29
  @include mdc-fab-ink-color(text-primary-on-dark);
30
- @include mdc-ripple-color(text-primary-on-dark, $mdc-ripple-pressed-light-ink-opacity);
30
+ @include mdc-states(text-primary-on-dark);
31
31
  } @else {
32
32
  @include mdc-fab-ink-color(text-primary-on-light);
33
- @include mdc-ripple-color(text-primary-on-light, $mdc-ripple-pressed-dark-ink-opacity);
33
+ @include mdc-states(text-primary-on-light);
34
34
  }
35
35
  }
36
36
 
@@ -22,11 +22,7 @@
22
22
  @include mdc-fab-base_;
23
23
  @include mdc-fab-container-color(secondary);
24
24
  @include mdc-fab-ink-color(text-primary-on-secondary);
25
- @include mdc-ripple-color(text-primary-on-secondary, $mdc-ripple-pressed-dark-ink-opacity);
26
-
27
- &:not(.mdc-ripple-upgraded) {
28
- -webkit-tap-highlight-color: rgba(0, 0, 0, .18);
29
- }
25
+ @include mdc-states(text-primary-on-secondary);
30
26
  }
31
27
 
32
28
  .mdc-fab--mini {
@@ -23,26 +23,11 @@
23
23
  .mdc-icon-toggle {
24
24
  @include mdc-theme-prop(color, text-secondary-on-light);
25
25
  @include mdc-ripple-surface;
26
- // NOTE: The spec denotes specific opacity values to use for different styles of icon buttons,
27
- // either "light", "dark", or "color". Because ripples are made up of two distinct elements,
28
- // we need to use an opacity value such that when two elements of the same color and opacity are
29
- // layered on top of one another, they create the opacity specified in the spec.
30
- // This is done by using the painter's compositing algorithm:
31
- //
32
- // alpha[desired] = alpha[a] + alpha[b](1 - alpha[a]).
33
- //
34
- // Because both alpha values are the same this reduces to:
35
- //
36
- // alpha[desired] = alpha[a] + alpha[a](1 - alpha[a]).
37
- //
38
- // We simply solve this quadratic equation for the nonnegative root between [0, 1].
39
- // E.g. for black 12% opacity:
40
- // https://www.wolframalpha.com/input/?i=x+%2B+x(1+-+x)+%3D+.12,+x+%3C%3D+1,+x+%3E%3D+0
41
- @include mdc-ripple-color(black, .062);
42
26
  @include mdc-ripple-radius;
27
+ @include mdc-states(black);
43
28
 
44
29
  @include mdc-theme-dark(".mdc-icon-toggle", true) {
45
- @include mdc-ripple-color(white, .16);
30
+ @include mdc-states(white);
46
31
  }
47
32
 
48
33
  display: flex;
@@ -75,12 +60,12 @@
75
60
 
76
61
  .mdc-icon-toggle--primary {
77
62
  @include mdc-theme-prop(color, primary);
78
- @include mdc-ripple-color(primary, .14);
63
+ @include mdc-states(primary);
79
64
  }
80
65
 
81
66
  .mdc-icon-toggle--accent {
82
67
  @include mdc-theme-prop(color, secondary);
83
- @include mdc-ripple-color(secondary, .14);
68
+ @include mdc-states(secondary);
84
69
  }
85
70
 
86
71
  .mdc-icon-toggle--disabled {
@@ -62,6 +62,10 @@
62
62
  transition: mdc-animation-exit-temporary(transform, 250ms);
63
63
  }
64
64
 
65
+ &__primary-bar {
66
+ transform: scaleX(0);
67
+ }
68
+
65
69
  &__secondary-bar {
66
70
  visibility: hidden;
67
71
  }
@@ -0,0 +1,83 @@
1
+ // Copyright 2016 Google Inc. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ @import "@material/rtl/mixins";
16
+ @import "@material/theme/mixins";
17
+ @import "./variables";
18
+
19
+ //
20
+ // Public
21
+ //
22
+
23
+ @mixin mdc-list-item-primary-text-ink-color($color) {
24
+ @include mdc-theme-prop(color, $color);
25
+ }
26
+
27
+ @mixin mdc-list-item-secondary-text-ink-color($color) {
28
+ .mdc-list-item__secondary-text {
29
+ @include mdc-theme-prop(color, $color);
30
+ }
31
+ }
32
+
33
+ @mixin mdc-list-item-graphic-fill-color($color) {
34
+ .mdc-list-item__start-detail {
35
+ @include mdc-theme-prop(background-color, $color);
36
+ }
37
+ }
38
+
39
+ @mixin mdc-list-item-graphic-ink-color($color) {
40
+ .mdc-list-item__start-detail {
41
+ @include mdc-theme-prop(color, $color);
42
+ }
43
+ }
44
+
45
+ @mixin mdc-list-item-meta-ink-color($color) {
46
+ .mdc-list-item__end-detail {
47
+ @include mdc-theme-prop(color, $color);
48
+ }
49
+ }
50
+
51
+ @mixin mdc-list-divider-color($color) {
52
+ .mdc-list-divider {
53
+ @include mdc-theme-prop(border-bottom-color, $color);
54
+ }
55
+ }
56
+
57
+ @mixin mdc-list-group-subheader-ink-color($color) {
58
+ .mdc-list-group__subheader {
59
+ @include mdc-theme-prop(color, $color);
60
+ }
61
+ }
62
+
63
+ //
64
+ // Private
65
+ //
66
+
67
+ // Sets the width and height of a detail element to the specified value.
68
+ @mixin mdc-list-detail-size_($size) {
69
+ width: $size;
70
+ height: $size;
71
+ }
72
+
73
+ // Sets the width and height of the start detail element, as well as calculates the margins for
74
+ // the start detail element such that the text is always offset by 72px, which is defined within
75
+ // the spec.
76
+ @mixin mdc-list-start-detail-size_($size) {
77
+ $text-offset: 72px;
78
+ $side-padding: $mdc-list-side-padding;
79
+ $margin-value: $text-offset - $side-padding - $size;
80
+
81
+ @include mdc-list-detail-size_($size);
82
+ @include mdc-rtl-reflexive-box(margin, right, $margin-value, ".mdc-list-item");
83
+ }
@@ -0,0 +1,18 @@
1
+ // Copyright 2016 Google Inc. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ $mdc-list-divider-color-light: rgba(0, 0, 0, .12) !default;
16
+ $mdc-list-divider-color-dark: rgba(255, 255, 255, .2) !default;
17
+
18
+ $mdc-list-side-padding: 16px;
@@ -17,35 +17,36 @@
17
17
  @import "@material/theme/mixins";
18
18
  @import "@material/typography/mixins";
19
19
  @import "@material/typography/variables";
20
+ @import "./mixins";
21
+ @import "./variables";
20
22
 
21
- $mdc-list-side-padding: 16px;
22
-
23
- // Sets the width and height of a detail element to the specified dimension.
24
- @mixin mdc-list-detail-size_($size) {
25
- width: $size;
26
- height: $size;
27
- }
28
-
29
- // Sets the width and height of the start detail element, as well as calculates the margins for
30
- // the start detail element such that the text is always offset by 72px, which is defined within
31
- // the spec.
32
- @mixin mdc-list-start-detail-size_($size) {
33
- $text-offset: 72px;
34
- $side-padding: $mdc-list-side-padding;
35
- $margin-value: $text-offset - $side-padding - $size;
23
+ // TODO(acdvorak): Find a way to remove parent .mdc-list and .mdc-list-group selectors; they violate BEM.
24
+ .mdc-list,
25
+ .mdc-list-group {
26
+ @include mdc-list-divider-color($mdc-list-divider-color-light);
36
27
 
37
- @include mdc-list-detail-size_($size);
38
- @include mdc-rtl-reflexive-box(margin, right, $margin-value, ".mdc-list-item");
28
+ @include mdc-theme-dark {
29
+ @include mdc-list-divider-color($mdc-list-divider-color-dark);
30
+ }
39
31
  }
40
32
 
41
33
  // postcss-bem-linter: define list
42
34
 
43
35
  .mdc-list {
44
36
  @include mdc-typography(subheading2);
45
- @include mdc-theme-prop(color, text-primary-on-background);
37
+
38
+ // TODO(acdvorak): Find a way to remove parent .mdc-list selector; it violates BEM.
39
+ @include mdc-list-item-primary-text-ink-color(text-primary-on-background);
40
+ @include mdc-list-item-secondary-text-ink-color(text-secondary-on-background);
41
+ @include mdc-list-item-graphic-fill-color(transparent);
42
+ @include mdc-list-item-graphic-ink-color(text-icon-on-background);
43
+ @include mdc-list-item-meta-ink-color(text-hint-on-background);
46
44
 
47
45
  @include mdc-theme-dark {
48
- @include mdc-theme-prop(color, text-primary-on-dark);
46
+ @include mdc-list-item-primary-text-ink-color(text-primary-on-dark);
47
+ @include mdc-list-item-secondary-text-ink-color(text-secondary-on-dark);
48
+ @include mdc-list-item-graphic-ink-color(text-icon-on-dark);
49
+ @include mdc-list-item-meta-ink-color(text-hint-on-dark);
49
50
  }
50
51
 
51
52
  margin: 0;
@@ -75,8 +76,21 @@ $mdc-list-side-padding: 16px;
75
76
  justify-content: flex-start;
76
77
  height: 48px;
77
78
 
79
+ // "Selected" is ephemeral and likely to change soon. E.g., selecting one or more photos to share in Google Photos.
80
+ // "Activated" is more permanent. E.g., the currently highlighted navigation destination in a drawer.
81
+ &--selected,
82
+ &--activated {
83
+ @include mdc-list-item-primary-text-ink-color(primary);
84
+ @include mdc-list-item-graphic-ink-color(primary);
85
+ }
86
+
87
+ // stylelint-disable-next-line plugin/selector-bem-pattern
78
88
  &__start-detail {
79
89
  @include mdc-list-start-detail-size_(24px);
90
+
91
+ display: inline-flex;
92
+ align-items: center;
93
+ justify-content: center;
80
94
  }
81
95
 
82
96
  &__end-detail {
@@ -87,22 +101,17 @@ $mdc-list-side-padding: 16px;
87
101
  &__text {
88
102
  display: inline-flex;
89
103
  flex-direction: column;
104
+ }
90
105
 
91
- &__secondary {
92
- @include mdc-typography(body1);
93
- @include mdc-theme-prop(color, text-secondary-on-background);
94
-
95
- @include mdc-theme-dark {
96
- @include mdc-theme-prop(color, text-secondary-on-dark);
97
- }
106
+ &__secondary-text {
107
+ @include mdc-typography(body1);
98
108
 
99
- // Match the font size to the primary text when dense
100
- // stylelint-disable plugin/selector-bem-pattern
101
- .mdc-list--dense & {
102
- font-size: inherit;
103
- }
104
- // stylelint-enable plugin/selector-bem-pattern
109
+ // Match the font size to the primary text when dense
110
+ // stylelint-disable plugin/selector-bem-pattern
111
+ .mdc-list--dense & {
112
+ font-size: inherit;
105
113
  }
114
+ // stylelint-enable plugin/selector-bem-pattern
106
115
  }
107
116
 
108
117
  // stylelint-disable plugin/selector-bem-pattern
@@ -144,7 +153,7 @@ $mdc-list-side-padding: 16px;
144
153
  height: 60px;
145
154
  }
146
155
  }
147
- // postcss-bem-linter: end //
156
+ // postcss-bem-linter: end
148
157
 
149
158
  // Override anchor tag styles for the use-case of a list being used for navigation
150
159
  // stylelint-disable selector-max-type,selector-no-qualifying-type
@@ -182,11 +191,8 @@ a.mdc-list-item {
182
191
  height: 0;
183
192
  margin: 0;
184
193
  border: none;
185
- border-bottom: 1px solid rgba(0, 0, 0, .12);
186
-
187
- @include mdc-theme-dark(".mdc-list") {
188
- border-bottom-color: rgba(255, 255, 255, .2);
189
- }
194
+ border-bottom-width: 1px;
195
+ border-bottom-style: solid;
190
196
  }
191
197
 
192
198
  .mdc-list-divider--inset {
@@ -202,6 +208,12 @@ a.mdc-list-item {
202
208
  // postcss-bem-linter: define list-group
203
209
 
204
210
  .mdc-list-group {
211
+ @include mdc-list-group-subheader-ink-color(text-primary-on-background);
212
+
213
+ @include mdc-theme-dark {
214
+ @include mdc-list-group-subheader-ink-color(text-primary-on-dark);
215
+ }
216
+
205
217
  padding: 0 $mdc-list-side-padding;
206
218
 
207
219
  &__subheader {
@@ -211,11 +223,6 @@ a.mdc-list-item {
211
223
  ($mdc-list-subheader-virtual-height - $mdc-list-subheader-leading) / 2;
212
224
 
213
225
  @include mdc-typography(body2);
214
- @include mdc-theme-prop(color, text-primary-on-background);
215
-
216
- @include mdc-theme-dark {
217
- @include mdc-theme-prop(color, text-primary-on-dark);
218
- }
219
226
 
220
227
  margin: $mdc-list-subheader-margin 0;
221
228
  }
@@ -22,10 +22,17 @@
22
22
  $mdc-simple-menu-fade-duration: .2s;
23
23
  $mdc-simple-menu-item-fade-duration: .3s;
24
24
 
25
- /* postcss-bem-linter: define simple-menu */
25
+ // postcss-bem-linter: define simple-menu
26
26
  .mdc-simple-menu {
27
+ @include mdc-elevation(2);
28
+
29
+ @include mdc-theme-dark {
30
+ background-color: #424242;
31
+ }
32
+
27
33
  display: none;
28
34
  position: absolute;
35
+ box-sizing: border-box;
29
36
  min-width: 170px;
30
37
  max-width: calc(100vw - 32px);
31
38
  max-height: calc(100vh - 32px);
@@ -35,20 +42,13 @@ $mdc-simple-menu-item-fade-duration: .3s;
35
42
  transform-origin: top left;
36
43
  border-radius: 2px;
37
44
  background-color: white;
38
- white-space: nowrap;
39
45
  opacity: 0;
46
+ white-space: nowrap;
40
47
  overflow-x: hidden;
41
48
  overflow-y: auto;
42
- box-sizing: border-box;
43
49
  will-change: transform, opacity;
44
50
  z-index: 4;
45
51
 
46
- @include mdc-elevation(2);
47
-
48
- @include mdc-theme-dark {
49
- background-color: #424242;
50
- }
51
-
52
52
  &:focus {
53
53
  outline: none;
54
54
  }
@@ -61,17 +61,17 @@ $mdc-simple-menu-item-fade-duration: .3s;
61
61
 
62
62
  &--animating {
63
63
  display: inline-block;
64
- overflow-y: hidden;
65
64
  transition: opacity $mdc-simple-menu-fade-duration $mdc-animation-deceleration-curve-timing-function;
65
+ overflow-y: hidden;
66
66
  }
67
67
 
68
68
  &__items {
69
+ box-sizing: border-box;
69
70
  overflow-x: hidden;
70
71
  overflow-y: auto;
71
- box-sizing: border-box;
72
72
  will-change: transform;
73
73
 
74
- /* stylelint-disable plugin/selector-bem-pattern, selector-no-universal */
74
+ // stylelint-disable plugin/selector-bem-pattern, selector-no-universal, selector-max-universal
75
75
  > * {
76
76
  opacity: 0;
77
77
  }
@@ -96,14 +96,14 @@ $mdc-simple-menu-item-fade-duration: .3s;
96
96
  will-change: opacity;
97
97
  }
98
98
  }
99
- /* stylelint-enable plugin/selector-bem-pattern, selector-no-universal */
99
+ // stylelint-enable plugin/selector-bem-pattern, selector-no-universal, selector-max-universal
100
100
  }
101
101
 
102
- /* stylelint-disable plugin/selector-bem-pattern */
102
+ // stylelint-disable plugin/selector-bem-pattern
103
103
  [dir="rtl"] & {
104
104
  transform-origin: top right;
105
105
  }
106
- /* stylelint-enable plugin/selector-bem-pattern */
106
+ // stylelint-enable plugin/selector-bem-pattern
107
107
 
108
108
  // Note: it's appropriate to use `!important` for these since:
109
109
  // - they override defaults at several levels of specificity;
@@ -124,25 +124,25 @@ $mdc-simple-menu-item-fade-duration: .3s;
124
124
  transform-origin: bottom right !important;
125
125
  }
126
126
 
127
- /* stylelint-disable plugin/selector-bem-pattern */
127
+ // stylelint-disable plugin/selector-bem-pattern
128
128
  .mdc-list-group,
129
129
  .mdc-list {
130
130
  padding: 8px 0;
131
131
  }
132
132
 
133
133
  .mdc-list-item {
134
+ @include mdc-typography(subheading2);
135
+
136
+ @include mdc-theme-dark(".mdc-simple-menu", true) {
137
+ color: white;
138
+ }
139
+
134
140
  position: relative;
135
141
  padding: 0 16px;
136
142
  outline: none;
137
143
  color: inherit;
138
144
  text-decoration: none;
139
145
  user-select: none;
140
-
141
- @include mdc-typography(subheading2);
142
-
143
- @include mdc-theme-dark(".mdc-simple-menu", true) {
144
- color: white;
145
- }
146
146
  }
147
147
 
148
148
  .mdc-list-divider {
@@ -159,14 +159,14 @@ $mdc-simple-menu-item-fade-duration: .3s;
159
159
  }
160
160
  }
161
161
 
162
- /* stylelint-disable selector-no-qualifying-type */
162
+ // stylelint-disable selector-no-qualifying-type
163
163
  &--selected.mdc-list-item,
164
164
  &--selected.mdc-list-item .mdc-list-item__start-detail {
165
165
  @include mdc-theme-prop(color, primary);
166
166
  }
167
- /* stylelint-enable selector-no-qualifying-type */
167
+ // stylelint-enable selector-no-qualifying-type
168
168
 
169
- /* TODO(sgomes): Revisit when we have interactive lists. */
169
+ // TODO(sgomes): Revisit when we have interactive lists.
170
170
  .mdc-list-item::before {
171
171
  position: absolute;
172
172
  top: 0;
@@ -176,9 +176,9 @@ $mdc-simple-menu-item-fade-duration: .3s;
176
176
  transition: opacity 120ms $mdc-animation-deceleration-curve-timing-function;
177
177
  border-radius: inherit;
178
178
  background: currentColor;
179
- content: "";
180
179
  opacity: 0;
181
180
  pointer-events: none;
181
+ content: "";
182
182
  }
183
183
 
184
184
  .mdc-list-item:focus::before {
@@ -186,22 +186,20 @@ $mdc-simple-menu-item-fade-duration: .3s;
186
186
  }
187
187
 
188
188
  .mdc-list-item:active::before {
189
- /*
190
- Slightly darker value for visual distinction.
191
- This allows a full base that has distinct modes.
192
- Progressive enhancement with ripples will provide complete button spec alignment.
193
- */
189
+ // Slightly darker value for visual distinction.
190
+ // This allows a full base that has distinct modes.
191
+ // Progressive enhancement with ripples will provide complete button spec alignment.
194
192
  opacity: .18;
195
193
  }
196
194
 
197
195
  .mdc-list-item[aria-disabled="true"] {
198
- cursor: default;
199
-
200
196
  @include mdc-theme-prop(color, text-disabled-on-light);
201
197
 
202
198
  @include mdc-theme-dark(".mdc-select") {
203
199
  @include mdc-theme-prop(color, text-disabled-on-dark);
204
200
  }
201
+
202
+ cursor: default;
205
203
  }
206
204
 
207
205
  .mdc-list-item[aria-disabled="true"] {
@@ -210,7 +208,7 @@ $mdc-simple-menu-item-fade-duration: .3s;
210
208
  opacity: 0;
211
209
  }
212
210
  }
213
- /* stylelint-enable plugin/selector-bem-pattern */
211
+ // stylelint-enable plugin/selector-bem-pattern
214
212
  }
215
213
 
216
- /* postcss-bem-linter: end */
214
+ // postcss-bem-linter: end