mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-12-12 08:35:28 +00:00
fix: set tabindex -1 on hidden tabs
This commit is contained in:
parent
ac27855dec
commit
7e921a4a3a
|
@ -164,7 +164,8 @@ class TabberAction {
|
||||||
tabpanelVisibilityUpdates.push( {
|
tabpanelVisibilityUpdates.push( {
|
||||||
element: tabpanel,
|
element: tabpanel,
|
||||||
attributes: {
|
attributes: {
|
||||||
'aria-hidden': 'false'
|
'aria-hidden': 'false',
|
||||||
|
tabindex: '0'
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
if ( typeof resizeObserver !== 'undefined' && resizeObserver ) {
|
if ( typeof resizeObserver !== 'undefined' && resizeObserver ) {
|
||||||
|
@ -174,7 +175,8 @@ class TabberAction {
|
||||||
tabpanelVisibilityUpdates.push( {
|
tabpanelVisibilityUpdates.push( {
|
||||||
element: tabpanel,
|
element: tabpanel,
|
||||||
attributes: {
|
attributes: {
|
||||||
'aria-hidden': 'true'
|
'aria-hidden': 'true',
|
||||||
|
tabindex: '-1'
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
if ( typeof resizeObserver !== 'undefined' && resizeObserver ) {
|
if ( typeof resizeObserver !== 'undefined' && resizeObserver ) {
|
||||||
|
|
Loading…
Reference in a new issue