From 12b03e36c98e5dbe813f89e03ae1d4724404a3b2 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Tue, 23 Jul 2024 14:15:40 -0700 Subject: [PATCH 01/11] Remove unused refresh interval CSS - not used anywhere in the EUI repo or Kibana --- .../quick_select_popover/_refresh_interval.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/_refresh_interval.scss b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/_refresh_interval.scss index e002eddc4ca..e69de29bb2d 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/_refresh_interval.scss +++ b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/_refresh_interval.scss @@ -1,4 +0,0 @@ -.euiRefreshInterval__startButton { - // Just enough to keep it the same size for "Start" and "Stop" - min-width: 90px; -} From 1f87a276b456ca2559d5d1ef3ab2b62855300c31 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Tue, 23 Jul 2024 14:20:56 -0700 Subject: [PATCH 02/11] Replace min-width button CSS with a prop instead - much more straightforward and less custom CSS + replace className with a data-test-subj instead (used by several test selectors in Kibana) --- .../__snapshots__/quick_select_popover.test.tsx.snap | 3 ++- .../super_date_picker/quick_select_popover/_quick_select.scss | 4 ---- .../super_date_picker/quick_select_popover/quick_select.tsx | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap index 6b094158912..73db1e81bb0 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap +++ b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap @@ -216,7 +216,8 @@ exports[`EuiQuickSelectPanels customQuickSelectPanels should render custom panel > + +

- + Currently set to last 15 Minutes.

- + `; exports[`EuiQuickSelect prevQuickSelect 1`] = `
- - - - +
- - - - - - - - - - - - -
+
+ - - - - - - - - - - - +
+ +
+
- - - - - +
+ +
+ + +
+
+
+
+
- - - - - +
+ +
+
+ +
- - - - - +
+ +
+ + +
+
+
+ +
- - - - - + +
+

- + Currently set to Next 32 Months.

- +
`; diff --git a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap index 7424708c356..3a24fd3038c 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap +++ b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select_popover.test.tsx.snap @@ -6,234 +6,218 @@ exports[`EuiQuickSelectPanels customQuickSelectPanels should render custom panel data-test-subj="superDatePickerQuickMenu" >
- Quick select a time range + Quick select
-
-
-
- - - -
-
- - - -
+
-
-
-
-
- + + + +
+ class="euiFormControlLayoutCustomIcon" + > + +
-
-
- +
+ +
-
-
-
- + + + + + + + + +
+ class="euiFormControlLayoutCustomIcon" + > + +
-
-
- + + Apply + + +
+

+ Currently set to last 15 Minutes. +

-

- Currently set to last 15 Minutes. -