Skip to content

[A11y Switch]: Tooltip doesn't show on keyboard focus #2959

@mari-shakhanava

Description

@mari-shakhanava

Description

Tooltip component doesn't display additional content when Switch/Checkbox
receives keyboard focus, only on mouse hover. This violates WCAG 1.4.13 Content on Hover or Focus (Level AA).

Steps to Reproduce

https://codesandbox.io/p/sandbox/uui-switch-isssue-exapmle-9dwn8y

Actual result

  • Hover: Tooltip shows
  • Keyboard Focus (Tab): Tooltip doesn't show
    Focus events on nested <input> inside Switch/Checkbox don't bubble to the wrapper element that Tooltip monitors.

Expected result

Both hover AND focus should trigger the tooltip.

Environment

  • UUI version: 6.3.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions