-
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
Update ariakit to version 0.3.5 #55365
Conversation
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.
@chad1008 I realised that the Tabs
unit tests still assume that Tabs.Tab
accepts an icon
prop — I guess we should remove that from the prop types and from the unit tests (in a separate PR) ?
Size Change: +317 B (0%) Total Size: 1.66 MB
ℹ️ 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.
The mentioned components are testing well in both the editor and in SB 🎉 Nice to see the new prop in Tooltip!
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, thanks for spotting those icon
tests in Tabs
! I'll get a PR together.
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.
Looks good to me 👍
What?
Update
@ariakit/react
from version0.3.3
to the (currently latest) version0.3.5
Why?
To benefit from the latest additions and bug fixes (eg. several fixes to
Menu
and its subcomponents)How?
Using npm.
From the release notes, there shouldn't be any breaking changes, although some changes in version
0.3.4
caused a fewTabs
unit tests to fail — likely related to the change "Controlled store updates are no longer flushed synchronously."I was able to fix the unit tests by:
useLayoutEffect
instead ofuseEffect
(see this article explaining the differences)I also changed the
Tooltip
component to use the newly introducedunmountOnHide
, instead of the previous custom logic.Testing Instructions
From the release notes, there shouldn't be any breaking changes, although some changes in version
0.3.4
caused a fewTabs
unit tests to fail — likely related to the change "Controlled store updates are no longer flushed synchronously."We should make sure that components using ariakit are still working as expected in Storybook and the editor:
TabPanel
Tabs
ToggleGroupControl
Toolbar
Tooltip