Skip to content

Make disabled components focusable and hoverable #4585

Closed
vaadin/docs
#4077
@rolfsmeds

Description

@rolfsmeds

What is the problem?

Disabled components currently have tabindex="-1", which removes them from the keyboard tab order, making them effectively un-focusable, and, as a side-effect, makes them effectively invisible to assistive technologies, thus bad for accessibility.

The disabled state also applies the pointer-events:none css property, which disables hover/mouseover based functionality such as tooltips. This is unfortunate especially as tooltips are a convenient way to inform the user why a component (e.g. a Button) is disabled. Removing this would require some additional css and js to handle the pointer-inertness of the component, but enabled tooltip usage.

Ideally this behavior would be configurable via a feature flag or a global property, so that applications for which it is desired to keep the current behavior could easily revert back to it.

Browsers

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

Screen Readers

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

March 2025 (24.7)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions