Skip to content

Commit dab8319

Browse files
heiskrsimurai
andauthored
In markdown, update summary > heading style (#1949)
* 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 <[email protected]>
1 parent 30f29d3 commit dab8319

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.changeset/tall-experts-hammer.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+
Render headings inline when in a `<summary>`

src/markdown/headings.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,21 @@
7171
font-size: 0.85em;
7272
color: var(--color-fg-muted);
7373
}
74+
75+
summary {
76+
h1,
77+
h2,
78+
h3,
79+
h4,
80+
h5,
81+
h6 {
82+
display: inline-block;
83+
}
84+
85+
h1,
86+
h2 {
87+
padding-bottom: 0;
88+
border-bottom: 0;
89+
}
90+
}
7491
}

0 commit comments

Comments
 (0)