Skip to content

No visible focus when button programmatically focused #12291

@onlyann

Description

@onlyann

Environment Information

  • Package version(s): 7.102.0
  • Browser and OS versions: tested with Chrome and Firefox.

Describe the issue:

When a button takes focus programmatically, it doesn't display a visible outline.

Please provide a reproduction of the issue in a codepen:

https://codepen.io/onlyann/pen/poJLRrV

Actual behavior:

No outline for the focused button

image

Expected behavior:

An outline similarly to what is visible when it receives focus with tab

image

Documentation describing expected behavior

None

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions