Skip to content

Non-autofocused Popover not reachable by keyboard #8702

@rolfsmeds

Description

@rolfsmeds

What is the problem?

A Popover that is not modal or otherwise configured to automatically steal focus is inherently inaccessible by keyboard (unless some custom means of moving focus to it is provided).

A couple of solution options come to mind:

  • "Tab index emulation": programmatically moving focus to the overlay when tab is pressed on the target element after opening the popover. (And moving it back to the target element after the last tab stop inside the overlay; after returning to the target element, the "tab hijacking" is no longer in effect.)
  • Refactoring Popover (and other overlays) to be based on native popover (and/or <dialog>) and moving them from the dedicated overlay section at the end of the DOM to be immediate siblings of the target element, whereby the overlay's first tab stop will natively follow the target element.

Browsers

  • Chrome
  • Firefox
  • Safari
  • Safari on iOS
  • Edge

Screen Readers

  • None
  • NVDA
  • JAWS
  • VoiceOver on MacOS
  • VoiceOver on iOS

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions