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

feat(tooltip): only for diffbase #8012

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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