From fc4d869a86c4ebe9b85ae5a0f86c547926271e60 Mon Sep 17 00:00:00 2001 From: miukimiu Date: Tue, 10 Nov 2020 12:56:13 +0000 Subject: [PATCH 01/23] Better support extend the md editor to full height --- CHANGELOG.md | 1 + .../markdown_editor.test.tsx.snap | 438 +++++++++++++++++- .../_markdown_editor_drop_zone.scss | 1 - .../markdown_editor/markdown_editor.test.tsx | 34 ++ .../markdown_editor/markdown_editor.tsx | 7 + .../markdown_editor_text_area.tsx | 13 +- 6 files changed, 489 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d57bb62b8e..2f8c8f3d365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Added `EuiColorPaletteDisplay` component ([#3865](https://github.com/elastic/eui/pull/3865)) - Added `initialFocusedItemIndex` support to `EuiContextMenuPanelDescriptor` ([#4223](https://github.com/elastic/eui/pull/4223)) - Added `role="alert"` and `aria-live="assertive"` to `EuiForm`'s `EuiCallOut` for the errors ([#4238](https://github.com/elastic/eui/pull/4238)) +- Added a `textareaClassName` prop to `EuiMarkdownEditor` to better to better support extend it to full height ([#3865](https://github.com/elastic/eui/pull/3865)) **Bug fixes** diff --git a/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap b/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap index 628c25a8f8d..a110057ee39 100644 --- a/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap +++ b/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap @@ -186,7 +186,443 @@ exports[`EuiMarkdownEditor is rendered 1`] = ` class="euiMarkdownEditorTextArea" id="editorId" rows="6" - style="height:calc(116px" + style="height:calc(116px)" + /> +
+
+ +
+ +
+ + +`; + +exports[`EuiMarkdownEditor props height is rendered 1`] = ` +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+