From c0b8a25095e9fd60a5a9911d0cb1ba1249400ebf Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Tue, 24 Nov 2020 13:46:22 -0500 Subject: [PATCH] Fix dropdown styles in Amsterdam (#4301) * Reusing EuiPopover panel classes inside EuiComboBox * EuiSuperSelect now using EuiInputPopover * Remove popover animation if attached * Fix body line height in reset * Fix date picker dropdown styles * Removed breakpoint hiding time picker --- CHANGELOG.md | 3 + .../color_picker/color_palette_display.js | 2 + .../color_palette_picker.test.tsx.snap | 624 ++++++------ .../__snapshots__/combo_box.test.tsx.snap | 2 +- src/components/combo_box/_combo_box.scss | 1 + .../_combo_box_options_list.scss | 52 +- .../combo_box_options_list.tsx | 24 +- src/components/date_picker/_date_picker.scss | 17 +- .../__snapshots__/super_select.test.tsx.snap | 933 ++++++++++-------- .../form/super_select/_super_select.scss | 27 - .../form/super_select/super_select.tsx | 52 +- src/components/popover/_popover.scss | 25 +- src/global_styling/mixins/_popover.scss | 10 - .../global_styling/reset/_reset.scss | 2 +- .../eui-amsterdam/overrides/_date_picker.scss | 18 + .../eui-amsterdam/overrides/_index.scss | 1 + .../eui-amsterdam/overrides/_popover.scss | 13 + 17 files changed, 914 insertions(+), 892 deletions(-) create mode 100644 src/themes/eui-amsterdam/overrides/_date_picker.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 60f8d338fd6..b01c4acb162 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,13 @@ - Fixed stale state argument passed to `searchProps.onChange` in an `EuiSelectable`([#4292](https://github.com/elastic/eui/pull/4292)) - Fixed initial focus of an `EuiButtonGroup` when first item in a popover ([#4288](https://github.com/elastic/eui/pull/4288)) +- Fixed visible scrollbar in `EuiComboBox` list ([#4301](https://github.com/elastic/eui/pull/4301)) +- Removed hiding of time select on small screens for `EuiDatePicker` ([#4301](https://github.com/elastic/eui/pull/4301)) **Theme: Amsterdam** - Fixed styles for `EuiMarkdownEditor` ([#4289](https://github.com/elastic/eui/pull/4289)) +- Rounded all corners of dropdown type of inputs ([#4301](https://github.com/elastic/eui/pull/4301)) ## [`30.4.1`](https://github.com/elastic/eui/tree/v30.4.1) diff --git a/src-docs/src/views/color_picker/color_palette_display.js b/src-docs/src/views/color_picker/color_palette_display.js index 5ab59ab0b93..c0628131cb0 100644 --- a/src-docs/src/views/color_picker/color_palette_display.js +++ b/src-docs/src/views/color_picker/color_palette_display.js @@ -192,6 +192,8 @@ export default () => { checked={selectionType} onChange={() => setSelectionType(!selectionType)} compressed + showLabel={false} + label="Display as fixed" /> diff --git a/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap b/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap index 28804ea3f8a..f1d6766915d 100644 --- a/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap +++ b/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap @@ -2,47 +2,49 @@ exports[`EuiColorPalettePicker is rendered 1`] = `
- You are in a form selector of 2 items and must select a single option. Use the up and down keys to navigate or escape to close. -
+ +- You are in a form selector of 2 items and must select a single option. Use the up and down keys to navigate or escape to close. -
+ +- - - Option #1 - -
-- You are in a form selector of 2 items and must select a single option. Use the up and down keys to navigate or escape to close. -
+ +- - - Option #1 - -
-