Accessibility: Single product tabs missing aria-selected #43607
Labels
focus: accessibility
The issue/PR is related to accessibility.
focus: shop
Issues related to shop page.
team: Kirigami & Origami
type: community contribution
Prerequisites
Describe the bug
The tabs on the product single are missing aria-selected, so screen reader users do not know which tab is currently active.
See:
woocommerce/plugins/woocommerce/templates/single-product/tabs/tabs.php
Line 36 in 758df48
The selected tab in a tablist should have aria-selected="true" set. All inactive tabs in the tablist should have aria-selected="false" set. Use JS to change the value of the attribute as tabs are selected.
Expected behavior
Screen reader users should hear which tab is currently active when viewing tabbed content.
Actual behavior
Screen reader users do not know which panel is currently active.
Steps to reproduce
Go to the code linked above and observe that aria-selected is not present.
WordPress Environment
N/A
Isolating the problem
The text was updated successfully, but these errors were encountered: