Skip to content

Commit 86c4ac8

Browse files
committed
chore: Improve the accessibility of app
1 parent 242f979 commit 86c4ac8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"/>
66
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
77
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#f6d2d2">
88
<meta name="msapplication-TileColor" content="#f6d2d2">

src/layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<main p="16" text="gray-700 dark:gray-200">
33
<RouterView />
44

5-
<div mx-auto py-15 text-center text-14 opacity-50>
6-
Default Layout
5+
<div mx-auto py-15 text-center text-10 text-gray-500>
6+
[Default Layout]
77
</div>
88
</main>
99
</template>

src/layouts/home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<main text="gray-700 dark:gray-200">
33
<RouterView />
44

5-
<div mx-auto mt-15 text-center text-14 opacity-50>
6-
Home Layout
5+
<div mx-auto mt-15 text-center text-10 text-gray-500>
6+
[Home Layout]
77
</div>
88
</main>
99
</template>

src/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const menuItems = [
3737
<VanCellGroup inset>
3838
<VanCell center title="🌗 暗黑模式">
3939
<template #right-icon>
40-
<VanSwitch v-model="checked" size="20px" @click="toggle()" />
40+
<VanSwitch v-model="checked" size="20px" aria-label="on/off Dark Mode" @click="toggle()" />
4141
</template>
4242
</VanCell>
4343

0 commit comments

Comments
 (0)