Skip to content

Commit

Permalink
fix(button): incorrect HCM colors
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557601131
  • Loading branch information
AndrewJakubowicz authored and Copybara-Service committed Aug 16, 2023
1 parent f39da54 commit b144227
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions button/internal/_outlined-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
border-color: var(--_disabled-outline-color);
opacity: var(--_disabled-outline-opacity);
}

@media (forced-colors: active) {
.button:disabled & {
opacity: 1;
}
}
}

.button__outline,
Expand Down
8 changes: 7 additions & 1 deletion button/internal/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,18 @@
&::before {
content: '';
box-sizing: border-box;
border: 1px solid transparent;
border: 1px solid CanvasText;
border-radius: inherit;
inset: 0;
pointer-events: none;
position: absolute;
}

&:disabled {
--_disabled-icon-opacity: 1;
--_disabled-container-opacity: 1;
--_disabled-label-text-opacity: 1;
}
}
}

Expand Down

0 comments on commit b144227

Please sign in to comment.