File tree 1 file changed +7
-0
lines changed
src/components/common/navbar
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ const onTouchEnd = (e: TouchEvent) => {
212
212
<template v-for =" _route in visibleRoutes " :key =" _route " >
213
213
<NTab
214
214
class =" tab"
215
+ tabindex =" 0"
215
216
:style ="
216
217
_route === activeRoute
217
218
? { '--n-tab-text-color-hover': 'var(--navbar-text-color-hover-active)' }
@@ -220,6 +221,7 @@ const onTouchEnd = (e: TouchEvent) => {
220
221
:name =" _route.toLowerCase()"
221
222
type =" segment"
222
223
@click =" navigate(_route)"
224
+ @keydown.enter =" navigate(_route)"
223
225
>
224
226
<NFlex
225
227
align =" center"
@@ -384,6 +386,11 @@ nav {
384
386
--n-font-weight-strong : normal ;
385
387
386
388
padding : 0 0.75rem ;
389
+ outline : none ;
390
+
391
+ & :focus-visible {
392
+ color : var (--n-tab-text-color-hover );
393
+ }
387
394
}
388
395
}
389
396
}
You can’t perform that action at this time.
0 commit comments