Skip to content

[EuiFlyout] Pressing ESC on a tooltip element inside the EuiFlyout should not close the flyout. #8130

Closed

Description

@alexwizp

Describe the Problem

This issue relates to Elastic Kibana issue #199448. When a tooltip element inside an EuiFlyout is focused, pressing the ESC key is expected to close only the tooltip. Currently, however, pressing ESC closes the entire EuiFlyout.

This behavior has been observed with IconTip and EuiCard (for badges) and may affect other tooltip elements as well.

To Reproduce

  1. In Storybook, create or update an EuiFlyout with the following body:

    <EuiFlyoutBody>
        Flyout body <EuiIconTip content={'test'} />
    </EuiFlyoutBody>
  2. Use the keyboard to focus on EuiIconTip and press ESC.

Expected Behavior : Only the tooltip should close.

Screenshots

Screen.Recording.2024-11-11.at.15.14.13.mov

Activity

  1. weronikaolejniczak commented on Nov 14, 2024

    @weronikaolejniczak
    Contributor

    Hey, @alexwizp 👋🏻 Thank you for raising the issue!

    I have a solution specific to the EuiToolTip (and in consequence EuiIconTip) and I'm investigating "other tooltip elements" as you have mentioned. If you could let me know though, what do you mean by EuiCard? From what I'm seeing, that component doesn't handle the Escape key.

  2. alexwizp commented on Nov 15, 2024

    @alexwizp
    ContributorAuthor

    Hi @weronikaolejniczak I mean Beta badge in EuiCard Image

  3. added 6 commits that reference this issue on Nov 18, 2024
    9764441
    efc25a7
    dd74675
    44999b3
    2e5a1a8
    5c4b1b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions