This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -343,13 +343,6 @@ $light-theme: (
343343@mixin _icon-color-with-map ($color-map ) {
344344 @include ink-color_ (state .get-default-state ($color-map ));
345345
346- $disabled : state .get-disabled-state ($color-map );
347- @if $disabled {
348- & :disabled {
349- @include ink-color_ ($disabled );
350- }
351- }
352-
353346 $focus : state .get-focus-state ($color-map );
354347 @if $focus {
355348 @include ripple-theme .focus {
@@ -370,6 +363,13 @@ $light-theme: (
370363 @include ink-color_ ($pressed );
371364 }
372365 }
366+
367+ $disabled : state .get-disabled-state ($color-map );
368+ @if $disabled {
369+ & :disabled {
370+ @include ink-color_ ($disabled );
371+ }
372+ }
373373}
374374
375375@mixin _states-colors ($color-map ) {
Original file line number Diff line number Diff line change 191191 $ripple-target : icon-button-theme .$ripple-target
192192 );
193193
194+ & :disabled {
195+ @include ripple-theme .states-opacities (
196+ (
197+ hover: 0 ,
198+ focus: 0 ,
199+ press: 0 ,
200+ ),
201+ $ripple-target : icon-button-theme .$ripple-target ,
202+ $query : $query
203+ );
204+ }
205+
194206 .mdc-icon-button__ripple {
195207 $feat-structure : feature-targeting .create-target ($query , structure );
196208 @include feature-targeting .targets ($feat-structure ) {
You can’t perform that action at this time.
0 commit comments