Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ch-tooltip] If the mouse leaves the tooltip, only keep it visible if the focus is "focus-visible". Also improve rendering performance. #465

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

ncamera
Copy link
Collaborator

@ncamera ncamera commented Dec 17, 2024

Changes we propose in this PR:

  • Fix: If the mouse leaves the tooltip, only keep it visible if the focus is "focus-visible".
    Now, if the tooltip is shown by clicking on the actionElement, this fix will hide the tooltip when the mouse leaves the actionElement.

    Previously, the tooltip reamined visible until a new element in the UI was focused.

  • Perf: Don't render the ch-popover if the tooltip is not displayed.

…us is "focus-visible"

Now, if the tooltip is shown by clicking on the actionElement, this fix will hide the tooltip when the mouse leaves the actionElement.

Previously, the tooltip reamined visible until a new element in the UI was focused.
Copy link

netlify bot commented Dec 17, 2024

Deploy Preview for gx-chameleon ready!

Name Link
🔨 Latest commit acbe96f
🔍 Latest deploy log https://app.netlify.com/sites/gx-chameleon/deploys/6760ec74aa3f950008a0b4c3
😎 Deploy Preview https://deploy-preview-465--gx-chameleon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ncamera ncamera added fix Bug fix pull request target: patch This PR is targeted for the next patch release performance Work related to imporving the performance in the library labels Dec 17, 2024
@ncamera ncamera changed the title [ch-tooltip] If the mouse leaves the tooltip, only keep it visible if the focus is "focus-visible". Also improve render performance. [ch-tooltip] If the mouse leaves the tooltip, only keep it visible if the focus is "focus-visible". Also improve rendering performance. Dec 17, 2024
@ncamera ncamera merged commit 67a57a3 into main Dec 17, 2024
7 checks passed
@ncamera ncamera deleted the fix/tooltip branch December 17, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix pull request performance Work related to imporving the performance in the library target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant