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

feat(Tooltip): adding option to show popper arrow #868

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

connerblanton
Copy link
Contributor

πŸ”— Linked issue

#836

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Added the option to include an arrow on the popper instance for the Tooltip component. It's optional, so no breaking changes.

Popper object prop doesn't have any documentation so I added a few examples on the Tooltip page.

Resolves #836

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
ui βœ… Ready (Inspect) Visit Preview Oct 26, 2023 1:40pm

@connerblanton connerblanton changed the title Feat/popper arrow feat(Tooltip): adding option to show popper arrow Oct 26, 2023
@benjamincanac
Copy link
Member

Just tried the preview and there is a weird transition on the arrow coming from the left.

@connerblanton
Copy link
Contributor Author

@benjamincanac Good catch! I guess it was too late last night for my eyes to notice that πŸ˜… Latest preview has that fixed now

@benjamincanac
Copy link
Member

Awesome, thank you! 😊 We should do the same examples for other components using popper too!

@benjamincanac benjamincanac merged commit 4ce2374 into nuxt:dev Oct 26, 2023
2 checks passed
@connerblanton
Copy link
Contributor Author

I can do that! Do we want to add the arrow option to those other components too? Not sure it makes as much for those as the Tooltip, but maybe someone will eventually want it. Also shouldn't cause any issues since it's optional.

Let me know what you think. Regardless, I can at least update the documentation for the others

Copy link
Member

Oh this would be awesome! I'm not sure, does a Dropdown, SelectMenu, ContextMenu or Popover would ever have an arrow?

@connerblanton
Copy link
Contributor Author

That's my thought that as well. I don't know if I would ever use it, but maybe someone at some point will?

It is now an available option in popper.d.ts, so maybe it should be added? To get it working in those components, we would have to add this line to those components and then make some changes in the ui.config.ts file to have it use the same classes.

It would definitely be a "nice-to-have" feature, but it's also not much work since the main logic for it already exists

Copy link
Member

Yeah I guess we can add it to all the components for consistency.

@connerblanton
Copy link
Contributor Author

Cool! I'll create a new issue and get started on that. Feel free to assign it to me

Copy link
Member

Thanks a lot 😊

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.

Arrow for popper tooltip
2 participants