Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react cardnode): add support for applying a custom class to the …
…outer node The CardNode component has a `color` prop which can be used to specify the colour of the border applied on the outer node. However, this requires the code to be aware of the active theme, handle dark mode, etc. to select an appropriate colour in some cases. For component libraries this can be problematic as now both the components and their consumers need to be aware of theme rather than relying on this being handled entirely in (S)CSS. Add support for applying a custom class to the CardNode component which will be applied to the outer node and can be used to apply styles to the card and its children, including specifying the border colour for the card. resolves carbon-design-system#1221
- Loading branch information