Skip to content

Commit 2dc0eab

Browse files
committed
fix(a11y): not showing ring on button when using mouse
1 parent 55d965e commit 2dc0eab

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

components/buttons/copyLink.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
transform
1515
rounded-md
1616
shadow
17-
outline-none
1817
justify-self-end
19-
focus:ring-4
18+
focus-visible:ring-4
2019
active:scale-y-75
2120
hover:scale-105 hover:shadow-lg
2221
copy-uri-button

components/buttons/nextDiff.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
bg-gray-300
1515
border border-gray-800
1616
rounded-sm
17-
outline-none
1817
dark:border-gray-400 dark:text-white dark:bg-gray-800
1918
align-center
20-
focus:ring-4
19+
focus-visible:ring-4
2120
active:scale-y-75
2221
hover:scale-105 hover:shadow-lg
2322
"

components/buttons/prevDiff.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
bg-gray-300
1515
border border-gray-800
1616
rounded-sm
17-
outline-none
17+
focus-visible:ring-4
1818
dark:border-gray-400 dark:text-white dark:bg-gray-800
1919
align-center
20-
focus:ring-4
2120
active:scale-y-75
2221
hover:scale-105 hover:shadow-lg
2322
"

0 commit comments

Comments
 (0)