From 7256590d0f5517e87fb7e1d10439a7d3b9f7e579 Mon Sep 17 00:00:00 2001 From: Ethan Wallace Date: Thu, 9 Jan 2025 08:32:41 -0500 Subject: [PATCH] fix(gcds-pagination): Add tabindex="0" to tags to function in webkit browsers (#723) * fix(gcds-pagination): Add tabindex='0' to links to function in webkit * Remove CSS that was causing issues --- .../gcds-pagination/gcds-pagination.css | 1 - .../gcds-pagination/gcds-pagination.tsx | 3 + .../test/gcds-pagination.spec.tsx | 112 +++++++++--------- 3 files changed, 59 insertions(+), 57 deletions(-) diff --git a/packages/web/src/components/gcds-pagination/gcds-pagination.css b/packages/web/src/components/gcds-pagination/gcds-pagination.css index d66f28d89..7de188c65 100644 --- a/packages/web/src/components/gcds-pagination/gcds-pagination.css +++ b/packages/web/src/components/gcds-pagination/gcds-pagination.css @@ -207,7 +207,6 @@ background: var(--gcds-pagination-active-background); border-color: var(--gcds-pagination-active-background); text-decoration: none; - pointer-events: none; } } } diff --git a/packages/web/src/components/gcds-pagination/gcds-pagination.tsx b/packages/web/src/components/gcds-pagination/gcds-pagination.tsx index 73c96d534..c07058e03 100644 --- a/packages/web/src/components/gcds-pagination/gcds-pagination.tsx +++ b/packages/web/src/components/gcds-pagination/gcds-pagination.tsx @@ -138,6 +138,7 @@ export class GcdsPagination { : 'javascript:void(0)'; const linkAttrs = { 'href': href, + 'tabindex': 0, 'aria-label': !end ? I18N[this.lang].pageNumberOf .replace('{#}', page) @@ -392,6 +393,7 @@ export class GcdsPagination {
  • {