Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@ariakit/core@0.2.0
Minor Changes
BREAKING: Moved props from the
usePopoverStore
hook to thePopover
component:fixed
,gutter
,shift
,flip
,slide
,overlap
,sameWidth
,fitViewport
,arrowPadding
,overflowPadding
,getAnchorRect
,renderCallback
(renamed toupdatePosition
). (#2279)The exception is the
placement
prop that should still be passed to the store.Before:
After:
This change affects all the hooks and components that use
usePopoverStore
andPopover
underneath:useComboboxStore
,ComboboxPopover
,useHovercardStore
,Hovercard
,useMenuStore
,Menu
,useSelectStore
,SelectPopover
,useTooltipStore
,Tooltip
.With this change, the underlying
@floating-ui/dom
dependency has been also moved to thePopover
component, which means it can be lazy loaded. See the Lazy Popover example.@ariakit/react@0.2.0
Minor Changes
BREAKING: Moved props from the
usePopoverStore
hook to thePopover
component:fixed
,gutter
,shift
,flip
,slide
,overlap
,sameWidth
,fitViewport
,arrowPadding
,overflowPadding
,getAnchorRect
,renderCallback
(renamed toupdatePosition
). (#2279)The exception is the
placement
prop that should still be passed to the store.Before:
After:
This change affects all the hooks and components that use
usePopoverStore
andPopover
underneath:useComboboxStore
,ComboboxPopover
,useHovercardStore
,Hovercard
,useMenuStore
,Menu
,useSelectStore
,SelectPopover
,useTooltipStore
,Tooltip
.With this change, the underlying
@floating-ui/dom
dependency has been also moved to thePopover
component, which means it can be lazy loaded. See the Lazy Popover example.BREAKING: The backdrop element on the
Dialog
component is now rendered as a sibling rather than as a parent of the dialog. This should make it easier to animate them separately. (#2407)This might be a breaking change if you're relying on their parent/child relationship for styling purposes (for example, to position the dialog in the center of the backdrop). If that's the case, you can apply the following styles to the dialog to achieve the same effect:
These styles work even if the dialog is a child of the backdrop, so you can use them regardless of whether you're upgrading to this version or not.
Patch Changes
Deprecated the
backdropProps
prop on theDialog
component. Use thebackdrop
prop instead. (#2407)The
backdrop
prop on theDialog
component now accepts a JSX element as its value. (#2407)The
Dialog
component will now wait for being unmounted before restoring the body scroll when thehidden
prop is set tofalse
. This should prevent the body scroll from being restored too early when the dialog is being animated out using third-party libraries like Framer Motion. (#2407)The
Tooltip
component now defaults to usearia-describedby
instead ofaria-labelledby
. (#2279)If you want to use the tooltip as a label for an anchor element, you can use the
type
prop onuseTooltipStore
:The
Tooltip
component now supports mouse events. (#2279)It's now possible to hover over the tooltip without it disappearing, which makes it compliant with WCAG 1.4.13.
Fixed infinite loop on
Portal
with thepreserveTabOrder
prop set totrue
when the portalled element is placed right after its original position in the React tree. (#2279)Updated dependencies:
@ariakit/react-core@0.2.0
.@ariakit/react-core@0.2.0
Minor Changes
BREAKING: Moved props from the
usePopoverStore
hook to thePopover
component:fixed
,gutter
,shift
,flip
,slide
,overlap
,sameWidth
,fitViewport
,arrowPadding
,overflowPadding
,getAnchorRect
,renderCallback
(renamed toupdatePosition
). (#2279)The exception is the
placement
prop that should still be passed to the store.Before:
After:
This change affects all the hooks and components that use
usePopoverStore
andPopover
underneath:useComboboxStore
,ComboboxPopover
,useHovercardStore
,Hovercard
,useMenuStore
,Menu
,useSelectStore
,SelectPopover
,useTooltipStore
,Tooltip
.With this change, the underlying
@floating-ui/dom
dependency has been also moved to thePopover
component, which means it can be lazy loaded. See the Lazy Popover example.BREAKING: The backdrop element on the
Dialog
component is now rendered as a sibling rather than as a parent of the dialog. This should make it easier to animate them separately. (#2407)This might be a breaking change if you're relying on their parent/child relationship for styling purposes (for example, to position the dialog in the center of the backdrop). If that's the case, you can apply the following styles to the dialog to achieve the same effect:
These styles work even if the dialog is a child of the backdrop, so you can use them regardless of whether you're upgrading to this version or not.
Patch Changes
Deprecated the
backdropProps
prop on theDialog
component. Use thebackdrop
prop instead. (#2407)The
backdrop
prop on theDialog
component now accepts a JSX element as its value. (#2407)The
Dialog
component will now wait for being unmounted before restoring the body scroll when thehidden
prop is set tofalse
. This should prevent the body scroll from being restored too early when the dialog is being animated out using third-party libraries like Framer Motion. (#2407)The
Tooltip
component now defaults to usearia-describedby
instead ofaria-labelledby
. (#2279)If you want to use the tooltip as a label for an anchor element, you can use the
type
prop onuseTooltipStore
:The
Tooltip
component now supports mouse events. (#2279)It's now possible to hover over the tooltip without it disappearing, which makes it compliant with WCAG 1.4.13.
Fixed infinite loop on
Portal
with thepreserveTabOrder
prop set totrue
when the portalled element is placed right after its original position in the React tree. (#2279)Updated dependencies:
@ariakit/core@0.2.0
.@ariakit/test@0.1.7
Patch Changes
@ariakit/core@0.2.0
.