Skip to content

Commit c48978d

Browse files
committed
Set markdown hr thickness to border-width (1px)
The markdown thematic break (hr) rendered at 4px via the $em-spacer-3 spacing token, roughly 4x the ~1px used by every other markdown renderer and by Primer's own rules (headings, tables, and blockquote all use $border-width). Use $border-width for the hr so it matches the system's line weight and tracks the token if it ever changes. Only the existing $border-width token is used; no new tokens or API. Passes stylelint with no new disables.
1 parent dca4a95 commit c48978d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/markdown/markdown-body.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
}
7777

7878
hr {
79-
height: $em-spacer-3;
79+
height: $border-width;
8080
padding: 0;
8181
margin: var(--base-size-24) 0;
8282
// stylelint-disable-next-line primer/colors

0 commit comments

Comments
 (0)