From 8ee394e115dcfb2336ca22b9ea7623d51bf9947c Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 18 Nov 2021 11:50:59 +0800 Subject: [PATCH] feat(Tabbar): add role, aria and tabindex for a11y (#9895) --- packages/vant/src/tabbar-item/TabbarItem.tsx | 3 + packages/vant/src/tabbar/Tabbar.tsx | 1 + .../test/__snapshots__/demo.spec.ts.snap | 158 ++++++++++++++---- .../test/__snapshots__/index.spec.tsx.snap | 4 +- 4 files changed, 136 insertions(+), 30 deletions(-) diff --git a/packages/vant/src/tabbar-item/TabbarItem.tsx b/packages/vant/src/tabbar-item/TabbarItem.tsx index cb41e8fd7..328b26546 100644 --- a/packages/vant/src/tabbar-item/TabbarItem.tsx +++ b/packages/vant/src/tabbar-item/TabbarItem.tsx @@ -89,8 +89,11 @@ export default defineComponent({ return (