Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(card): allow copy other than <p> tags (#12172)
### Related Ticket(s) [ADCMS-7019](https://jsw.ibm.com/browse/ADCMS-7019) ### Description Fixes an issue where if you attempt to slot content other than a `<p>` tag into the default slot of a card, that copy remains hidden. This will allow any text node and/or element (anything not a comment) to be shown in the default slot for the card. ### Changelog **Changed** - Fixes an issue with the default slot hiding non-paragraph contents - Added "Body copy markup" as a boolean knob to the card story. This will render a list of items in the card copy default slot. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information