-
Notifications
You must be signed in to change notification settings - Fork 106
[v12] feat(ui-list): List rework #2308
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?
Conversation
|
19734f7 to
16b5427
Compare
16b5427 to
dc40cb4
Compare
adamlobler
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.
| const generateStyle = ( | ||
| componentTheme: InlineListItemTheme, | ||
| componentTheme: NewComponentTypes['InlineListInlineListItem'], | ||
| props: InlineListItemProps | ||
| ): InlineListItemStyle => { |
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 see a marginBottomDefault token in InlineListInlineListItem which I don't see here.
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.
The marginBottomDefault token will not be used, and the designers have already removed it in the latest version.
dc40cb4 to
d8de7ed
Compare
Solved. The tokens now receive the correct values. |
d8de7ed to
aa4bea1
Compare
| makeStyleProps = () => { | ||
| const { size, delimiter, spacing } = this.props | ||
| return { | ||
| size, | ||
| delimiter, | ||
| spacing | ||
| } |
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.
Is there any particular reason why you're extracting props in the index.ts files?
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.
This ensures that only the necessary props are passed to the theme.ts file for style generation. Similar to ui-rating, I think this is a clean and effective approach.
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.
@git-nandor I checked it and I cannot see a smiliar approach in ui-rating?
0be30e8 to
9abad94
Compare
9abad94 to
e13556a
Compare

INSTUI-4876
INSTUI-4877
Summary
Migrated List and InlineList component from the old theming system.
Test plan
On the documentation page, verify that everything displays and works correctly.
Co-Authored-By: 🤖 Claude