Skip to content

Commit 5e6eb17

Browse files
committed
fix: account for header and description having or not having nested elements
1 parent d00024b commit 5e6eb17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/DonationForms/resources/styles/components/_receipt.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
}
303303
}
304304

305-
&-heading * {
305+
&-heading, &-heading * {
306306
position: relative;
307307
margin-block-end: 1rem;
308308
font-size: 1.75rem;
@@ -325,7 +325,11 @@
325325
}
326326
}
327327

328-
&-description * {
328+
&-heading:has(*) {
329+
margin-block-end: 0;
330+
}
331+
332+
&-description, &-description * {
329333
font-size:1.125rem;
330334
line-height: 1.45;
331335
margin: 0 auto;

0 commit comments

Comments
 (0)