From 5adadb58d13b3caae0ae7fe36c68cd7a77b82de5 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:29:17 -0400 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#383) (#387) * Use EuiCompressedFormRow * Use EuiCompressedField* * Use EuiCompressedSelect and EuiCompressedSuperSelect * Use EuiCompressedSwitch * Update snapshots --------- (cherry picked from commit 06f24fd210ba8a68dd8a590e4bde0c26437523b1) Signed-off-by: Miki Signed-off-by: github-actions[bot] Co-authored-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" >