Skip to content

[Due for payment 2026-01-30] Screen Reader: Workspace-Reports: The switch button is announced without part of displayed text #76907

@nbhardwaj-del

Description

@nbhardwaj-del

Action Performed:

Prerequisite:

  • User is logged in

Steps:

  1. Using Chrome, open the URL: https://new.expensify.com/
  2. Tab to focus on the required workspace and press Enter to activate it
  3. Once the Workspace menu is displayed, tab to focus on the "Reports" menu item and press Enter to activate it
  4. Tab to focus on the "Report fields" toggle switch and press Enter to expand it
  5. Observe the screen reader announcement

Other Occurrences:

  1. On Workspaces - Rules
  2. 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:

Report fields
Report fields apply to all spend and can be helpful when you'd like to prompt for extra information.

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

Image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityIssues affecting WACG accessibility on any platform.Awaiting PaymentAuto-added when associated PR is deployed to productionWeeklyKSv2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions