Open Josh68 opened 2 years ago
The engineers are discussing this issue now. Will keep you posted with what we discuss.
At the time, our discussion approached this as an opportunity to standardize cards across the design system and figure out the role of props in the design system. This work has yet to be prioritized with CMS.
For the time being, if you still need this you could apply custom props to a div
with the card CSS.
For the time being, if you still need this you could apply custom props to a div with the card CSS.
Yes, as it stands, we know the only way to deal with this is to create a wrapper element that we control.
Describe the bug Not all components render standard element props / attributes on their top-level element
Reference earlier ticket
To Reproduce Steps to reproduce the behavior:
className
andchildren
Card
adding adata-testid
attributedata-
attributes (alsoaria-
attributes, e.g.)Expected behavior All components should take valid props (aka HTML attributes, including all
data-
attributes) for their top-level element and render them on the top-level element unless otherwise specifiedExample:
Alert
:Takes correct props
Renders all props
Screenshots N/A
Desktop (please complete the following information):
Additional context Add any other context about the problem here.