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

Commit

Permalink
feat(tooltip): only for diffbase
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 514521733
  • Loading branch information
sayris authored and copybara-github committed Mar 13, 2023
1 parent 989ae2e commit aa833a4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/mdc-icon-button/_icon-button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,6 @@ $light-theme: (
@mixin _icon-color-with-map($color-map) {
@include ink-color_(state.get-default-state($color-map));

$disabled: state.get-disabled-state($color-map);
@if $disabled {
&:disabled {
@include ink-color_($disabled);
}
}

$focus: state.get-focus-state($color-map);
@if $focus {
@include ripple-theme.focus {
Expand All @@ -370,6 +363,13 @@ $light-theme: (
@include ink-color_($pressed);
}
}

$disabled: state.get-disabled-state($color-map);
@if $disabled {
&:disabled {
@include ink-color_($disabled);
}
}
}

@mixin _states-colors($color-map) {
Expand Down
12 changes: 12 additions & 0 deletions packages/mdc-icon-button/_icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,18 @@
$ripple-target: icon-button-theme.$ripple-target
);

&:disabled {
@include ripple-theme.states-opacities(
(
hover: 0,
focus: 0,
press: 0,
),
$ripple-target: icon-button-theme.$ripple-target,
$query: $query
);
}

.mdc-icon-button__ripple {
$feat-structure: feature-targeting.create-target($query, structure);
@include feature-targeting.targets($feat-structure) {
Expand Down

0 comments on commit aa833a4

Please sign in to comment.