Skip to content

Commit dc529e3

Browse files
authored
Fix headings with an anchor in a summary (#2048)
* Fix headings with an anchor in a summary * Create hip-readers-press.md * Lint
1 parent f4dba96 commit dc529e3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/hip-readers-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Fix headings with an anchor in a summary

src/markdown/headings.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
h5,
8181
h6 {
8282
display: inline-block;
83+
84+
.anchor {
85+
// stylelint-disable-next-line primer/spacing
86+
margin-left: -40px;
87+
}
8388
}
8489

8590
h1,

0 commit comments

Comments
 (0)