Skip to content

aria-actions: handling focus when actions are synthetically triggered #2691

@smhigley

Description

@smhigley

The problem:

When actions are triggered from the referencing element e.g. through the actions rotor or an actions-specific UI, the desired UX would be for focus to stay on the referencing element.

Right now, it moves to the action as a natural result of triggering a click event.

Possible solutions:

  1. Do not call focus on the action when synthetically triggering it. Pros: best user experience. Cons: AT detection vector?
  2. Call focus back on the referencing element immediately after the click. Pros: less of a detection vector. Cons: depending on the timing, this could trigger SR behavior like mode switching, starting to read the change, etc.
  3. ??

I've chatted with Jamie, Brett, and Chrome folks, and there are no technical issues with implementing any of these solutions. The question is mostly around whether implementing specific focus behavior after synthetically triggering it is a privacy concern.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions