Skip to content

[EuiSplitButton] Implement redesign - #9865

Merged
mgadewoll merged 14 commits into
elastic:mainfrom
mgadewoll:splitbutton/redesign
Aug 10, 2026
Merged

mgadewoll merged 14 commits into
elastic:mainfrom
mgadewoll:splitbutton/redesign

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

API Changes

⚪ No API changes

Screenshots

State Before After
light mode Screenshot 2026-08-04 at 11 43 19 Screenshot 2026-08-07 at 11 26 06
dark mode Screenshot 2026-08-04 at 11 43 22 Screenshot 2026-08-07 at 11 26 10
high contrast mode Screenshot 2026-08-04 at 11 43 27 Screenshot 2026-08-07 at 11 26 24
high contrast mode dark Screenshot 2026-08-04 at 11 43 30 Screenshot 2026-08-07 at 11 26 29
Windows HCM Screenshot 2026-08-06 at 13 10 38 Screenshot 2026-08-07 at 11 31 52

Impact Assessment

Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.

  • 🔴 Breaking changes — What will break? How many usages in Kibana/Cloud UI are impacted?
  • 💅 Visual changes — May impact style overrides; could require visual testing. Explain and estimate impact.
  • 🧪 Test impact — May break functional or snapshot tests (e.g., HTML structure, class names, default values).
  • 🔧 Hard to integrate — If changes require substantial updates to Kibana, please stage the changes and link them here.

Impact level: 🟢 None - Low

🧪 The changes have been run in Kibana CI (🟢 build)
Staged Kibana prep PR/commit: commit - contains screenshot updates

Release Readiness

QA instructions for reviewer

💻 Storybook: https://eui.elastic.co/pr_9865/storybook/?path=/story/navigation-euisplitbutton--kitchen-sink

  • verify the update matches the design specs (design review done by @JoseLuisGJ)
  • verify there is no unexpected regression besides expected visual updates with production

Checklist before marking Ready for Review

Reviewer checklist

  • Approved Impact Assessment — Acceptable to merge given the consumer impact.
  • Approved Release Readiness — Docs, Figma, and migration info are sufficient to ship.

@mgadewoll mgadewoll self-assigned this Aug 4, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
18 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euisplitbutton (18 differences)

StoryBeforeAfterDiff
dark mode desktop
dark mode mobile
high contrast mode dark desktop
high contrast mode dark mobile
high contrast mode desktop
high contrast mode mobile
kitchen sink desktop
kitchen sink mobile
playground desktop
playground mobile
single secondary action desktop
single secondary action mobile
with popover desktop
with popover mobile
with tooltip desktop
with tooltip mobile
with wrapping popover desktop
with wrapping popover mobile

@mgadewoll
mgadewoll force-pushed the splitbutton/redesign branch 2 times, most recently from 018bd06 to 94d8008 Compare August 4, 2026 09:54
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
18 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euisplitbutton (18 differences)

StoryBeforeAfterDiff
dark mode desktop
dark mode mobile
high contrast mode dark desktop
high contrast mode dark mobile
high contrast mode desktop
high contrast mode mobile
kitchen sink desktop
kitchen sink mobile
playground desktop
playground mobile
single secondary action desktop
single secondary action mobile
with popover desktop
with popover mobile
with tooltip desktop
with tooltip mobile
with wrapping popover desktop
with wrapping popover mobile

@mgadewoll
mgadewoll force-pushed the splitbutton/redesign branch 2 times, most recently from f96dd52 to a2242be Compare August 4, 2026 10:35
@mgadewoll mgadewoll added the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Aug 4, 2026
@mgadewoll
mgadewoll force-pushed the splitbutton/redesign branch 5 times, most recently from a34ea30 to 00dec2f Compare August 4, 2026 12:49
@mgadewoll
mgadewoll force-pushed the splitbutton/redesign branch from c36cfbf to 2fc9bfc Compare August 6, 2026 08:24
@mgadewoll mgadewoll removed the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Aug 6, 2026
@mgadewoll

Copy link
Copy Markdown
Contributor Author

buildkite test this

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
18 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euisplitbutton (18 differences)

StoryBeforeAfterDiff
dark mode desktop
dark mode mobile
high contrast mode dark desktop
high contrast mode dark mobile
high contrast mode desktop
high contrast mode mobile
kitchen sink desktop
kitchen sink mobile
playground desktop
playground mobile
single secondary action desktop
single secondary action mobile
with popover desktop
with popover mobile
with tooltip desktop
with tooltip mobile
with wrapping popover desktop
with wrapping popover mobile

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Applies updated redesign styling to EuiSplitButton by moving visual styling responsibilities into the parent container (background, padding, border, divider) and rendering the child actions as inset buttons.

Changes:

  • Adds inset sizing support (radiusInset) to the shared button size map and uses it for split button action radii.
  • Refactors EuiSplitButton styling to compute container background/divider colors and drive layout via data-* attributes + a CSS variable.
  • Updates split button action styles for inset sizing and updates Jest snapshots + changelog.

Reviewed changes

Copilot reviewed 6 out of 25 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/eui/src/global_styling/mixins/_button.ts Adds radiusInset to the shared button size map for inset button styling.
packages/eui/src/components/button/split_button/split_button.tsx Computes container/divider colors, adds data-* attributes, and sets a CSS var for border color.
packages/eui/src/components/button/split_button/split_button.styles.ts Reworks container/action/divider CSS to match redesigned inset layout and border behavior.
packages/eui/src/components/button/split_button/split_button_actions.tsx Updates action components to use new inset sizing styles derived from theme + size.
packages/eui/src/components/button/split_button/snapshots/split_button.test.tsx.snap Updates snapshot for new DOM attributes/styles and updated divider class hash.
packages/eui/changelogs/upcoming/9865.md Adds changelog entry for the redesign update.
Suppressed comments (2)

packages/eui/src/components/button/split_button/split_button.styles.ts:149

  • The divider height calculation only subtracts one side of the container padding. Since the split button container has padding: ${euiTheme.size.xs} on both block-start and block-end, this should subtract two paddings so the divider aligns with the inset child buttons.
      block-size: calc(100% - ${euiTheme.size.xs});

packages/eui/src/components/button/split_button/split_button.styles.ts:111

  • The nested selector &:where(:not(:has(...)) &) is effectively unscoped (it matches any ancestor that doesn't have disabled split actions), so it can apply much more broadly than intended. This should be scoped to the .euiSplitButton container to ensure borders are only removed based on this component’s own state.
     /* zero-specificity ancestor :has() check */
    &:where(:not(:has(${primaryDisabledSelector}, ${secondaryDisabledSelector})) &) {
      border: none;
    }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- ensures the container always has a border
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euidatagrid (1 difference)

StoryBeforeAfterDiff
toolbar visibility options desktop

@mgadewoll

Copy link
Copy Markdown
Contributor Author

buildkite test this

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euidatagrid (1 difference)

StoryBeforeAfterDiff
toolbar visibility options desktop

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euidatagrid (1 difference)

StoryBeforeAfterDiff
compact desktop

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euidatagrid (1 difference)

StoryBeforeAfterDiff
compact desktop

@mgadewoll mgadewoll added the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Aug 7, 2026
@mgadewoll

Copy link
Copy Markdown
Contributor Author

buildkite test this

@mgadewoll mgadewoll removed the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Aug 7, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
19 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euisplitbutton (18 differences)

StoryBeforeAfterDiff
dark mode desktop
dark mode mobile
high contrast mode dark desktop
high contrast mode dark mobile
high contrast mode desktop
high contrast mode mobile
kitchen sink desktop
kitchen sink mobile
playground desktop
playground mobile
single secondary action desktop
single secondary action mobile
with popover desktop
with popover mobile
with tooltip desktop
with tooltip mobile
with wrapping popover desktop
with wrapping popover mobile

euidatagrid (1 difference)

StoryBeforeAfterDiff
toolbar visibility options desktop

@mgadewoll
mgadewoll marked this pull request as ready for review August 7, 2026 11:42
@mgadewoll
mgadewoll requested a review from a team as a code owner August 7, 2026 11:42

@JoseLuisGJ JoseLuisGJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We already reviewed some nuances of it, and checking the screenshots of the storybook cases looks good to me 👍

@weronikaolejniczak weronikaolejniczak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything LGTM 🟢 I only left a couple non-blocking comments. The re-design looks great, @JoseLuisGJ 🙌🏻 I like how it brings the split button closer visually to the Kibana Chrome. Noticed no regression compared to prod.

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mgadewoll

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll
mgadewoll merged commit 448581b into elastic:main Aug 10, 2026
1 check passed
mgadewoll added a commit to elastic/kibana that referenced this pull request Aug 28, 2026
## Dependency updates

`@elastic/eui` - 119.0.0 ⏩ 119.1.0
`@elastic/eui-test-helpers` - 1.3.0 ⏩ 1.4.0

## Changes

- Updated usages of `EuiFilePickerClass` to `EuiFilePickerRef` after the
migration of `EuiFilePicker` from class to function component

## Package updates

### `@elastic/eui`
[v119.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Updated `EuiFlyoutMenu` action icon spacing: `leadingActions` and
`trailingActions` icons are now grouped with a consistent gap between
each icon ([#9887](elastic/eui#9887))
- Updated `EuiFlyoutMenu` back button to show a tooltip with the
previous page title (e.g. "Back to Page 1") when history context is
available ([#9887](elastic/eui#9887))
- Added `cursorDefault`, `logIn`, and `routeSplit` glyphs to `EuiIcon`
([#9885](elastic/eui#9885))
- Updated `EuiSplitButton` to apply redesign style changes
([#9865](elastic/eui#9865))
- Added a development warning to `useGeneratedHtmlId` and
`htmlIdGenerator` when the passed `prefix`/`suffix` contains whitespace,
which generates invalid HTML IDs
([#9868](elastic/eui#9868))
- Updated `EuiButtonGroup`:
([#9862](elastic/eui#9862))
- Added `variant="segmented"` which renders the group as visually
connected control group
- Added `showDividers` prop to optionally render dividers between group
children
- Added `layout` prop to optionally render icon button groups vertically
    - Added `wrap` prop to manually control the group wrapping behavior

**Bug fixes**

- Fixed `EuiDataGrid` header cell actions popover not opening when
pressing Enter on a focused actions button
([#9931](elastic/eui#9931))
- Fixed `EuiFilePicker` losing imperative `ref` support when migrated
from class to function component
([#9879](elastic/eui#9879)). Use
`useRef<EuiFilePickerRef>()` where `useRef<EuiFilePickerClass>()` was
previously used. ([#9930](elastic/eui#9930))
- Fixed `EuiSplitButton` having a wrong `inline-size` when
`textProps={false}` is set on an action button that has `iconType`
([#9917](elastic/eui#9917))

### `@elastic/eui-test-helpers`
[v1.4.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md)

- Added `EuiSelectableObject` with `options`, `selectOption(label)` and
`search(term)` ([#9908](elastic/eui#9908))

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hannah Mudge <[email protected]>
dej611 pushed a commit to dej611/kibana that referenced this pull request Aug 31, 2026
## Dependency updates

`@elastic/eui` - 119.0.0 ⏩ 119.1.0
`@elastic/eui-test-helpers` - 1.3.0 ⏩ 1.4.0

## Changes

- Updated usages of `EuiFilePickerClass` to `EuiFilePickerRef` after the
migration of `EuiFilePicker` from class to function component

## Package updates

### `@elastic/eui`
[v119.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Updated `EuiFlyoutMenu` action icon spacing: `leadingActions` and
`trailingActions` icons are now grouped with a consistent gap between
each icon ([elastic#9887](elastic/eui#9887))
- Updated `EuiFlyoutMenu` back button to show a tooltip with the
previous page title (e.g. "Back to Page 1") when history context is
available ([elastic#9887](elastic/eui#9887))
- Added `cursorDefault`, `logIn`, and `routeSplit` glyphs to `EuiIcon`
([elastic#9885](elastic/eui#9885))
- Updated `EuiSplitButton` to apply redesign style changes
([elastic#9865](elastic/eui#9865))
- Added a development warning to `useGeneratedHtmlId` and
`htmlIdGenerator` when the passed `prefix`/`suffix` contains whitespace,
which generates invalid HTML IDs
([elastic#9868](elastic/eui#9868))
- Updated `EuiButtonGroup`:
([elastic#9862](elastic/eui#9862))
- Added `variant="segmented"` which renders the group as visually
connected control group
- Added `showDividers` prop to optionally render dividers between group
children
- Added `layout` prop to optionally render icon button groups vertically
    - Added `wrap` prop to manually control the group wrapping behavior

**Bug fixes**

- Fixed `EuiDataGrid` header cell actions popover not opening when
pressing Enter on a focused actions button
([elastic#9931](elastic/eui#9931))
- Fixed `EuiFilePicker` losing imperative `ref` support when migrated
from class to function component
([elastic#9879](elastic/eui#9879)). Use
`useRef<EuiFilePickerRef>()` where `useRef<EuiFilePickerClass>()` was
previously used. ([elastic#9930](elastic/eui#9930))
- Fixed `EuiSplitButton` having a wrong `inline-size` when
`textProps={false}` is set on an action button that has `iconType`
([elastic#9917](elastic/eui#9917))

### `@elastic/eui-test-helpers`
[v1.4.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md)

- Added `EuiSelectableObject` with `options`, `selectOption(label)` and
`search(term)` ([elastic#9908](elastic/eui#9908))

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hannah Mudge <[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.

5 participants