Skip to content

Commit

Permalink
FixMarkdownEditor preview overflowing its container (primer#2639)
Browse files Browse the repository at this point in the history
* Fix Markdown editor `fieldset` `min-inline-size` styling

* Add changeset
  • Loading branch information
iansan5653 authored Dec 5, 2022
1 parent 0cfdad8 commit fd9ab39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-mangos-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Fix `MarkdownEditor` preview overflowing its container
2 changes: 1 addition & 1 deletion src/drafts/MarkdownEditor/MarkdownEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const MarkdownEditor = forwardRef<MarkdownEditorHandle, MarkdownEditorProps>(
disabled /* if we set disabled={true}, we can't enable the buttons that should be enabled */
}
aria-describedby={describedBy ? `${descriptionId} ${describedBy}` : descriptionId}
style={{appearance: 'none', border: 'none'}}
style={{appearance: 'none', border: 'none', minInlineSize: 'auto'}}
>
<FormattingTools ref={formattingToolsRef} forInputId={id} />
<div style={{display: 'none'}}>{children}</div>
Expand Down

0 comments on commit fd9ab39

Please sign in to comment.