Skip to content

Commit

Permalink
In markdown, update summary > heading style (#1949)
Browse files Browse the repository at this point in the history
* In markdown, update summary > heading style

* Update headings.scss

* Create tall-experts-hammer.md

* Update headings.scss

* Update headings.scss

* Update headings.scss

* Run stylelint

Co-authored-by: simurai <simulus@gmail.com>
  • Loading branch information
heiskr and simurai committed Feb 28, 2022
1 parent 30f29d3 commit dab8319
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-experts-hammer.md
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Render headings inline when in a `<summary>`
17 changes: 17 additions & 0 deletions src/markdown/headings.scss
Expand Up @@ -71,4 +71,21 @@
font-size: 0.85em;
color: var(--color-fg-muted);
}

summary {
h1,
h2,
h3,
h4,
h5,
h6 {
display: inline-block;
}

h1,
h2 {
padding-bottom: 0;
border-bottom: 0;
}
}
}

0 comments on commit dab8319

Please sign in to comment.