RedHat-UX / red-hat-design-system

Red Hat's Design System
https://ux.redhat.com
MIT License
99 stars 20 forks source link

[bug] `<rh-card>`: incorrect spacing between header and paragraphs #1384

Open zeroedin opened 11 months ago

zeroedin commented 11 months ago

Note: Will be true after #1380 merges

Screenshot 2023-12-13 at 4 59 50 PM

https://deploy-preview-1380--red-hat-design-system.netlify.app/elements/card/demo/variants/

Per the design spec we should only have 32px here. However we have 32px margin on #body + 16px margin on the <p>.

zeroedin commented 11 months ago

Related possible future state css: https://developer.apple.com/videos/play/wwdc2023/10121/?time=238

bennypowers commented 11 months ago

it's not clear to me that this can be done from the shadow root.

we could add a special slot for the logo image, but i'm preeeeetty sure that's not a proper solution (too specific)

or we could say "this is a pattern-level issue" i.e. require light-dom css

zeroedin commented 11 months ago

it's not clear to me that this can be done from the shadow root.

This was my findings, unfortunately just no way of doing it given complex selectors not being allowed.