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(pagination-nav): add tooltipPosition prop #1733

Conversation

SimpleProgrammingAU
Copy link
Contributor

@SimpleProgrammingAU SimpleProgrammingAU commented May 6, 2023

Added the following options for tooltipPosition for the paginationNav component as requested in #1656:

  • "left"
  • "right"
  • "top"
  • "bottom"
  • "outside"
  • "inside"

Close #1656

This is my first pull request for this project. Lemme know if I've messed anything up 👍

Copy link
Collaborator

@theetrain theetrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimpleProgrammingAU I'd say this is good to go, depending on how you feel about this one prop definition change.

@metonym though the React component doesn't offer control over the PaginationNav's tooltip positioning, nor do the docs have strict guidelines on tooltip positioning, I feel this enhancement is good. The inside and outside options are interesting, and I suppose they can be included as well.

Outside example:

image image

Inside example:

image image

src/PaginationNav/PaginationNav.svelte Outdated Show resolved Hide resolved
@metonym
Copy link
Collaborator

metonym commented May 21, 2023

@theetrain Makes sense to me!

@SimpleProgrammingAU Thank you for working on this 🙏

@metonym metonym changed the title Issue 1656 tooltip position feat(pagination-nav): add tooltipPosition prop May 21, 2023
Co-authored-by: Enrico Sacchetti <esacchetti@gmail.com>
@SimpleProgrammingAU
Copy link
Contributor Author

Agree with documentation change; added commit. Should be ready for merge (?) 👍

theetrain
theetrain previously approved these changes May 21, 2023
Copy link
Collaborator

@theetrain theetrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@theetrain theetrain dismissed their stale review May 21, 2023 17:57

one more thing

@theetrain theetrain merged commit 60a796e into carbon-design-system:master May 21, 2023
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.

add tooltipPosition prop for PaginationNav component
3 participants