-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Action Performed:
Prerequisite:
- User is logged in
Steps:
- Using Chrome, open the URL: https://new.expensify.com/
- Tab to focus on the required workspace and press Enter to activate it
- Once the Workspace menu is displayed, tab to focus on the "Reports" menu item and press Enter to activate it
- Tab to focus on the "Report fields" toggle switch and press Enter to expand it
- Observe the screen reader announcement
Other Occurrences:
- On Workspaces - Rules
- On Workspace - More features
Expected Result:
The switch button should be announced with the complete visible label and description.
Expected Announcement:
Report fields, Report fields apply to all spend and can be helpful when you'd like to prompt for extra information, switch off
Actual Result:
When navigating to the switch button, only the visible label "Report fields" is announced by the screen reader. The descriptive text displayed below the visible label (e.g., “Report fields apply to all spend and can be helpful when you'd like to prompt for extra information.") is not conveyed to the users. As a result, users may not fully understand the purpose or context of the switch.
HTML:
Area issue was found in:
Workspace-Reports
Failed WCAG checkpoints
WCAG 2.4.6 Headings and Labels
https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels
User impact:
Descriptive headings are necessary for users who have disabilities that make reading slow and for people with limited short-term memory. These users benefit when section titles make it possible to predict what each section contains. Form input controls with labels that clearly describe the content that is expected to be entered helps users know how to successfully complete the form.
Suggested resolution:
Use aria-labelledby attribute to programmatically associate the full visible label and relevant description with the switch control so that the entire displayed text is announced accurately when the user navigates to it.
Refer:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby
Environment(s)
Windows 11 Home - Chrome
Screenshots/Videos
Bug6996233_1762492189486.Screen_Reader-Workspace-Reports-The_switch_button_is_announced_without_part_of_displayed_text.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/6996233
Issue reported by: NA
Slack conversation: NA