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

Commit aa833a4

Browse files
sayriscopybara-github
authored andcommitted
feat(tooltip): only for diffbase
PiperOrigin-RevId: 514521733
1 parent 989ae2e commit aa833a4

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

packages/mdc-icon-button/_icon-button-theme.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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) {

packages/mdc-icon-button/_icon-button.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@
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) {

0 commit comments

Comments
 (0)