Accessibility: Ambiguous view link on My Account orders table #43628
Labels
focus: accessibility
The issue/PR is related to accessibility.
focus: my account
Issues related to my account page.
priority: normal
The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc.
team: Proton
type: community contribution
Prerequisites
Describe the bug
On the My Account Orders page, the orders table contains a "View" button in the actions table that does not include any reference to the account number, either in visible text or an aria-label.
woocommerce/plugins/woocommerce/templates/myaccount/orders.php
Line 70 in 758df48
Expected behavior
The View link should be unique so that when multiple orders are present in the table, it is possible to distinguish each View link from one another.
Add an aria-label that includes the order number to the link like this:
<a href="https://shop.equalizedigital.com/my-account/view-order/518/" class="woocommerce-button wp-element-button button view" aria-label="View order number 518">View</a>
Actual behavior
Links are ambiguous
Steps to reproduce
See code linked above.
WordPress Environment
N/A
Isolating the problem
The text was updated successfully, but these errors were encountered: