Skip to content

Commit

Permalink
fix(card): layout for first slotted p (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Dec 13, 2023
1 parent bf7c96c commit c0af107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .changeset/card-first-p.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@rhds/elements": patch
---
`<rh-card>`: improved styles for first body paragraph when there is other content displayed first
4 changes: 2 additions & 2 deletions elements/rh-card/rh-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ article {
font-weight: var(--rh-font-weight-body-text-medium, 500);
}

#body ::slotted(:not([slot]):first-of-type) {
#body ::slotted(:not([slot]):first-child) {
margin-block-start: 0;
}

#body ::slotted(:not([slot]):last-of-type) {
#body ::slotted(:not([slot]):last-child) {
margin-block-end: 0;
}

Expand Down

0 comments on commit c0af107

Please sign in to comment.