Skip to content

Conversation

@mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Aug 28, 2025

Summary

Relates to elastic/kibana#232393 (comment)

This PR updates EuiSuperDatePicker by removing a 1ms time shift in the quick select time window steps.

The original intention of this shift is not clear, the code was added ~7 years ago here.

Removing this shift ensures that the time window keeps a stable time window.

Additional changes

  • fixes a visual bug for the isQuickSelectOnly state, where the updated delimiter element padding would result in an unexpected empty container showing

Why are we making this change?

Fixes a reported issue with unexpected 1ms time shifts when using the quick select time window steps.

Screenshots

quick select time window changes

before after
Screen.Recording.2025-08-28.at.11.38.33.mov
Screen.Recording.2025-08-28.at.11.39.04.mov
before after
Screen.Recording.2025-08-27.at.14.09.01.mov
Screen.Recording.2025-08-27.at.14.06.08.mov

isQuickSelectOnly changes

before after
Screen.Recording.2025-08-28.at.11.51.16.mov
Screen.Recording.2025-08-28.at.11.51.29.mov

Impact to users

🟢 There are no updates required on consumer side.

QA

ℹ️ To verify this change doesn't cause trouble on Kibana side, this change was also run in Kibana CI (build) and deployed here (credentials)

  • verify that the time window does not change by 1ms and stays stable (staging)
  • compare production and staging and verify that the isQuickSelectOnly state looks as expected

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@mgadewoll mgadewoll self-assigned this Aug 28, 2025
Comment on lines +576 to +580
act(() => {
userEvent.click(
screen.getByTestSubject('superDatePickerToggleQuickMenuButton')
);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking out-loud, no action required:

It'd be nice to get rid of this boilerplate with automatic act wrapping in v14 😅 and leverage async API instead.

Welp, not for this PR 🤷🏻‍♀️

Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I would do for sure is improve the changelog wording so that it's clearer what was changed.

Other than that, LGTM 🟢 I tested both cases, went through the code and didn't notice anything blocking. Thanks, Lene!

@mgadewoll
Copy link
Contributor Author

@weronikaolejniczak The feasible improvements are applied. Thanks for the review and suggestions!

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll mgadewoll merged commit e83249a into elastic:main Sep 4, 2025
5 checks passed
tkajtoch added a commit to elastic/kibana that referenced this pull request Sep 11, 2025
- `@elastic/eui`: `v106.4.0` ⏩ `v106.5.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

## [`v106.5.0`](https://github.com/elastic/eui/releases/v106.5.0)

- Added an optional `offset` prop to `EuiToolTip` to allow customizing
the distance (in pixels) between the tooltip and its anchor.
([#8988](elastic/eui#8988))
- Updated `EuiDataGrid` hover styles when `stripes={true}` to ensure a
visible background color change on hover
([#8983](elastic/eui#8983))

**Bug fixes**

- Fixed a 1ms time shift on `EuiSuperDatePicker` when using the quick
select time window steps
([#8985](elastic/eui#8985))
- Fixed a visual issue in `EuiSuperDatePicker` with `isQuickSelectOnly`
enabled, where delimiter padding caused an unexpected empty container
([#8985](elastic/eui#8985))

**Accessibility**

- Changed the close button position in `EuiModal` to allow for the modal
title to be perceivable first
([#8954](elastic/eui#8954))
- Added screen reader hint text on `EuiModal` to indicate closing
behavior ([#8954](elastic/eui#8954))

---------

Co-authored-by: Elastic Machine <[email protected]>
KodeRad pushed a commit to KodeRad/kibana that referenced this pull request Sep 15, 2025
- `@elastic/eui`: `v106.4.0` ⏩ `v106.5.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

## [`v106.5.0`](https://github.com/elastic/eui/releases/v106.5.0)

- Added an optional `offset` prop to `EuiToolTip` to allow customizing
the distance (in pixels) between the tooltip and its anchor.
([elastic#8988](elastic/eui#8988))
- Updated `EuiDataGrid` hover styles when `stripes={true}` to ensure a
visible background color change on hover
([elastic#8983](elastic/eui#8983))

**Bug fixes**

- Fixed a 1ms time shift on `EuiSuperDatePicker` when using the quick
select time window steps
([elastic#8985](elastic/eui#8985))
- Fixed a visual issue in `EuiSuperDatePicker` with `isQuickSelectOnly`
enabled, where delimiter padding caused an unexpected empty container
([elastic#8985](elastic/eui#8985))

**Accessibility**

- Changed the close button position in `EuiModal` to allow for the modal
title to be perceivable first
([elastic#8954](elastic/eui#8954))
- Added screen reader hint text on `EuiModal` to indicate closing
behavior ([elastic#8954](elastic/eui#8954))

---------

Co-authored-by: Elastic Machine <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
- `@elastic/eui`: `v106.4.0` ⏩ `v106.5.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

## [`v106.5.0`](https://github.com/elastic/eui/releases/v106.5.0)

- Added an optional `offset` prop to `EuiToolTip` to allow customizing
the distance (in pixels) between the tooltip and its anchor.
([elastic#8988](elastic/eui#8988))
- Updated `EuiDataGrid` hover styles when `stripes={true}` to ensure a
visible background color change on hover
([elastic#8983](elastic/eui#8983))

**Bug fixes**

- Fixed a 1ms time shift on `EuiSuperDatePicker` when using the quick
select time window steps
([elastic#8985](elastic/eui#8985))
- Fixed a visual issue in `EuiSuperDatePicker` with `isQuickSelectOnly`
enabled, where delimiter padding caused an unexpected empty container
([elastic#8985](elastic/eui#8985))

**Accessibility**

- Changed the close button position in `EuiModal` to allow for the modal
title to be perceivable first
([elastic#8954](elastic/eui#8954))
- Added screen reader hint text on `EuiModal` to indicate closing
behavior ([elastic#8954](elastic/eui#8954))

---------

Co-authored-by: Elastic Machine <[email protected]>
niros1 pushed a commit to elastic/kibana that referenced this pull request Sep 30, 2025
- `@elastic/eui`: `v106.4.0` ⏩ `v106.5.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

## [`v106.5.0`](https://github.com/elastic/eui/releases/v106.5.0)

- Added an optional `offset` prop to `EuiToolTip` to allow customizing
the distance (in pixels) between the tooltip and its anchor.
([#8988](elastic/eui#8988))
- Updated `EuiDataGrid` hover styles when `stripes={true}` to ensure a
visible background color change on hover
([#8983](elastic/eui#8983))

**Bug fixes**

- Fixed a 1ms time shift on `EuiSuperDatePicker` when using the quick
select time window steps
([#8985](elastic/eui#8985))
- Fixed a visual issue in `EuiSuperDatePicker` with `isQuickSelectOnly`
enabled, where delimiter padding caused an unexpected empty container
([#8985](elastic/eui#8985))

**Accessibility**

- Changed the close button position in `EuiModal` to allow for the modal
title to be perceivable first
([#8954](elastic/eui#8954))
- Added screen reader hint text on `EuiModal` to indicate closing
behavior ([#8954](elastic/eui#8954))

---------

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants