Skip to content

Screen Reader: Track Distance: The button 'refer your boss' grouped with the button 'x' #76902

@nbhardwaj-del

Description

@nbhardwaj-del

Action Performed:

Prerequisites:

  • The user is signed in
  • The start and stop points have been selected on the track distance page
  1. Using Chrome + JAWS, open the URL - https://new.expensify.com/
  2. Navigate to the "+" icon and press Enter
  3. Tab to the "Track distance" menu item and press Enter to open the Pop-up
  4. After selecting the "Start/stop" points, Tab to the "Next" button and press Enter
  5. Tab to the "Expensify.org / Teachers Unite" and press Enter to open
  6. Tab to the "refer your boss" and the close "X" button
  7. 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:

Submit an expense, refer your boss.

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

. Ensure the button 'refer your boss' is implemented as a separate button, so it focuses and announces separately from the button 'x'.
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
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityIssues affecting WACG accessibility on any platform.ReviewingHas a PR in reviewWeeklyKSv2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions