From 0e9d841e398118843c92f9b92881ead62337c682 Mon Sep 17 00:00:00 2001 From: Katie Langerman <18661030+langermank@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:05:44 -0800 Subject: [PATCH] Fix `line-height` on markdown viewer (comment box) (#4001) * adjust lh * Create fluffy-brooms-dream.md --- .changeset/fluffy-brooms-dream.md | 5 +++++ src/drafts/MarkdownEditor/_MarkdownInput.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fluffy-brooms-dream.md diff --git a/.changeset/fluffy-brooms-dream.md b/.changeset/fluffy-brooms-dream.md new file mode 100644 index 00000000000..9693260837b --- /dev/null +++ b/.changeset/fluffy-brooms-dream.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Fix `line-height` on markdown viewer (comment box) diff --git a/src/drafts/MarkdownEditor/_MarkdownInput.tsx b/src/drafts/MarkdownEditor/_MarkdownInput.tsx index 305fa9290e6..62136b5699a 100644 --- a/src/drafts/MarkdownEditor/_MarkdownInput.tsx +++ b/src/drafts/MarkdownEditor/_MarkdownInput.tsx @@ -165,7 +165,7 @@ export const MarkdownInput = forwardRef outline: 'none', }, '& textarea': { - lineHeight: 1.2, + lineHeight: 'var(--text-body-lineHeight-medium, 1.4285)', resize: fullHeight ? 'none' : 'vertical', p: 3, fontFamily: monospace ? 'mono' : 'normal',