-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(ListItemView): ability to pass custom react node as a content prop #1726
feat(ListItemView): ability to pass custom react node as a content prop #1726
Conversation
Preview is ready. |
Visual Tests Report is ready. |
modToHeight[size][ | ||
Number(Boolean(isListItemContentPropsGuard(content) ? content?.subtitle : false)) | ||
] | ||
}px)`, |
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.
Here may be too match) but it's works and do exactly what i wont
minHeight: `var(--g-list-item-height, ${height ?? modToHeight[size][Number(Boolean(isListItemContentPropsGuard(content) ? content?.subtitle : false))]
can set minHeight from props or override during css custom property in styles
|
||
{endSlot} | ||
</Flex> | ||
{isListItemContentPropsGuard(content) ? ( |
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.
here entry point in all changes of this pr
…ent prop
What has been done:
content
prop inListItemView
;Flex
component from root ofListItemView
component. Flex uses inline styles what prevent class override approach ofListItemView
;Now ListItemView look very close to previous approach of current
List
component