diff --git a/changelogs/upcoming/7708.md b/changelogs/upcoming/7708.md new file mode 100644 index 00000000000..9d8803b71b4 --- /dev/null +++ b/changelogs/upcoming/7708.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed a visual bug with `EuiSuperDatePicker`'s absolute tab on small mobile screens diff --git a/src/components/date_picker/super_date_picker/date_popover/_date_popover_content.scss b/src/components/date_picker/super_date_picker/date_popover/_date_popover_content.scss index 34bb31560fb..0182e258066 100644 --- a/src/components/date_picker/super_date_picker/date_popover/_date_popover_content.scss +++ b/src/components/date_picker/super_date_picker/date_popover/_date_popover_content.scss @@ -2,6 +2,10 @@ .euiDatePopoverContent .react-datepicker { width: $euiFormMaxWidth; max-width: 100%; + + @include euiBreakpoint('xs') { + width: $euiDatePickerCalendarWidth; + } } .euiDatePopoverContent__padded { @@ -11,10 +15,3 @@ .euiDatePopoverContent__padded--large { padding: $euiSize; } - -@include euiBreakpoint('xs') { - .euiDatePopoverContent { - // Small screens drop the time selector - width: $euiDatePickerCalendarWidth; - } -}