Skip to content

Should modal component keyboard focus go directly to primary button? #4018

@srambach

Description

@srambach

When a modal appears, the focus is automatically set to the close (x) button. If there is a primary action button for the modal, it may be desirable to set the focus to that button instead.

This would be a change in interaction design and also has a11y considerations.

This came up as a question in the Kogito application, but is a very common interaction pattern.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions