-
Notifications
You must be signed in to change notification settings - Fork 14
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
Docs(822) Card Composable doc site #876
Conversation
You can preview these changes on: |
attribute: 'paddingBlockStart', | ||
type: 'MQ<string>', | ||
default: '', | ||
description: | ||
'Takes one space token to specify the logical block start padding of the container. Can be used on breakpoints', | ||
}, | ||
{ | ||
attribute: 'paddingBlockEnd', | ||
type: 'MQ<string>', | ||
default: '', | ||
description: | ||
'Takes one space token to specify the logical block end padding of the container. Can be used on breakpoints', | ||
}, |
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.
All padding and margin can be deleted, since commonLogicalProps() function is doing the same
{ | ||
title: 'CardActions', | ||
summary: | ||
'Props and Overrides same as GridLayout + can have stylePreset and transitionPreset as an override', |
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 would delete this summary and add props & overrides same way as CardComposable component
summary: | ||
'Props and Overrides same as CardComposable + can have stylePreset and transitionPreset as an override', |
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.
Remove this one
summary: | ||
'Props and Overrides same as CardComposable component + can have stylePreset and transitionPreset as an override', |
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.
Remove this one
summary: | ||
'Props and Overrides same as CardComposable component + can have stylePreset and transitionPreset as an override', |
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.
Remove this one
{ | ||
name: 'rowGap', | ||
type: 'MQ<string>', | ||
description: 'If provided, applies rowGap to the grid', | ||
required: null, | ||
}, | ||
{ | ||
name: 'columnGap', | ||
type: 'MQ<string>', | ||
description: 'If provided, applies columnGap to the grid', | ||
required: null, | ||
}, | ||
{ |
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.
can you store all these props and overrides in consts so that they can be re-used across all components?
Also, CardComposable needs same props.
Apart from that, everything else seems good and ready for approval, thank you
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.
Done @mutebg . Please have a review on it
name: 'media', | ||
type: 'ImageProps', | ||
required: undefined, | ||
description: | ||
'If this parameter is provided as ImageProps object (see Image documentation), it will render the media as an image.', | ||
}, |
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.
You need to reverse the media
prop
description: 'If provided, overrides the minHeight of the grid', | ||
attribute: 'stylePreset', | ||
type: 'MQ<String>', | ||
default: 'cardContainer', |
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.
CardAction does not have default stylePreset and transitionPreset
{ | ||
attribute: 'stylePreset', | ||
type: 'MQ<String>', | ||
default: 'cardContainer', |
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.
CardContent does not have default stylePreset and transitionPreset
{ | ||
attribute: 'stylePreset', | ||
type: 'MQ<String>', | ||
default: 'cardContainer', | ||
description: | ||
'If provided, overrides the stylePreset of the card.', | ||
}, | ||
{ | ||
attribute: 'transitionPreset', | ||
type: 'String | String[]', | ||
default: 'backgroundColorChange', | ||
description: '', | ||
}, |
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.
CardMedia does not have default stylePreset and transitionPreset
still be added before or after the LinkStandalone component. | ||
</> | ||
), | ||
}, |
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.
you need to add expand prop
closes #822
What
I have done:
I have tested manually:
Before:
After:
Who should review this PR:
How to test: