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

includes className prop on tooltip/TooltipMessage component #211

Merged
merged 2 commits into from
Oct 9, 2020
Merged

includes className prop on tooltip/TooltipMessage component #211

merged 2 commits into from
Oct 9, 2020

Conversation

D3Portillo
Copy link
Contributor

This commit also includes an example of how to mod component using styled components.

This commit also includes an example of how to mod
the component using styled components.
Copy link
Contributor

@kylesuss kylesuss left a comment

Choose a reason for hiding this comment

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

Hey @D3Portillo , I may have misspoken slightly. I just noticed this commit:
99442cc

I think perhaps this may have been added and the original issue wasn't closed. That said, I think the story that you added here is valuable. Can you do me a favor? Try removing your changes in TooltipMessage.js and see if your story still renders the same. I suspect it will because we are passing down ...rest to the MessageWrapper. That's typically the pattern we follow.

Would love to merge your story in once you confirm!

🙇

@D3Portillo
Copy link
Contributor Author

Will do, no problem : )

@D3Portillo
Copy link
Contributor Author

Yes it renders as expected. I tough you needed a prop validation or the className prop to be explicit in there : ) . Deleting changes...

This commit includes the delition of previus commit
modding TooltipMEssage, this also includes an story
for theming up the component
Copy link
Contributor

@kylesuss kylesuss left a comment

Choose a reason for hiding this comment

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

Thanks for this. Sorry I lead you a bit astray. This story is still quite useful!

@kylesuss kylesuss merged commit 4abec9b into storybookjs:master Oct 9, 2020
@kylesuss
Copy link
Contributor

🚀 PR was released in v5.1.27 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants