Skip to content

Commit

Permalink
Fix line-height on markdown viewer (comment box) (#4001)
Browse files Browse the repository at this point in the history
* adjust lh

* Create fluffy-brooms-dream.md
  • Loading branch information
langermank authored Dec 6, 2023
1 parent 503c7e6 commit 0e9d841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fluffy-brooms-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Fix `line-height` on markdown viewer (comment box)
2 changes: 1 addition & 1 deletion src/drafts/MarkdownEditor/_MarkdownInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const MarkdownInput = forwardRef<HTMLTextAreaElement, MarkdownInputProps>
outline: 'none',
},
'& textarea': {
lineHeight: 1.2,
lineHeight: 'var(--text-body-lineHeight-medium, 1.4285)',
resize: fullHeight ? 'none' : 'vertical',
p: 3,
fontFamily: monospace ? 'mono' : 'normal',
Expand Down

0 comments on commit 0e9d841

Please sign in to comment.