-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Developer DocumentationDocumentation for developersDocumentation for developers
Description
Composite does not correctly manage roving tab index when Composite.Item's render prop is a Tooltip. For example, when you have a composite item like this:
<Composite.Item
render={
<Tooltip text="Tooltip">
<button>Button</button>
</Tooltip>
}
/>The workaround is to wrap the Tooltip around the Composite.Item:
<Tooltip text="Tooltip">
<Composite.Item render={<button>Button</button>} />
</Tooltip>This problem does not manifest when the Tooltip is used internally in a component, like:
<Ariakit.CompositeItem
render={
<Button label="Tooltip" showTooltip>
Button
</Button>
}
/>The problems reproduce in raw Ariakit Composite (sandbox demo).
What is your proposed solution?
These may be limitations that don't necessarily need to be fixed, but we should at least document the workarounds.
Metadata
Metadata
Assignees
Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Developer DocumentationDocumentation for developersDocumentation for developers