From baa1b0f074f5c69c0abe36d3f1dbcca46ba17e43 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 16 Nov 2021 10:41:44 +0800 Subject: [PATCH] feat(Tabs): add aria-orientation and tabindex for a11y (#9872) * feat(Tabs): add aria-orientation for a11y * chore: update --- .../test/__snapshots__/index.spec.ts.snap | 3 + .../test/__snapshots__/index.spec.ts.snap | 12 ++++ .../test/__snapshots__/demo.spec.ts.snap | 4 ++ .../icon/test/__snapshots__/demo.spec.ts.snap | 5 ++ .../test/__snapshots__/demo.spec.ts.snap | 3 + .../list/test/__snapshots__/demo.spec.ts.snap | 4 ++ .../test/__snapshots__/demo.spec.ts.snap | 4 ++ .../tab/test/__snapshots__/demo.spec.ts.snap | 60 +++++++++++++++++++ .../test/__snapshots__/index.spec.tsx.snap | 21 +++++++ .../test/__snapshots__/insert.spec.tsx.snap | 12 ++++ packages/vant/src/tabs/Tabs.tsx | 1 + packages/vant/src/tabs/TabsTitle.tsx | 1 + 12 files changed, 130 insertions(+) diff --git a/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap index aa247e4b3..185f67837 100644 --- a/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap @@ -60,9 +60,11 @@ exports[`should update tabs when previous tab is clicked 1`] = `