You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-03-31] [A11y] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role #76938
AccessibilityIssues affecting WACG accessibility on any platform.Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorMelvin TriageAutomatic AI Analysis of an issue
Navigate using TAB to the Expensify logo, at the top, left corner of the page
Observe how it is announced
Other Occurrences:
On Workspaces: the row of the workspace
Expected Result:
The Expensify logo logo will be announced as a link, as it takes the user to a new page
Actual Result:
When users navigate to the Expensify logo at the top, left corner of the screen, it is announced as a 'Button'. Users will become confused if they are unexpectedly taken to a different page
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.
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!
Please re-state the problem that we are trying to solve in this issue.
Screen readers (e.g., JAWS) announce the Expensify logo in the top-left corner as a "Button", but pressing it navigates the user to a different page (Inbox/Chats). The same issue exists for workspace rows on the Workspaces page — they announce as "Button" but navigate to a workspace page. Per WCAG 4.1.2, elements that navigate should have link semantics so users know to expect page navigation rather than an in-place action.
What is the root cause of that problem?
Two components use CONST.ROLE.BUTTON on their Pressable elements despite performing navigation:
Expensify logo in src/components/Navigation/NavigationTabBar/index.tsx:304 uses accessibilityRole={CONST.ROLE.BUTTON} but its onPress calls navigateToChats, which navigates to ROUTES.INBOX (or a specific report route).
Workspace rows in src/pages/workspace/WorkspacesListRow.tsx:228 use role={CONST.ROLE.BUTTON} but onPress triggers navigateToWorkspace, which navigates to ROUTES.WORKSPACE_INITIAL or ROUTES.WORKSPACE_OVERVIEW.
Both render as role="button" in the DOM, causing screen readers to announce them as buttons instead of links.
What changes do you think we should make in order to solve the problem?
Change the role from CONST.ROLE.BUTTON to CONST.ROLE.LINK on both components:
In src/components/Navigation/NavigationTabBar/index.tsx:304 — change accessibilityRole={CONST.ROLE.BUTTON} to role={CONST.ROLE.LINK} (this also migrates from the deprecated accessibilityRole prop to the modern role prop, consistent with the rest of the NavigationTabBar items).
In src/pages/workspace/WorkspacesListRow.tsx:228 — change role={CONST.ROLE.BUTTON} to role={CONST.ROLE.LINK}.
This is a well-supported pattern in the codebase — CONST.ROLE.LINK is documented as "Use for elements that navigate to other pages or content" (src/CONST/index.ts:5671), and BaseGenericPressable already has built-in W3C APG Link Pattern keyboard handling for role="link" (src/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx:152-172). There are ~16 existing usages of role={CONST.ROLE.LINK} across the codebase.
What alternative solutions did you explore? (Optional)
Using a native <a> element with href was considered, but the navigation is done programmatically via Navigation.navigate() with complex conditional logic (e.g., restoring last viewed report on wide layout). A Pressable with role={CONST.ROLE.LINK} achieves the correct screen reader semantics while preserving the existing navigation logic.
Detailed Investigation
Root Cause Analysis
The Expensify logo button is rendered at src/components/Navigation/NavigationTabBar/index.tsx:303-316 (only on wide/desktop layout):
<PressableWithFeedbackaccessibilityRole={CONST.ROLE.BUTTON}// <-- produces role="button" in DOMaccessibilityLabel={translate('common.home')}accessibletestID="ExpensifyLogoButton"onPress={navigateToChats}// <-- navigates to Inbox page...>
The workspace rows are rendered at src/pages/workspace/WorkspacesListRow.tsx:225-232:
<PressableWithoutFeedbackaccessibleaccessibilityLabel={accessibilityLabel}role={CONST.ROLE.BUTTON}// <-- produces role="button" in DOMonPress={onPress}// <-- navigates to workspace page...>
The navigateToChats function (line 185-210) calls Navigation.navigate(ROUTES.INBOX) or navigates to a specific report. The navigateToWorkspace function (in WorkspacesListPage.tsx:515-525) calls Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID)) or ROUTES.WORKSPACE_OVERVIEW.getRoute(policyID).
Evidence Chain
CONST.ROLE.BUTTON = 'button' (src/CONST/index.ts:5660) → renders role="button" in DOM
src/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx:152-172 — Existing link role keyboard handling
Implementation Notes
The accessibilityRole prop on the logo button should be migrated to role (per the CONST.ROLE JSDoc which states new components should use role instead)
Changing from CONST.ROLE.BUTTON to CONST.ROLE.LINK will also remove data-selection-scraper-hidden-element and userSelectNone style from these elements (controlled by isRoleButton in BaseGenericPressable:51), which is the correct behavior for link-like elements
The Enter key activation for link elements is already handled by BaseGenericPressable
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A - accessibility improvement
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
changed the title [-]Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/-][+][Due for payment 2026-03-31] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/+]on Mar 31, 2026
changed the title [-][Due for payment 2026-03-31] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/-][+][Due for payment 2026-03-31] [A11y] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/+]on Apr 2, 2026
AccessibilityIssues affecting WACG accessibility on any platform.Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorMelvin TriageAutomatic AI Analysis of an issue
Activity
melvin-bot commentedon Jan 1, 2026
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!
MelvinBot commentedon Feb 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Screen readers (e.g., JAWS) announce the Expensify logo in the top-left corner as a "Button", but pressing it navigates the user to a different page (Inbox/Chats). The same issue exists for workspace rows on the Workspaces page — they announce as "Button" but navigate to a workspace page. Per WCAG 4.1.2, elements that navigate should have link semantics so users know to expect page navigation rather than an in-place action.
What is the root cause of that problem?
Two components use
CONST.ROLE.BUTTONon their Pressable elements despite performing navigation:Expensify logo in
src/components/Navigation/NavigationTabBar/index.tsx:304usesaccessibilityRole={CONST.ROLE.BUTTON}but itsonPresscallsnavigateToChats, which navigates toROUTES.INBOX(or a specific report route).Workspace rows in
src/pages/workspace/WorkspacesListRow.tsx:228userole={CONST.ROLE.BUTTON}butonPresstriggersnavigateToWorkspace, which navigates toROUTES.WORKSPACE_INITIALorROUTES.WORKSPACE_OVERVIEW.Both render as
role="button"in the DOM, causing screen readers to announce them as buttons instead of links.What changes do you think we should make in order to solve the problem?
Change the role from
CONST.ROLE.BUTTONtoCONST.ROLE.LINKon both components:In
src/components/Navigation/NavigationTabBar/index.tsx:304— changeaccessibilityRole={CONST.ROLE.BUTTON}torole={CONST.ROLE.LINK}(this also migrates from the deprecatedaccessibilityRoleprop to the modernroleprop, consistent with the rest of the NavigationTabBar items).In
src/pages/workspace/WorkspacesListRow.tsx:228— changerole={CONST.ROLE.BUTTON}torole={CONST.ROLE.LINK}.This is a well-supported pattern in the codebase —
CONST.ROLE.LINKis documented as "Use for elements that navigate to other pages or content" (src/CONST/index.ts:5671), andBaseGenericPressablealready has built-in W3C APG Link Pattern keyboard handling forrole="link"(src/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx:152-172). There are ~16 existing usages ofrole={CONST.ROLE.LINK}across the codebase.What alternative solutions did you explore? (Optional)
<a>element withhrefwas considered, but the navigation is done programmatically viaNavigation.navigate()with complex conditional logic (e.g., restoring last viewed report on wide layout). A Pressable withrole={CONST.ROLE.LINK}achieves the correct screen reader semantics while preserving the existing navigation logic.Detailed Investigation
Root Cause Analysis
The Expensify logo button is rendered at
src/components/Navigation/NavigationTabBar/index.tsx:303-316(only on wide/desktop layout):The workspace rows are rendered at
src/pages/workspace/WorkspacesListRow.tsx:225-232:The
navigateToChatsfunction (line 185-210) callsNavigation.navigate(ROUTES.INBOX)or navigates to a specific report. ThenavigateToWorkspacefunction (inWorkspacesListPage.tsx:515-525) callsNavigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID))orROUTES.WORKSPACE_OVERVIEW.getRoute(policyID).Evidence Chain
CONST.ROLE.BUTTON='button'(src/CONST/index.ts:5660) → rendersrole="button"in DOM<button role="button" aria-label="Home">→ announces "Home, Button"Relevant Code
src/components/Navigation/NavigationTabBar/index.tsx:303-316— Expensify logo with wrong rolesrc/pages/workspace/WorkspacesListRow.tsx:225-232— Workspace row with wrong rolesrc/CONST/index.ts:5671-5672—CONST.ROLE.LINKdefinitionsrc/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx:152-172— Existing link role keyboard handlingImplementation Notes
accessibilityRoleprop on the logo button should be migrated torole(per the CONST.ROLE JSDoc which states new components should useroleinstead)CONST.ROLE.BUTTONtoCONST.ROLE.LINKwill also removedata-selection-scraper-hidden-elementanduserSelectNonestyle from these elements (controlled byisRoleButtonin BaseGenericPressable:51), which is the correct behavior for link-like elementsNext Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR, or@MelvinBot <your feedback>to refine this analysis.40 remaining items
jjcoffee commentedon Mar 25, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A - accessibility improvement
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/619556
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-6bcb-ae5b-1585-7a58f38ac6e4jjcoffee commentedon Mar 25, 2026
Regression fix deployed to production yesterday, so payment should be due
2026-03-31melvin-bot commentedon Mar 30, 2026
@jjcoffee Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Mar 30, 2026
@jjcoffee Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Mar 30, 2026
@jjcoffee Eep! 4 days overdue now. Issues have feelings too...
[-]Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/-][+][Due for payment 2026-03-31] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/+]mollfpr commentedon Mar 31, 2026
Updated the title to reflect the due date.
melvin-bot commentedon Mar 31, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
melvin-bot commentedon Apr 1, 2026
@mallenexpensify Still overdue 6 days?! Let's take care of this!
mallenexpensify commentedon Apr 1, 2026
Payment Summary
Contributor+: @jjcoffee due $125 via NewDot, due to regression.
^ Test case created
Comment/reopen, if needed. Thx
[-][Due for payment 2026-03-31] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/-][+][Due for payment 2026-03-31] [A11y] Screen Reader: Many Pages: The control opens another page/URL but announces with a button role[/+]JmillsExpensify commentedon Apr 6, 2026
$125 approved for @jjcoffee