From 951300fe8f51013733521fea4b28cba107a174e7 Mon Sep 17 00:00:00 2001 From: Mark Chen <9006264+Mark9804@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:31:47 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20a11y=20=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/components/ElysiumUI/ElyButton.vue | 2 ++ .../.vitepress/theme/components/ElysiumUI/ElyProfile.vue | 2 +- docs/.vitepress/theme/components/ElysiumUI/ElySpace.vue | 1 + docs/.vitepress/theme/components/ElysiumUI/ElyTag.vue | 9 ++++++++- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/theme/components/ElysiumUI/ElyButton.vue b/docs/.vitepress/theme/components/ElysiumUI/ElyButton.vue index 0eb7b8f..e2c6cdd 100644 --- a/docs/.vitepress/theme/components/ElysiumUI/ElyButton.vue +++ b/docs/.vitepress/theme/components/ElysiumUI/ElyButton.vue @@ -53,6 +53,8 @@ const buttonTag = computed(() => (isLink.value ? "a" : "button")); :href="isLink ? props.href : null" @click="handleClick" tabindex="0" + role="button" + aria-label="按钮" > diff --git a/docs/.vitepress/theme/components/ElysiumUI/ElyProfile.vue b/docs/.vitepress/theme/components/ElysiumUI/ElyProfile.vue index 5f7dc56..5c35a19 100644 --- a/docs/.vitepress/theme/components/ElysiumUI/ElyProfile.vue +++ b/docs/.vitepress/theme/components/ElysiumUI/ElyProfile.vue @@ -108,7 +108,7 @@ function handleScrollIndicatorClick() {