File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ $prefix: (mat, switch);
8
8
// but may be in a future version of the theming API.
9
9
@function get-unthemable-tokens () {
10
10
@return (
11
+ disabled- selected- handle- opacity: 0.38 ,
12
+ disabled- unselected- handle- opacity: 0.38 ,
13
+
11
14
unselected- handle- size: 20px ,
12
15
selected- handle- size: 20px ,
13
16
pressed- handle- size: 20px ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ $prefix: (mdc, switch);
18
18
@function get-unthemable-tokens () {
19
19
@return (
20
20
// Opacity of handle when disabled.
21
- disabled- handle- opacity: 0.38 ,
21
+ disabled- handle- opacity: null ,
22
22
// Opacity of icon when disabled and selected.
23
23
disabled- selected- icon- opacity: 0.38 ,
24
24
// Opacity of track when disabled.
Original file line number Diff line number Diff line change 224
224
@include token-utils .create-token-slot (border , disabled- unselected- track- outline);
225
225
}
226
226
}
227
+
228
+ @include token-utils .use-tokens (m2-mat-switch .$prefix , m2-mat-switch .get-token-slots ()) {
229
+ .mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle ::after {
230
+ @include token-utils .create-token-slot (opacity , disabled- selected- handle- opacity);
231
+ }
232
+
233
+ .mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle ::after {
234
+ @include token-utils .create-token-slot (opacity , disabled- unselected- handle- opacity);
235
+ }
236
+ }
You can’t perform that action at this time.
0 commit comments