Skip to content

Commit

Permalink
Radio button: Define visible background color for forced-colors mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio authored Dec 13, 2023
2 parents 9ce0a48 + 8bac5e8 commit 6097124
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/components/input-radio/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
input:checked:before {
background-color: #000;
}
@media (forced-colors: active) {
input:checked:before {
background: highlight !important; /* Give it a visible background in forced colors mode */
}
}

fieldset {
display: flex;
Expand Down

0 comments on commit 6097124

Please sign in to comment.