From 59f2bdfee8e9dcef69f9a38db4b3f4702ccf2a79 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 20 Aug 2024 00:18:29 +0000 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#383) * Use EuiCompressedFormRow Signed-off-by: Miki * Use EuiCompressedField* Signed-off-by: Miki * Use EuiCompressedSelect and EuiCompressedSuperSelect Signed-off-by: Miki * Use EuiCompressedSwitch Signed-off-by: Miki * Update snapshots Signed-off-by: Miki --------- Signed-off-by: Miki (cherry picked from commit 06f24fd210ba8a68dd8a590e4bde0c26437523b1) Signed-off-by: github-actions[bot] --- .../gantt_chart_editor.test.tsx.snap | 24 +-- .../options_editor.test.tsx.snap | 164 +++--------------- public/components/gantt_chart_editor.tsx | 30 ++-- public/components/options_editor.tsx | 96 +++++----- 4 files changed, 98 insertions(+), 216 deletions(-) diff --git a/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap b/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap index ae2cf1d..93c111d 100644 --- a/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap +++ b/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap @@ -13,7 +13,7 @@ exports[` spec renders the component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the component 1`] = ` value="spanID" />
spec renders the component 1`] = ` aria-describedby="random_html_id-help-0" aria-haspopup="true" aria-labelledby="random_html_id random_html_id" - class="euiSuperSelectControl" + class="euiSuperSelectControl euiSuperSelectControl--compressed" data-test-subj="gantt-chart-editor-label-field" type="button" /> @@ -69,7 +69,7 @@ exports[` spec renders the component 1`] = ` > spec renders the component 1`] = `
spec renders the component 1`] = ` value="startTime" />
spec renders the component 1`] = ` aria-describedby="random_html_id-help-0" aria-haspopup="true" aria-labelledby="random_html_id random_html_id" - class="euiSuperSelectControl" + class="euiSuperSelectControl euiSuperSelectControl--compressed" data-test-subj="gantt-chart-editor-start-time-field" type="button" /> @@ -153,7 +153,7 @@ exports[` spec renders the component 1`] = ` > spec renders the component 1`] = `
spec renders the component 1`] = ` value="duration" />
spec renders the component 1`] = ` aria-describedby="random_html_id-help-0" aria-haspopup="true" aria-labelledby="random_html_id random_html_id" - class="euiSuperSelectControl" + class="euiSuperSelectControl euiSuperSelectControl--compressed" data-test-subj="gantt-chart-editor-duration-field" type="button" /> @@ -237,7 +237,7 @@ exports[` spec renders the component 1`] = ` > spec renders the component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
spec renders the component with different options 1`] class="euiSpacer euiSpacer--s" />
spec renders the component with different options 1`] class="euiFormRow__fieldWrapper" >