A11Y: Add aria-label to menu tabs (#27071)

* Update menu-tab.hbs

* Update menu-tab.hbs

* linting
This commit is contained in:
carson chang 2024-05-18 08:39:25 -07:00 committed by GitHub
parent aa1b874f1a
commit 875a413164
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
id={{this.id}}
tabindex={{this.tabIndex}}
title={{@tab.title}}
aria-label={{@tab.title}}
aria-selected={{if this.isActive "true" "false"}}
aria-controls={{this.ariaControls}}
data-tab-number={{@tab.position}}