Repository navigation
Description
This list comes from a migration report on two real codebases that moved to Once UI 2.6 on 28 Oct: a website rebuilt from the Stack template on Next 16, and a Vite + React 19 app whose components were swapped in place. Each item was checked against feat/3-0-breaking-cleanup as of 77f9d35. Priorities follow the report: P0 ships broken or heavy by default, P1 forced a workaround.
In PRs
- P0 Turbopack ships the whole library. Fixed by per-component import paths in feat: one import path per public component, for Turbopack builds (3.0) #358 (about 150 kB down to about 26 kB gzip on a test page).
- P0 Dialog focus never enters a dialog that mounts open. Also: click outside closes every stacked dialog, toasts become inert under a dialog, role/name/className sit on different elements, and a string title renders an h1. All in fix(Dialog): focus on open, top dialog only on click outside, role on the panel (3.0) #357.
Still open on 3.0 (checked in source)
- P0 The global stylesheet is heavy. App CSS went from 17 to 54 kB gzip; rules from 1,019 to 5,096;
:rootcustom properties from 73 to 800; style recalculation got 3.6× slower and dialogs open 40–56 ms slower. Possible fixes: generate utilities from use, ship tokens for the active theme only, and load component CSS only with its component. This needs a design decision before code. - P1 Dialog is full screen at ≤1024 px for every dialog, alerts included, and has no
sizeprop. - P1 Dialog
z-indexis fixed at 8/9, under typical app layers (sidebar 20, menus 90). Expose a token for it. - P1 A Button with no
onClick/href/typerenders aFlexdiv (ElementTypefallback), so it is not focusable and has no role. - P1 SegmentedControl puts
className/styleon every segment, so the root can't be styled. Unchosen options are dimmed with inlineopacity: 0.6, which fails WCAG AA contrast. Use a colour token instead. - P1 Switch without
label:idnever reaches the input, so<label for>names nothing and it announces "Toggle switch".ControlLabelContextis not exported. - P1 Input:
classNamelands on the wrapper and nothing reaches the<input>. AddinputClassNameor slot props, and makeidoptional. - P1 Table: every cell is
white-space: nowrap, with no prop to wrap, no column widths and no colspan. - P1 Logo throws without
ToastProvider(useToast) and always bundles ContextMenu/Option/Toast. - P1 RevealFx ignores reduced motion, has no in-view trigger, and renders its content hidden before hydration.
- P1
Meta.generatehas no og:site_name, og:locale, image size/alt or twitter:site.Schemaemits one node, with no@graph. - P1
/mdxfails a webpack build withoutprismjs, despite the documented fallback (needs a re-check on 3.0's module split).
Stack template (separate repo)
- P1 Static export does not build:
api/og/*lacksforce-static, and docs pointog:imageat the dynamic route. - P1
optimizePackageImportsis missing fromnext.config, and under Turbopack the template should use the subpath imports from feat: one import path per public component, for Turbopack builds (3.0) #358.
P2, for later
Missing source maps for styles.css/tokens.css; Vite late-dependency reloads; Dialog slot props for body, footer and overlay; Setting wraps the control under its label; Toast onDismiss without a button and double announcements; leaf components are all client components; SmartLink padding in running text; MediaVideoPlayer poster/preload/tracks; MDX {#id} headings; Card href typing; Grid subgrid; @layer once-ui so app CSS wins; global resets (smooth scroll, a:not(.button), reduced-motion specificity); layout components throw without LayoutProvider; useInViewport recreates its observer on inline options.
Activity
lorant-one commentedon Nov 4, 2026
Status of the P0 global stylesheet item, measured on
feat/3-0-breaking-cleanup(93fe0ac) with a production docs build and Chromium traces.Bytes
./components/Buttonfrom about 33 to 22 kB gzip.styles.cssrules are breakpoint variants. Removing them saves about 6 kB gzip and made no measurable difference to style recalc.Recalc / dialog open
/components/dialogcosts about 56 ms of style recalc on 3.0. The same page on 2.6 production docs costs about 61 ms, so 3.0 is no slower than 2.6.inert(about 3,400 elements). A modal needs that for accessibility..x ::selectionrules or the invert-theme:is()selectors made no difference beyond noise.I found no safe token change that would be worth the risk before beta.2. The heavier numbers in the migration report compare 2.6 with that app's own pre-Once UI CSS, not 2.x with 3.0.
Generated by Claude Code