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

Add new tooltip component #6

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Add new tooltip component #6

merged 1 commit into from
Aug 3, 2024

Conversation

cirdes
Copy link
Collaborator

@cirdes cirdes commented Jul 31, 2024

PR Description
This pull request introduces the following changes:

Old Tooltip problems

2024-07-31 15 41 32

New Tooltip

What was fixed:

  • Using floating-ui
  • Open tooltip when focus by keyboard
  • Define the aria-describedby

2024-07-31 15 40 40

References:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tooltip_role
https://v2.uiguideline.com/components/tooltip

PR Description
This pull request introduces the following changes:

TooltipDemo Component:

Added a new TooltipDemo component that demonstrates the usage of the Tooltip component.
The component includes a TooltipProvider, TooltipTrigger, and TooltipContent to display a tooltip with the text "Add to library" when hovering over a button.
@cirdes cirdes merged commit 8f25a08 into main Aug 3, 2024
@cirdes cirdes deleted the cirdes/add-tooltip branch August 3, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant