Skip to content

Commit

Permalink
Fix headings with an anchor in a summary (#2048)
Browse files Browse the repository at this point in the history
* Fix headings with an anchor in a summary

* Create hip-readers-press.md

* Lint
  • Loading branch information
simurai authored Apr 29, 2022
1 parent f4dba96 commit dc529e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-readers-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Fix headings with an anchor in a summary
5 changes: 5 additions & 0 deletions src/markdown/headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
h5,
h6 {
display: inline-block;

.anchor {
// stylelint-disable-next-line primer/spacing
margin-left: -40px;
}
}

h1,
Expand Down

0 comments on commit dc529e3

Please sign in to comment.