Skip to content

Commit d477b3d

Browse files
committed
fix: add focus-visible rule to buttons
1 parent a90fb5f commit d477b3d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/modal/SelectEmoteSet/SelectEmoteSet.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ const onRename = (set: EmoteSet | null) => {
364364
@include themify() {
365365
> button[selector="card-details"] {
366366
background-color: darken(themed("backgroundColor"), 4);
367+
transition: outline-color 100ms;
368+
outline-color: transparent;
367369
368370
&[selected="true"] {
369371
background-color: mix(themed("backgroundColor"), themed("primary"), 85%);
@@ -375,6 +377,10 @@ const onRename = (set: EmoteSet | null) => {
375377
background-color: darken(themed("backgroundColor"), 8);
376378
}
377379
380+
&:focus-visible {
381+
outline: themed("primary") 2px solid;
382+
}
383+
378384
> div > div[selector="set-name"] > div[selector="label-list"] {
379385
> span[label] {
380386
background-color: themed("backgroundColor");
@@ -398,6 +404,12 @@ const onRename = (set: EmoteSet | null) => {
398404
align-items: center;
399405
justify-content: center;
400406
background-color: darken(themed("backgroundColor"), 4);
407+
transition: outline-color 100ms;
408+
outline-color: transparent;
409+
410+
&:focus-visible {
411+
outline: themed("primary") 2px solid;
412+
}
401413
}
402414
}
403415

0 commit comments

Comments
 (0)