Skip to content

[Tooltip] Add in a focus-trap #66

@mikosramek

Description

@mikosramek

context:

LGTM ~ Circling back to the Dialog component, it appears like the Figma SDS storybook has a focus trap active when focused on a Tooltip, until a user presses 'escape'. Could we either create an issue and throw that in the backlog so we can merge this now, or see if it would be do-able for this focus trap being that it's one element?

I did a little search and found someone who made a re useable component for this ~ it would need to be tested, but might be helpful? [link](https://levimcg.com/blog/focus-trapping-web-component/)

They included a demo which can be viewed here: [here](https://levimcg.github.io/focus-trapper/)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions