-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STCOM-1391 Tooltip - check for hover on tooltip content before closin…
…g the tooltip. (#2411) According to [WCAG](https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus), content that's available/visible on hover should remain visible when the content itself is hovered... mouse-readers everywhere unite! ### Approach Tooltip already uses timeouts to provide a brief gap between event listeners and state updates. This implementation added a timeout to hiding the tooltip where we only hide the tooltip if neither the trigger nor the tooltip element itself are hovered by the mouse (using `matches(':hover')`). The CSS of the tooltip class had to be affected to observe mouse events since they are all placed in the `#OverlayContainer` by default.
- Loading branch information
Showing
3 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters