Skip to content

Commit

Permalink
Accessibility improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
quintusl committed Mar 13, 2024
1 parent 7d427cd commit b5c4fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scj2000-web/components/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="pt-0">
<nav class="flex items-center justify-between flex-wrap bg-gray-300 drop-shadow-lg mt-0 p-2 md:p-4">
<div class="flex items-center flex-shrink-0 text-red-800 mr-6">
<AppLink to="/" text="主頁"><SvgInline name="scj2000" class="mr-2 text-red-800" /></AppLink>
<AppLink to="/" text="主頁"><span class="hidden sm:block font-ming text-red-800 text-2xl tracking-tight">快速倉頡中文輸入法</span></AppLink>
<AppLink to="/" text="主頁" aria-label="主頁"><SvgInline name="scj2000" class="mr-2 text-red-800" /></AppLink>
<AppLink to="/" text="主頁" aria-label="主頁"><span class="hidden sm:block font-ming text-red-800 text-2xl tracking-tight">快速倉頡中文輸入法</span></AppLink>
</div>
<div class="block md:hidden">
<button @click="toggleMenu()" class="flex items-center px-3 py-2 border rounded text-red-400 border-red-400 hover:text-white hover:border-white">
Expand Down
3 changes: 3 additions & 0 deletions scj2000-web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default defineNuxtConfig({
onload: 'this.media=\'all\'',
},
],
htmlAttrs: {
lang: 'zh-HK',
}
}
},
plugins: [
Expand Down

0 comments on commit b5c4fa9

Please sign in to comment.