Skip to content

Commit

Permalink
fix: add focus-visible rule to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Sep 5, 2022
1 parent a90fb5f commit d477b3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/modal/SelectEmoteSet/SelectEmoteSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ const onRename = (set: EmoteSet | null) => {
@include themify() {
> button[selector="card-details"] {
background-color: darken(themed("backgroundColor"), 4);
transition: outline-color 100ms;
outline-color: transparent;
&[selected="true"] {
background-color: mix(themed("backgroundColor"), themed("primary"), 85%);
Expand All @@ -375,6 +377,10 @@ const onRename = (set: EmoteSet | null) => {
background-color: darken(themed("backgroundColor"), 8);
}
&:focus-visible {
outline: themed("primary") 2px solid;
}
> div > div[selector="set-name"] > div[selector="label-list"] {
> span[label] {
background-color: themed("backgroundColor");
Expand All @@ -398,6 +404,12 @@ const onRename = (set: EmoteSet | null) => {
align-items: center;
justify-content: center;
background-color: darken(themed("backgroundColor"), 4);
transition: outline-color 100ms;
outline-color: transparent;
&:focus-visible {
outline: themed("primary") 2px solid;
}
}
}
Expand Down

0 comments on commit d477b3d

Please sign in to comment.