ROU-13017: Add shape utilities and radius CSS API - #1245
Open
OS-giulianasilva wants to merge 7 commits into
Open
OS-giulianasilva wants to merge 7 commits into
OS-giulianasilva wants to merge 7 commits into
Conversation
Keep --border-radius-none for the TS ShapeTypes contract, map softer to 12px and softest to 16px, and emit .shape-* classes that set --border-radius. Co-authored-by: Cursor <cursoragent@cursor.com>
Component radius APIs now inherit .shape-* via var(--border-radius, var(--border-radius-<today>)), so per-instance shape overrides work without touching tokens. Co-authored-by: Cursor <cursoragent@cursor.com>
Retarget former 16px softer defaults to --border-radius-softest so today's radii stay, and let .shape-* restyle chrome through the same fallback chain. Co-authored-by: Cursor <cursoragent@cursor.com>
Capture the naming split, token mappings, component contract, and legacy utility exceptions so later radius work does not collapse --border-radius-none or .border-radius-soft. Co-authored-by: Cursor <cursoragent@cursor.com>
Let widget StyleClasses land on the widget root and pass ExtendedClass through pattern configs so chrome can be inspected with .shape-* in isolation. Co-authored-by: Cursor <cursoragent@cursor.com>
Turn on --utilities so the token pipeline emits the utility classes the radius theme layer depends on. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🖼️ Storybook: Chromatic UI tests result: ✅ Passed
|
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.



This PR is for adding .shape-* utilities and wiring widget and pattern chrome through the --border-radius cascade so a single class can restyle radius without changing defaults.
What was happening
What was done
Test Steps
Screenshots
(prefer animated gif)
Checklist