From 7e921a4a3a4b9f7d467b22272b477a06c638f04e Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sun, 2 Jun 2024 14:00:36 -0400 Subject: [PATCH] fix: set tabindex -1 on hidden tabs --- modules/ext.tabberNeue/ext.tabberNeue.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ext.tabberNeue/ext.tabberNeue.js b/modules/ext.tabberNeue/ext.tabberNeue.js index d3fb143..5a1ee38 100644 --- a/modules/ext.tabberNeue/ext.tabberNeue.js +++ b/modules/ext.tabberNeue/ext.tabberNeue.js @@ -164,7 +164,8 @@ class TabberAction { tabpanelVisibilityUpdates.push( { element: tabpanel, attributes: { - 'aria-hidden': 'false' + 'aria-hidden': 'false', + tabindex: '0' } } ); if ( typeof resizeObserver !== 'undefined' && resizeObserver ) { @@ -174,7 +175,8 @@ class TabberAction { tabpanelVisibilityUpdates.push( { element: tabpanel, attributes: { - 'aria-hidden': 'true' + 'aria-hidden': 'true', + tabindex: '-1' } } ); if ( typeof resizeObserver !== 'undefined' && resizeObserver ) {