-
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: discuss simplifying the component #42753
Comments
Since these changes may end up being a non-trivial refactor, I think it would be a good idea to do some preparatory work in order to give us more confidence for a future refactor. The two main actions that come to mind are:
What do you think? |
It's a very good idea! Does it mean that tests written in enzme should be refactored into testing-library? |
Yes!
That's totally ok! Feel free to work on the unit tests and the TypeScript refactor in two separate PRs, and to tag @mirka and myself for reviews :) |
Realted issue: #35744 |
I just noticed we have a newer, Reakit-based tooltip component internally. It's not exported publicly, but it's already used once in production code (the Copy button in ColorPicker). I don't know how feature complete the newer Tooltip component is, but it might be good to look into migrating to the newer one, if it's simpler and doesn't have the weird issues that the older one has. |
That's a great point! I will add that, instead of using the Tooltip based on |
Thanks for the great ideas! |
Alright, here's a deeper analysis: An analysis of the currently available componentsThe current
|
Sounds great, let's go with that. Thanks for breaking it down! |
Thanks for the great suggestions!
|
ariakit
internally
Flagging here two related issues with the current |
The first step was cleared by #43061 🚀 |
The second step will be also a partial discovery for us — happy to collaborate on it, if you're willing to do so! Otherwise there's plenty of work still to be done in #35744 |
Related / may be fixed by the re-write: |
Thank you for completing the first step, @t-hamano! 🎉 I've started working on the second step so I'll close this issue and open a new tracking issue for part two! |
Thank you for addressing this issue, @brookewp! Also, sorry for not working on the second step🙏 If there is anything I can do to help, I will. |
ariakit
internally
No need to be sorry - you've helped so much already! And thank you for the offer, I'll keep that in mind! 😄 |
What problem does this address?
As mentioned in this comment, the purpose of this issue is to refactor the Toottip component and improve code readability.
What is your proposed solution?
I haven't yet decided on a specific direction, but I launched it as an issue to clearly manage it as a task.
cc @ciampo
The text was updated successfully, but these errors were encountered: