|
51 | 51 | $disabled: rgba($on-surface, 0.12);
|
52 | 52 | $on-disabled: rgba($on-surface, if($is-dark, 0.5, 0.38));
|
53 | 53 |
|
54 |
| - .mat-mdc-fab, |
55 |
| - .mat-mdc-mini-fab { |
| 54 | + @include sass-utils.current-selector-or-root() { |
56 | 55 | // TODO(wagnermaciel): The ripple-theme-styles mixin depends heavily on
|
57 | 56 | // being wrapped by using-mdc-theme. This workaround needs to be
|
58 | 57 | // revisited w/ a more holistic solution.
|
59 |
| - @include mdc-helpers.using-mdc-theme($theme) { |
60 |
| - @include button-theme-private.ripple-theme-styles($theme, true); |
| 58 | + .mat-mdc-fab, |
| 59 | + .mat-mdc-mini-fab { |
| 60 | + @include mdc-helpers.using-mdc-theme($theme) { |
| 61 | + @include button-theme-private.ripple-theme-styles($theme, true); |
| 62 | + } |
61 | 63 | }
|
62 | 64 |
|
63 |
| - @include button-theme-private.apply-disabled-style() { |
64 |
| - @include _fab-variant($on-disabled, $disabled); |
| 65 | + :disabled, a[disabled='true'] { |
| 66 | + @include button-theme-private.apply-disabled-style() { |
| 67 | + @include _fab-variant($on-disabled, $disabled); |
| 68 | + } |
65 | 69 | }
|
66 | 70 |
|
67 |
| - &.mat-unthemed { |
| 71 | + .mat-unthemed { |
68 | 72 | @include _fab-variant($on-surface, $surface);
|
69 | 73 | }
|
70 | 74 |
|
71 |
| - &.mat-primary { |
| 75 | + .mat-primary { |
72 | 76 | @include _fab-variant($on-primary, $primary);
|
73 | 77 | }
|
74 | 78 |
|
75 |
| - &.mat-accent { |
| 79 | + .mat-accent { |
76 | 80 | @include _fab-variant($on-accent, $accent);
|
77 | 81 | }
|
78 | 82 |
|
79 |
| - &.mat-warn { |
| 83 | + .mat-warn { |
80 | 84 | @include _fab-variant($on-warn, $warn);
|
81 | 85 | }
|
82 | 86 | }
|
|
88 | 92 | }
|
89 | 93 |
|
90 | 94 | $typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($theme);
|
91 |
| - .mat-mdc-extended-fab { |
| 95 | + @include sass-utils.current-selector-or-root() { |
92 | 96 | @include mdc-extended-fab-theme.theme($typography-tokens);
|
93 | 97 | }
|
94 | 98 | }
|
|
0 commit comments