-
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
Implement Card Composable #726
Comments
@GeriReid @nathanparris here is the link to the storybook: http://ncu-newskit-docs-pr.s3-website-eu-west-1.amazonaws.com/726-card-composable/storybook/?path=/docs/components-cardcomposable--story-default Have added a few comments in Figma -> https://www.figma.com/file/o7rpDProlaqQbLnFdBqsaI?node-id=2289:125224#410613515 Also added one extra story for fun, not sure if we should keep it. |
Thanks @mutebg, looks great. To feed back on your points:
Only other spot was in the Span story
|
All comments addressed. |
Morning @mutebg, thanks for the updates. Rest looks good to me, let me know if you spot anything else @nathanparris |
@GeriReid I can fix that, found the issue, according to the spec CardActions needs to have minHeight: sizing080 (48px) and since we use a CSS grid it automatically stretches the tag, so 2 things:
|
@mutebg only thought on the min-height is accessibility but we should be able to rely on our consumers to make sensible choices. Makes sense that CardActions height should depend on the content inside it. Do you think we should change the default behaviour or just roll with what the browser gives us - consumers can choose to override if they want to? |
@mutebg Just a couple of notes from me. The rest is looking good Whole card as a link by applying the 'expand' prop
Different layouts/font sizes for different breakpoints
I'm not sure what the min-height on actions container is really for. Maybe it was added so that all cards have the same height in a section? |
IMO we should remove the min-height from CardActions, and remove the default stretching behaviour, which will feel more natural way of behaviour. @nathanparris Thanks will update these. |
@nathanparris @GeriReid all this updated |
Looks good to me, thanks for turning this around so quickly @mutebg. Okay with you @nathanparris? |
Description
We need to implement Card Composable component
Requirements
CardComposable
media={imageProps || React.Node }
,we should use children instead of React.Node for CardComposbaleareas
prop on the CardComposable componentBusiness Benefit/Value
Clear business reason stating why this piece of work is important to the business/technology. Any clear KPI's or goals it is attempting to meet. Any other known tangible or intangible benefits
Acceptance Criteria
All acceptance criteria must be met before task can be marked as 'done'
Design
Design handoff
Supporting Information
Process/sequence flows, wireframes, third party documentation, tech feasibility, architecture overview/documentation, high level design, data specs etc...
Dependencies
Any known business dependencies or reasons to engage with another team and input into their roadmap/timings
The text was updated successfully, but these errors were encountered: