Skip to content

Handle Esc key for multiple components #1051

@jgiardino

Description

@jgiardino

There are several components that should be dismissible via the Esc key:

  • Modal
  • Popover
  • Dropdown when expanded
  • Tooltip

Some of these components can be nested, e.g. a modal with a dropdown or tooltip. For these cases, the Esc key should not dismiss everything that's open. Instead, the Esc key should only dismiss the last component that was expanded/opened.

As part of this issue, we need provide one of the following:

  • ability to manage the Esc key behavior for multiple components
  • a POC that demonstrates this ability, documentation on how it was achieved, and a new issue to capture how we want to share this information with consumers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions