Repository navigation
refactor(mosaic): replace Floating UI Composite with useComposite - #10573
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 012905e The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
5a19370 to
a519456
Compare
89ae462 to
c133a17
Compare
|
| Merge-base | This PR c133a178 |
|---|---|
Also checked · 3 match
Proof on 012905ec (from c133a178) · Did Proof get it right? Yes · No
c133a17 to
012905e
Compare


Description
Replaces Floating UI's
Composite/CompositeItemwith an in-houseuseCompositehook, so tabs, segmented control, accordion, action bar, tag input and the table's grid navigation share one roving-tabindex implementation. This removes the render-prop wrappers and is a step towards using Floating UI only for positioning.FloatingList/useListItem. It uses a ref-backedMaprather than state, because no index is needed.useListNavigation, OTP keeps its own handling, and the table keeps its DOM lookups for cells and widgets.tabindex, whereCompositeItemrendered them all as-1. The hook writestabindexin a layout effect, which doesn't run on the server. After hydration there is one tab stop, as before.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change