-
Notifications
You must be signed in to change notification settings - Fork 106
[v12] View + ContextView #2282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v12
Are you sure you want to change the base?
[v12] View + ContextView #2282
Conversation
|
8be5f73 to
3ace66d
Compare
e0dbb3f to
f923c03
Compare
f923c03 to
57972fe
Compare
57972fe to
b4acada
Compare
794f0ae to
b9a0366
Compare
matyasf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/ui-view/src/View/styles.ts
Outdated
| borderColor: borderColor | ||
| }) | ||
| } | ||
| borderStyle: 'solid', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont see this in the token changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check with the design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this back
|
Also please fix test and add the token changes to the upgrade guide |
packages/emotion/src/styleUtils/__tests__/calcSpacingFromShorthand.test.tsx
Show resolved
Hide resolved
b9a0366 to
86c1a70
Compare
…token-based theme system - Remove theme.ts files from View and ContextView components - Switch from withStyleRework to withStyle decorator - Update components to use NewComponentTypes and SharedTokens - Enhance calcMarginFromShorthand to support hyphen-case tokens - Add elevationTokenToBoxShadow utility for box-shadow token conversion - Add processBorderRadiusValue and processBorderWidthValue helpers - Add withFocusOutline parameter to calcFocusOutlineStyles - Fix ContextView placement padding override with high-specificity selector
e013d39 to
823c2fc
Compare
aef6419 to
61b31d3
Compare
… borderStyle to use token instead
|
@adamlobler the |

INSTUI-4865
Summary
Migrates View and ContextView components to token-based theme system:
withStyleReworktowithStyledecoratorcalcMarginFromShorthand→calcSpacingFromShorthandwith support for hyphen-case tokens (e.g., 'medium-small')elevationTokenToBoxShadow,processBorderRadiusValue,processBorderWidthValuewithFocusOutlineparameter tocalcFocusOutlineStylesTest Plan
pnpm run test:vitest ui-viewpnpm run dev→ http://localhost:9090