Skip to content

[$250] Keyboard Navigation: Expense & Chat flows: focus is lost and does not return to triggering element after Back #96972

Description

@rushatgabhane

Action Performed:

Prerequisite:

  • The user is logged in
  1. Using Windows + Chrome, open https://new.expensify.com
  2. Navigate using TAB and press enter to open one of the flows below:
    • Track Distance (expense creation → Distance)
    • A flow opened from within a Chat (e.g. the '+' / create menu in a report)
  3. Navigate to the 'Back' button using TAB, press enter to activate
  4. Observe the focus behavior

Affected locations (Expense / Chat flows):

  • Track Distance (occurrence #41 in parent issue)
  • Chat flow (occurrence #48 in parent issue)

Expected Result:

When the user activates the 'Back' button, focus should return to the element that triggered the navigation, ensuring a predictable and logical focus order. Since these flows are opened from expanded content, focus should return to the control that opened that content.

Actual Result:

When the user activates the 'Back' button, focus is lost and does not return to the triggering element. Users must hit TAB again to regain focus, which is set to the first element of the page, forcing them to re-navigate through the content.

Failed WCAG checkpoints

WCAG 2.4.3 Focus Order
https://www.w3.org/WAI/WCAG22/Understanding/focus-order

User impact:

People with mobility impairments who rely on keyboard access benefit from a logical, usable focus order. People with vision impairments can become disoriented when tabbing takes focus somewhere unexpected or when they cannot easily find the content surrounding an interactive element.

Suggested resolution:

Programmatically set focus back to the triggering element after the user returns to the previous view using the Back button. For flows opened from expanded content, restore focus to the control that opened that content.

Environment(s)

Windows 10 - Chrome

Notes

Split out from parent issue #76921 (still reproducible occurrences, grouped by location).

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @Krishna2323

Metadata

Metadata

Labels

AccessibilityIssues affecting WACG accessibility on any platform.BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions