Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render code at 100% font size irregardless of direct descension #1525

Merged
merged 2 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-planes-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Render `code` at 100% font size irregardless of direct descension from `pre`.
7 changes: 5 additions & 2 deletions src/markdown/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
pre {
word-wrap: normal;

code {
// stylelint-disable-next-line primer/typography
font-size: 100%;
}

// Code tags within code blocks (<pre>s)
> code {
padding: 0;
margin: 0;
// stylelint-disable-next-line primer/typography
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
Expand Down