Skip to content

Commit d07c4b6

Browse files
committed
fix: regen i18n schema and gate aria-controls on sheet visibility
Sheet renders client-only; reference the id only when open so html-validator no longer reports a missing target during SSR.
1 parent b297232 commit d07c4b6

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

app/components/Header/MobileBottomBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function handleThemeClick() {
9898
type="button"
9999
:aria-label="isOpen ? $t('nav.close_menu') : $t('nav.open_menu')"
100100
:aria-expanded="isOpen"
101-
aria-controls="mobile-menu-sheet"
101+
:aria-controls="isOpen ? 'mobile-menu-sheet' : undefined"
102102
:classicon="isOpen ? 'i-lucide:x' : 'i-lucide:menu'"
103103
@click="toggle"
104104
/>

i18n/schema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,21 @@
619619
"docs_home": {
620620
"type": "string"
621621
},
622+
"docs_getting_started": {
623+
"type": "string"
624+
},
625+
"docs_guide": {
626+
"type": "string"
627+
},
628+
"docs_faq": {
629+
"type": "string"
630+
},
631+
"docs_integrations": {
632+
"type": "string"
633+
},
634+
"discover": {
635+
"type": "string"
636+
},
622637
"links": {
623638
"type": "string"
624639
},

0 commit comments

Comments
 (0)