Skip to content

Commit

Permalink
fix(a11y): add stackblitz button styling for high contrast theming (#…
Browse files Browse the repository at this point in the history
…3213)

* add forced colors to fix theming in high contrast

* remove important rule
  • Loading branch information
Mnickii authored Jun 13, 2024
1 parent 7932f55 commit cb7621a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .storybook/addons/codeEditorAddon/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ export class EditorElement extends LitElement {
.tab-right {
float: right;
@media (forced-colors: active) and (prefers-color-scheme: dark) {
svg,
svg>path {
fill: rgb(255, 255, 255);
color: rgb(255, 255, 255);
}
}
@media (forced-colors: active) and (prefers-color-scheme: light) {
svg,
svg>path {
fill: rgb(0, 0, 0);
color: rgb(0, 0, 0);
}
}
}
.tab[aria-selected='true'] {
Expand Down

0 comments on commit cb7621a

Please sign in to comment.