Skip to content

Commit 3a0202d

Browse files
author
Ryan A. Johnson
committed
fix(CSS): correct space below only-child headings
* in cases where a heading is an only child, white space should not be added below it
1 parent d1d6943 commit 3a0202d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/helix-ui/styles/modules/typography.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ h1, h2, h3, h4, h5, h6 {
33
font-family: @font-sans-serif;
44
font-weight: 400;
55
line-height: 1.5;
6-
margin: 0 0 0.5rem;
6+
margin: 0;
7+
8+
& + * {
9+
margin-top: 0.5rem;
10+
}
711
}
812

913
// DEFINE

0 commit comments

Comments
 (0)