-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Action Performed:
Prerequisites:
- The user is signed in
- The start and stop points have been selected on the track distance page
- Using Chrome + JAWS, open the URL - https://new.expensify.com/
- Navigate to the "+" icon and press Enter
- Tab to the "Track distance" menu item and press Enter to open the Pop-up
- After selecting the "Start/stop" points, Tab to the "Next" button and press Enter
- Tab to the "Expensify.org / Teachers Unite" and press Enter to open
- Tab to the "refer your boss" and the close "X" button
- Observe the screen reader announcement
Expected Result:
Each interactive element must expose a correct accessible role, name, and be announced individually.
Here, each button should be announced separately:
- 'Submit an expense, refer your boss button'
- 'Close button'
Actual Result:
The 'refer your boss' button is announced without a role as 'Submit an expense, refer your boss', so that the screen reader users cannot identify it as a button element.
The close 'X' button is grouped with the control together, and it is announced as 'referral close button'.
HTML:
Area issue was found in:
Track Distance
Failed WCAG checkpoints
WCAG 4.1.2 Name, Role, Value
https://www.w3.org/WAI/WCAG22/Understanding/name-role-value
User impact:
Providing role, state, and value information on all user interface components enables compatibility with assistive technology, such as screen readers, screen magnifiers, and speech recognition software, used by people with disabilities.
Suggested resolution:
Ensure the 'refer your boss' button and the close 'X' button are coded as two separate interactive elements, not grouped or nested inside the same element
Remove the aria-label and tabindex="0" from the wrapping
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes
Environment(s)
Windows Windows 11 Home - Chrome
Screenshots/Videos
Bug6996996_1762515483226.The_button__refrer_your_boss__announced_without_role__grouped_with_the_button__x_.mp4
Version Number: NA
Reproducible in staging?: NA
Reproducible in production?: Yes
Email or phone of affected tester (no customers): NA
Logs: https://stackoverflow.com/c/expensify/questions/4856 NA
Notes/Photos/Videos: Any additional supporting documentation Yes
Expensify/Expensify Issue URL: https://platform.applause.com/company/12102/products/36605/community-issues/6996996
Issue reported by: NA
Slack conversation: NA