carbon
carbon copied to clipboard
Add CardHeader and 'cardHeight' prop to the Card component
Desired behaviour
Hey guys, I am working on one of the Sage projects in which the Figma design is a bit inconsistent with Carbon's capabilities.
I do not want to combine too much to achieve the desired effect, so I come up with a proposal to slightly improve the Card component
Current behaviour
- Its not possible to have
CardHeader
insideCard
component which will look the same asCardFooter
- Its not possible to set
cardHeight
prop onCard
although it is possible to setcardWidth
, so for example whenCard
component is insideGridItem
which is taller, its not possible to extend height of theCard
to matchGridItem
height
See JIRA for screnshot.
Suggested Solution
- Create a
CardHeader
that will look similar to theCardFooter
, but will be placed on top of theCard
element. - Allow to set
cardHeight
prop onCard
component,
CodeSandbox or Storybook URL
https://codesandbox.io/s/cold-https-qb56i1?file=/src/CashAccount.jsx
Anything else we should know?
No response
Confidentiality
- [X] I confirm there is no confidential or commercially sensitive information included.
This is not an established pattern in the Design System at the moment. Your designers should consult with DS to make sure appropriate research has taken place and to determine if this is a standard pattern we wish to use across Sage products. Once a decision has been made DS can raise the work with us.
I am closing this issue until DS raises a piece of work with us