diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png new file mode 100644 index 00000000000..ed3edf364f8 Binary files /dev/null and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png new file mode 100644 index 00000000000..68a44b5f0d8 Binary files /dev/null and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiSuperDatePicker_EuiSuperDatePicker_Overflowing_Children.png differ diff --git a/packages/eui/.storybook/test.ts b/packages/eui/.storybook/test.ts index 0cc66d08a92..babfd5973c1 100644 --- a/packages/eui/.storybook/test.ts +++ b/packages/eui/.storybook/test.ts @@ -40,6 +40,12 @@ const customWithin = (canvasElement: HTMLElement) => { await waitFor(() => expect(canvasElement.querySelector('[data-popover-open]')).toBeVisible() ), + waitForEuiPopoverHidden: async () => + await waitFor(() => + expect( + canvasElement.querySelector('[data-popover-panel]') + ).not.toBeInTheDocument() + ), }; }; diff --git a/packages/eui/changelogs/upcoming/8109.md b/packages/eui/changelogs/upcoming/8109.md new file mode 100644 index 00000000000..b22827b3cdd --- /dev/null +++ b/packages/eui/changelogs/upcoming/8109.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed an `EuiSuperDatePicker` bug where inputs would overflow out of smaller widths instead of truncating diff --git a/packages/eui/src/components/date_picker/super_date_picker/__snapshots__/super_date_picker.test.tsx.snap b/packages/eui/src/components/date_picker/super_date_picker/__snapshots__/super_date_picker.test.tsx.snap index 37a6e3a5b1f..306224a0103 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/__snapshots__/super_date_picker.test.tsx.snap +++ b/packages/eui/src/components/date_picker/super_date_picker/__snapshots__/super_date_picker.test.tsx.snap @@ -826,7 +826,7 @@ exports[`EuiSuperDatePicker renders an EuiDatePickerRange 1`] = `