pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Image Card: Instill stricter typography styles for slotted content

Open daneah opened this issue 4 years ago • 0 comments

The problem When paired with global styles that affect the typography of things like p elements, the Image Card can have slotted content that doesn't adhere to its internally-defined typography styles.

The solution Provide a consumer-includable SCSS file for Image Card that gives slotted content the appropriate typography.

Alternatives considered This can be done at the consumer, but can be tedious especially if multiple elements need to be overridden. It's also brittle—if we want to change the Image Card typography later, the consumer would need to as well.

daneah avatar Jul 14 '21 15:07 daneah