From aa83ac257cca5fdb6ac7dc21dadf12da1559d0bd Mon Sep 17 00:00:00 2001 From: AK <144495202+AKnassa@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:16:04 -0400 Subject: [PATCH] fix(a11y): unique names for repeated nav landmarks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit axe landmark-unique (moderate): same-type landmarks need distinguishable names. Story matrices rendered several navs with identical default labels — fixed by passing distinct labels through existing props (Layout, Pagination, TabList, Toolbar, ToolbarEdgeCompensation, TablePagination stories). Component fix: useTablePagination position=both emitted two navs with one name from a single hook call — they now interpolate the label into distinct top/bottom names via new en.json keys; single-position names stay byte-identical. label config documented in doc.mjs. Baseline: -8 entries. Verified: 43/43 pagination + 147/147 wider slice tests, core typecheck, eslint clean, axe audit exit 0 (0 new, 13 resolved) across all six components. Part of #4681. --- .../a11y-table-pagination-both-labels.md | 6 +++ .github/a11y-baseline.json | 40 ------------------- apps/storybook/stories/Layout.stories.tsx | 26 +++++++----- apps/storybook/stories/Pagination.stories.tsx | 23 +++++++++-- apps/storybook/stories/TabList.stories.tsx | 13 +++++- .../stories/TablePagination.stories.tsx | 4 ++ apps/storybook/stories/Toolbar.stories.tsx | 5 ++- .../ToolbarEdgeCompensation.stories.tsx | 9 +++-- packages/core/locales/en.json | 10 ++++- .../pagination/useTablePagination.test.tsx | 38 ++++++++++++++++-- .../plugins/pagination/useTablePagination.tsx | 38 ++++++++++++++++-- .../core/src/Table/useTablePagination.doc.mjs | 7 ++++ 12 files changed, 152 insertions(+), 67 deletions(-) create mode 100644 .changeset/a11y-table-pagination-both-labels.md diff --git a/.changeset/a11y-table-pagination-both-labels.md b/.changeset/a11y-table-pagination-both-labels.md new file mode 100644 index 000000000000..e7b167503a50 --- /dev/null +++ b/.changeset/a11y-table-pagination-both-labels.md @@ -0,0 +1,6 @@ +--- +'@astryxdesign/core': patch +--- + +[fix] useTablePagination: with `position='both'` the two pagination `