-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Upgrade Reakit to stable v1.0.0 #22352
Conversation
Size Change: -1.1 kB (0%) Total Size: 832 kB
ℹ️ View Unchanged
|
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.
Code looks good, it's great to see stable version integrated :)
I guess it's best to leave it to @ItsJonQ to ensure that updated components work as expected. I can try to validate myself tomorrow if he won't be able to take care of it.
Fixed unit tests. We may want to use @ItsJonQ Also, I remember you tried to use |
I have too many things going on, but I would be interested in doing an audit of existing RTL tests and updating them according to the guidelines shared by @kentcdodds in https://kentcdodds.com/blog/common-mistakes-with-react-testing-library. This way we will be able to reference this article in the testing guidelines and call it a day. I think it also means we should include the library you mentioned :) |
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.
@diegohaz Looks good to me! 🚀
Tested it locally with Toolbars and the Alignment controls, and it works as expected
Also, I remember you tried to use aria-activedescendant on AlignmentMatrixControl in the first iterations. If it's still needed, it should be working now (by passing unstable_virtual: true to useCompositeState).
I briefly tried passing the unstable_virtual
prop into the useCompositeState
. I didn't notice a difference, which I suppose is a good thing. I remember it not working previously.
We can test it some more and update it after this is merged 👏
Description
This PR upgrades the
reakit
dependency on@wordpress/components
to the stablev1.0.0
.Two things were fixed that are relevant to us:
onMouseDown
onToolbarItem
s no longer prevents drag events from happening.CompositeItem
is now focused on VoiceOver clicks (Control+Option+Space), so we don't need this piece of code onAlignmentMatrixControl
anymore.How has this been tested?
AlignmentMatrixControl
introduced on Cover: Customizing Alignment of inner content #21091.