File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -64,18 +64,21 @@ const getAnchorPath = computed(
64
64
<!-- <VFIcon name="menu" color="vue-blue" can-hover @click="toggleMenu" /> -->
65
65
</div >
66
66
<!-- hamburger-menu -->
67
- <!-- eslint-disable vuejs-accessibility/no-autofocus -->
68
67
<dialog
69
68
id =" navigation-mobile-menu-trigger"
70
69
ref =" dialogRef"
71
- autofocus
72
70
aria-label =" ハンバーガーメニュー"
73
71
class =" navigation-mobile-menu"
74
72
>
75
- <!-- eslint-enable vuejs-accessibility/no-autofocus -->
76
73
<ul >
77
- <li v-for =" link in navLinks" :key =" link.anchor" >
78
- <nuxt-link :to =" getAnchorPath(link.anchor)" @click =" toggleMenu" >
74
+ <li v-for =" (link, index) in navLinks" :key =" link.anchor" >
75
+ <!-- eslint-disable vuejs-accessibility/no-autofocus -->
76
+ <nuxt-link
77
+ :to =" getAnchorPath(link.anchor)"
78
+ :autofocus =" index === 0 && true"
79
+ @click =" toggleMenu"
80
+ >
81
+ <!-- eslint-enable vuejs-accessibility/no-autofocus -->
79
82
<VFTypography variant =" heading/200" color =" vue-blue" >{{ link.text }}</VFTypography >
80
83
</nuxt-link >
81
84
</li >
You can’t perform that action at this time.
0 commit comments