Skip to content

[Due for payment 2026-02-23] Screen Reader: Workspace Rules: The switch button is announced with an incorrect name #76906

Closed

Description

@nbhardwaj-del

Action Performed:

Prerequisite:

  • User is logged in
  1. Using JAWS + 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 "Distance Rates" menu item and press Enter to activate it
  4. Tab to focus on the toggle switch of "Default Rate"
  5. Observe the screen reader announcement

Expected Result:

The switch should be announced with the correct and descriptive name that accurately reflects its visible label and purpose, depending on context, e.g.:

  • 'Default Rate, /mile'

Actual Result:

When navigating to the switch, the screen reader announces it as “Track tax”, which does not accurately describe the control’s actual purpose or visible label. This can confuse users relying on assistive technologies.

HTML:

<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20" width="12" height="12" hovered="false" pressed="false" fill="#002E22">

Area issue was found in:

Workspace Rules

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:

Update the switch's aria-label to correctly match its visible label and accurately describe the control’s actual purpose, e.g.:

Environment(s)

Windows 11 Home - Chrome

Bug6996751_1762504062030.Screen_Reader-Workspace_Rules-The_switch_button_is_announced_with_an_incorrect_name.mp4
Image

Screenshots/Videos

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/6996751
Issue reported by: NA
Slack conversation: NA

Activity

  1. added
    Weekly
    Accessibility
    on Dec 7, 2025
  2. mavrickdeveloper commented on Dec 7, 2025

    @mavrickdeveloper
    Contributor

    PROPOSAL

    Please re-state the problem that we are trying to solve in this issue.

    When navigating to the switch, the screen reader announces it as “Track tax”, which does not accurately describe the control’s actual purpose or visible label. This can confuse users relying on assistive technologies.

    What is the root cause of that problem?

    The Switch component for individual distance rate rows is using an incorrect accessibilityLabel:

    rightElement: (
    <Switch
    isOn={!!value?.enabled}
    accessibilityLabel={translate('workspace.distanceRates.trackTax')}
    onToggle={(newValue: boolean) => updateDistanceRateEnabled(newValue, value.customUnitRateID)}
    showLockIcon={!canDisableOrDeleteRate(value.customUnitRateID)}
    disabled={value.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE}
    />
    ),

    the alternateText already constructs the readable format:

    alternateText: `${convertAmountToDisplayString(value.rate, value.currency ?? CONST.CURRENCY.USD)} / ${translate(
    `common.${customUnit?.attributes?.unit ?? CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES}`,
    )}`,

    What changes do you think we should make in order to solve the problem?

    The accessibilityLabel should describe the rate being toggled. A proper fix would combine the rate name with its value:

    accessibilityLabel={`${value.name}, ${convertAmountToDisplayString(
        value.rate,
        value.currency ?? CONST.CURRENCY.USD
    )}/${translate(
        `common.${customUnit?.attributes?.unit ?? CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES}`
    )}`}
  3. added
    Daily
    and removed
    Weekly
    on Dec 7, 2025
  4. melvin-bot commented on Dec 17, 2025

    @melvin-bot

    Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

  5. melvin-bot commented on Dec 18, 2025

    @melvin-bot

    10 days overdue. I'm getting more depressed than Marvin.

  6. melvin-bot commented on Dec 23, 2025

    @melvin-bot

    This issue has not been updated in over 14 days. eroding to Weekly issue.

  7. added and removed
    Weekly
    on Jan 17, 2026
  8. melvin-bot commented on Jan 17, 2026

    @melvin-bot

    This issue has not been updated in over 15 days. eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  9. added a commit that references this issue on Jan 26, 2026
  10. added
    Reviewing
    Weekly
    and removed on Feb 2, 2026
  11. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Feb 16, 2026
  12. changed the title [-]Screen Reader: Workspace Rules: The switch button is announced with an incorrect name[/-] [+][Due for payment 2026-02-23] Screen Reader: Workspace Rules: The switch button is announced with an incorrect name[/+] on Feb 16, 2026
  13. melvin-bot commented on Feb 16, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  14. removed
    Reviewing
    on Feb 16, 2026
  15. melvin-bot commented on Feb 16, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.19-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-02-23. 🎊

  16. rushatgabhane commented on Feb 17, 2026

    @rushatgabhane
    Member

    fixed #79233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityAwaiting PaymentWeekly

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions