Repository navigation
fix: rc.0 migration findings (nearest-theme rules, codemod, ProgressBar size) - #547
Merged
lorant-one merged 3 commits intoNov 18, 2026
Merged
Conversation
…ar size)
- Tag, Timeline, Input and RichTextEditor's light-only rules matched any
light ancestor, so a dark StyleScope on a light page drew white
unselected Tag toggles with near-white text. A foundations mixin,
in-theme(), matches the element's nearest theme instead.
- Codemod: a shorthand key before whitespace lost its first letter
(`{ message, variant }` became `vtone`); arithmetic on the config's
dataStyle.height, now a rem string, reads it with parseFloat; a
Select's inert 1.x height is dropped like an Input's.
- ProgressBar size: "s" draws a 4px track.
- MIGRATING: app CSS now beats core's type and spacing classes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
Run on a repository root, the 3.0 codemod rewrote sub-packages that do not use Once UI core or pin another major of it. A nested package.json without @once-ui-system/core, or with a different major than the package the codemod runs in, is now skipped and listed; --all-packages walks it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
…i-system/core into feat/3-0-breaking-cleanup-giduz4 # Conflicts: # CHANGELOG.md
Member
Author
|
Visual check: the 3 changed shots ( Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Before: on rc.0, a dark StyleScope on a light page (Sigilio's embedded form with
theme=darkin a light browser) drew the unselected Tag toggles as white pills with near-white text. The codemod had four bugs:addToast({ message, variant })intovtone: variant.dataStyle.heighta "24rem" string, which broke arithmetic on it ("24rem4").height="s"as a leaf prop.native/) or that pin core 2.x (Chirio'scapture/).ProgressBar had no thin track.
After: Tag, Timeline, Input and RichTextEditor follow the element's nearest theme. The codemod writes
tone: variantandparseFloat(dataStyle.height), drops the inert Select height with a note, and skips and lists nested packages that are not on the app's core.<ProgressBar size="s">draws a 4px track.How:
nearest-theme.scssin-theme($theme, $pseudo), is synced into core likeglow.scss. It matches when the element is at or under$themeand not under the other theme below it, three levels deep, as fix: dark StyleScope solids on a light page; dropdowns open from the field #543's brand solids do.:is()keeps the old one-attribute specificity. Applied to every light-only or dark-only rule in core: Tag (hairline, unselected toggle, tone dot, dark glass edge), Timeline's dot, Input's light field and RichTextEditor's frame. Checked in Chromium with the compiled CSS: the unselected toggle is white on a light page and transparent under a dark scope on a light page; the other nestings are in the table below.objectEntriesgives a shorthand key its own span. It used to count back from the next comma or brace, after any whitespace.transformDataStyleReadspass wraps arithmetic reads of the config'sdataStyle.heightinparseFloat, across files too. It reports a template that would add a second unit.heightwent to the native input in 2.x and did nothing, so it is dropped. The note suggestssize="s"for a smaller field.@once-ui-system/core, or pins a different major of it than the package the codemod runs in, is skipped and listed.--all-packageswalks them too. It compares majors rather than requiring 3.x, since the codemod runs on 2.x trees before the bump.size?: "s" | "m", 4px or 8px. The default stays 8px.letter-spacing). The codemod section mentions the package skip.Checks: after merging the 3.0 head (with #539), the full core suite passes (4777), the codemod tests pass (481), and the lint gate is at 113, below its baseline of 115.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1