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

fix: tooltip custom class (react) #2012

Merged
merged 3 commits into from
Oct 21, 2024
Merged

Conversation

pixelflips
Copy link
Member

Description

Currently, there is no hook into the react tooltip to allow custom adjustments.
This adds a tooltipCustomClass prop to allow devs a hook.

This comes as a request from ds-support.

Screenshots

Screenshot 2024-10-18 at 3 13 41 PM

Testing in sage-lib

  • Navigate to tooltip
  • Verify custom class prop is available
  • Verify story is correct

Testing in kajabi-products

  1. (LOW) Adds custom class prop to react tooltip.

Related

TBD

@pixelflips pixelflips self-assigned this Oct 18, 2024
@pixelflips pixelflips requested a review from a team October 18, 2024 22:17
@pixelflips pixelflips marked this pull request as ready for review October 18, 2024 22:17

export const Tooltip = ({
children,
content,
position,
tooltipCustomClass,
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm definitely open to naming suggestions. I noticed tabChoiceCustomClass and went with a similar approach.

@pixelflips pixelflips requested a review from a team October 19, 2024 00:15
Copy link
Collaborator

@monicawheeler monicawheeler left a comment

Choose a reason for hiding this comment

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

👍🏻 Appreciate the warning in the tooltip example!

@pixelflips pixelflips merged commit 2fe5d18 into develop Oct 21, 2024
7 checks passed
@pixelflips pixelflips mentioned this pull request Oct 21, 2024
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.

3 participants