Repository navigation
[EuiButtonGroup] Implement redesign #4 - Update Options API styles and implementations - #9953
Conversation
a68e91f to
a4499d8
Compare
📷 36 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuifilterbutton (4 differences)
euifiltergroup (2 differences)
euisearchbar (4 differences)
euisuperdatepicker (6 differences)
euibuttongroup (14 differences)
euidatagrid (4 differences)
euiinmemorytable (2 differences)
|
a4499d8 to
e96822c
Compare
📷 36 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuifilterbutton (4 differences)
euifiltergroup (2 differences)
euisearchbar (4 differences)
euisuperdatepicker (6 differences)
euibuttongroup (14 differences)
euidatagrid (4 differences)
euiinmemorytable (2 differences)
|
e96822c to
44c2d2b
Compare
📷 36 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuifilterbutton (4 differences)
euifiltergroup (2 differences)
euisearchbar (4 differences)
euisuperdatepicker (6 differences)
euibuttongroup (14 differences)
euidatagrid (4 differences)
euiinmemorytable (2 differences)
|
44c2d2b to
f20b47f
Compare
📷 36 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuifilterbutton (4 differences)
euifiltergroup (2 differences)
euisearchbar (4 differences)
euisuperdatepicker (6 differences)
euibuttongroup (14 differences)
euidatagrid (4 differences)
euiinmemorytable (2 differences)
|
|
buildkite test this |
5550bcc to
4dd77e4
Compare
📷 36 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuifilterbutton (4 differences)
euifiltergroup (2 differences)
euisearchbar (4 differences)
euisuperdatepicker (6 differences)
euibuttongroup (14 differences)
euidatagrid (4 differences)
euiinmemorytable (2 differences)
|
There was a problem hiding this comment.
Pull request overview
This PR is part 4 of the EuiButtonGroup redesign rollout, updating the legacy Options API to the new inset/segmented styling, aligning related components (EuiFilterGroup / EuiFilterButton), and migrating several EUI-internal consumers to the newer Children API.
Changes:
- Added an inset height helper (
getInsetHeight) toeuiButtonSizeMapand refactored button group styles to support the redesigned inset container/border approach. - Updated
EuiFilterGroup/EuiFilterButtonstyles and migratedEuiSuperDatePickertime window controls +EuiDataGriddisplay & sorting controls toEuiButtonGroup’s Children API. - Updated unit tests and snapshots to reflect new DOM/class output, and added a changelog entry documenting deprecations.
Reviewed changes
Copilot reviewed 24 out of 60 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/eui/src/global_styling/mixins/_button.ts | Adds getInsetHeight helper to button size map for redesigned inset sizing. |
| packages/eui/src/components/search_bar/filters/snapshots/is_filter.test.tsx.snap | Snapshot updates for filter button/button group class changes. |
| packages/eui/src/components/search_bar/filters/snapshots/field_value_toggle_group_filter.test.tsx.snap | Snapshot updates for toggle group filter rendering changes. |
| packages/eui/src/components/search_bar/filters/snapshots/field_value_toggle_filter.test.tsx.snap | Snapshot updates for toggle filter rendering changes. |
| packages/eui/src/components/search_bar/snapshots/search_filters.test.tsx.snap | Snapshot updates for search filter group rendering changes. |
| packages/eui/src/components/search_bar/snapshots/search_bar.test.tsx.snap | Snapshot updates for search bar rendering changes. |
| packages/eui/src/components/filter_group/filter_group.styles.ts | Aligns filter group sizing/padding with inset button group redesign. |
| packages/eui/src/components/filter_group/filter_button.styles.ts | Adjusts wrapper padding rules for redesigned layout. |
| packages/eui/src/components/filter_group/snapshots/filter_button.test.tsx.snap | Snapshot updates for filter button wrapper/class changes. |
| packages/eui/src/components/date_picker/super_date_picker/time_window_buttons.tsx | Migrates time window controls to EuiButtonGroup Children API with tooltips and icon buttons. |
| packages/eui/src/components/date_picker/super_date_picker/snapshots/time_window_buttons.test.tsx.snap | Snapshot updates reflecting new button group DOM structure. |
| packages/eui/src/components/datagrid/data_grid.test.tsx | Updates test logic to detect selected sort via aria-pressed. |
| packages/eui/src/components/datagrid/controls/display_selector.tsx | Migrates density/row height controls to EuiButtonGroup Children API selection variant. |
| packages/eui/src/components/datagrid/controls/column_sorting.styles.ts | Adjusts drag handle spacing/alignment styling. |
| packages/eui/src/components/datagrid/controls/column_sorting_draggable.tsx | Migrates column sorting order controls to Children API selection variant. |
| packages/eui/src/components/datagrid/controls/snapshots/display_selector.test.tsx.snap | Snapshot updates for display selector DOM changes. |
| packages/eui/src/components/datagrid/controls/snapshots/column_sorting.test.tsx.snap | Snapshot updates for column sorting control DOM changes. |
| packages/eui/src/components/datagrid/controls/snapshots/column_sorting_draggable.test.tsx.snap | Snapshot updates for draggable sorting row DOM changes. |
| packages/eui/src/components/button/button_group/button_group.tsx | Deprecation docs + compressed now styled as s for Options API sizing. |
| packages/eui/src/components/button/button_group/button_group.styles.ts | Refactors redesigned inset container/border styles and removes compressed-specific styles. |
| packages/eui/src/components/button/button_group/button_group_button.tsx | Simplifies sizing/display logic and aligns Options API buttons with redesigned “empty/selection” styling. |
| packages/eui/src/components/button/button_group/button_group_button.styles.ts | Updates button inset sizing/radius and selected-state styling to match redesign. |
| packages/eui/src/components/button/button_group/snapshots/button_group.test.tsx.snap | Snapshot updates for new classnames/markup from updated styles and compressed mapping. |
| packages/eui/changelogs/upcoming/9953.md | Adds changelog entry documenting redesign updates + deprecations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ℹ️ The changes for applying the full redesign to |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
I like the new design better, it's more subtle. Great work @JoseLuisGJ and @mgadewoll 👏🏻 Didn't notice any blocking issues. Just a couple of nits.
We remove compressed but the styles are still there. It's dead code now, we should clean them up. iconOnly.compressed and compressedButtonHeight.
📷 4 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuibuttongroup (4 differences)
|
|
buildkite test this |
💚 Build Succeeded
History
cc @mgadewoll |
💚 Build Succeeded
History
cc @mgadewoll |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
LGTM 🟢 Thanks, Lene!
|
ℹ️ We'll keep the PR open still while checking the changes in this test instance in Kibana (PR). |
Part of elastic/eui-private#766 Staged commits cherry-picked from: - #287310 - #288418 - #235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in #288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from #287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
Part of elastic/eui-private#766 Staged commits cherry-picked from: - elastic#287310 - elastic#288418 - elastic#235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in elastic#288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from elastic#287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([elastic#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([elastic#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([elastic#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([elastic#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([elastic#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([elastic#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([elastic#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([elastic#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([elastic#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([elastic#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([elastic#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([elastic#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([elastic#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([elastic#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([elastic#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([elastic#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([elastic#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([elastic#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([elastic#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([elastic#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
…yles and implementations (elastic#9953) Co-authored-by: kibanamachine <[email protected]>






































































































Summary
Note
This PR is part 4 of implementing the new button group design and API.
It builds on the selection variant that was added in part 3.
EuiButtonGroupwith the legacy Options API to use the new redesign styles aligning it with the styles of the previously added Children API. Additionally this PR updates all eui-internal usages.EuiFilterGroupstyles (base alignment update only; there will be a standalone PR to fully update the component as part of https://github.com/elastic/eui-private/issues/728)EuiSuperDatePicker'sTimeWindowButtonsto use the newEuiButtonGroupwith Children APIEuiDataGridsEuiDataGridColumnSortingDraggableandRowHeightControlandDensityControlbutton group usageseuiButtonSizeMapto provide an inset height viagetInsetHeightAPI Changes
EuiButtonGroup(Options API only)optionschildreninsteadEuiButtonGroup(Options API only)buttonSize="compressed"snow internally.EuiButtonGroup(Options API only)colorcolor="text"will be a static styling int he future.Screenshots
EuiFilterGroupEuiSuperDatePickerTimeWindowButtonsEuiDataGridcolumn sortingEuiDataGriddisplay selectorsImpact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 Low
🧪 The changes have been run in Kibana CI (🟢 build)
Required Kibana changes: commits added here (only the first commit is required, the second is a proactive migration)
Release Readiness
QA instructions for reviewer
💻 Storybook
💻 Storybook kitchen sink
EuiButtonGroupwith Options API styles match the styles of the Children API withvariant="selection"backgrundLightTextcolor instead of regular text filled buttonbuttonSize="compressed"renders same assEuiFilterGroup(and internalEuiFilterButtonstyles are aligned with the new button group styles and there is no unexpected regressionEuiDataGrids display selection and column sorting use the new Children API button group and there is no functional regressionEuiSuperDatePickers time window buttons use the new Children API button group and there is no functional regressionChecklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist