Closed mimarz closed 1 week ago
CardHeading
is a wrapper div with some padding.
We excpect users to add a heading inside. This is because the header can have other non-text elements - like a button
.
Maybe we should rename the component something that does not make it sound like a heading element. Though, "Header" is a common word for this, and our heading component is called Heading
.
From our own storybook:
Card naming is semantically correct.
We also decided to rename AccordionHeader
to AccordionHeading
so its semantically correct.
This will be released in #2130
We do this for our other heading sub-components, any reason not to for Card? Its currently hard-coded to one heading size.