fix(iconbutton): fix HCM disabled opacity and outlined

PiperOrigin-RevId: 565089379
This commit is contained in:
Andrew Jakubowicz 2023-09-13 10:22:02 -07:00 committed by Copybara-Service
parent fe79d2adfd
commit 1163315948
2 changed files with 13 additions and 3 deletions

View File

@ -162,16 +162,20 @@
}
@media (forced-colors: active) {
:host([disabled]) {
--_disabled-outline-opacity: 1;
}
// Selected button in HCM has an outline.
.selected {
&::before {
border-color: var(--_outline-color);
border-color: CanvasText;
border-width: var(--_outline-width);
}
&:disabled::before {
border-color: var(--_disabled-outline-color);
opacity: var(--_disabled-outline-opacity);
border-color: GrayText;
opacity: 1;
}
}
}

View File

@ -109,4 +109,10 @@
:host([touch-target='none']) .touch {
display: none;
}
@media (forced-colors: active) {
:host([disabled]) {
--_disabled-icon-opacity: 1;
}
}
}