-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tooltip Component: Add custom class name support #63157
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @aliaghdam! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, @aliaghdam 🙌
I've left some suggestions and questions for your consideration, let me know what you think.
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing all the feedback @aliaghdam 🙌
The PR should be good to go once @ciampo's feedback is addressed.
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Thank you for your work!
* feat: custom class name support for Tooltip component * test: add custom class name tests for Tooltip component * chore: changelog update * chore: improve comment * chore: fix string literals Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: use clx for classname Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: changelog Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: merge tests Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: import clx * fix: props order * chore: improve test name * fix: changelog * chore: props order * chore: remove empty line Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * chore: remove internal class name from prop description. Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com> --------- Co-authored-by: aliaghdam <aliaghdam@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
* feat: custom class name support for Tooltip component * test: add custom class name tests for Tooltip component * chore: changelog update * chore: improve comment * chore: fix string literals Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: use clx for classname Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: changelog Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: merge tests Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * fix: import clx * fix: props order * chore: improve test name * fix: changelog * chore: props order * chore: remove empty line Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * chore: remove internal class name from prop description. Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com> --------- Co-authored-by: aliaghdam <aliaghdam@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
What?
The Tooltip component does not supports custom css class name.
Why?
I added the custom class name support that that for many reasons can be used for design customization of tooltip.
How?
I added the
className
prop and also added test to make sure it works properly.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Unlinked contributors: aliaghdam.