Skip to content

Commit 1f31ec2

Browse files
authored
aria hidden (#137)
when there is no active tab set we need to remove the attribute aria-hidden. Other wise the tab is invisible to a screen reader PR for joomla/joomla-cms#28122
1 parent 45d3ec8 commit 1f31ec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/tab/tab.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
// Fallback if no active tab
138138
if (!this.hasActive) {
139139
tabsEl[0].setAttribute('active', '');
140+
tabsEl[0].removeAttribute('aria-hidden');
140141
this.hasActive = true;
141142
this.currentActive = tabsEl[0].id;
142143
this.querySelector(`#tab-${tabsEl[0].id}`).setAttribute('aria-selected', 'true');

0 commit comments

Comments
 (0)