Skip to content

[EuiButtonGroup] Implement redesign #1 - Add EuiButtonContext & Children API support - #9845

Merged
mgadewoll merged 20 commits into
elastic:mainfrom
mgadewoll:buttongroup/redesign-part-1
Jul 30, 2026
Merged

mgadewoll merged 20 commits into
elastic:mainfrom
mgadewoll:buttongroup/redesign-part-1

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • What:
    • Adds an EuiButtonContext that enables EuiButtonGroup to distribute props to nested button components (EuiButton, EuiButtonEmpty, EuiButtonIcon)
    • Adds support for a new Children API that allows passing button as via the children prop
  • Why: Part of https://github.com/elastic/eui-private/issues/725 - This update is step 1 of the larger redesign of EuiButtonGroup and adds the foundational changes for the button group redesign.
  • How:
    • Adds a EuiButtonContext that EuiButton, EuiButtonEmpty and EuiButtonIcon consume. (group context overrides children props)
    • Adds an additional API for EuiButtonGroup to render button groups by passing button components as children (handled via conditional internal render components EuiButtonGroupOptions and EuiButtonGroupChildren)
    • Adds variant="default" as first render variant for EuiButtonGroupChildren as defined by design specs

Note

The new Children API is being implemented as standalone sibling API to the existing Options API but will in the future replace the Options API as only existing API.

Note

The approach of implementing a new Children API alongside the existing Options API is on purpose to prevent breaking changes and allow for a phased migration/deprecation.

Additional changes

  • Fixes a visual bug on EuiButtonGroup where double borders would be rendered when buttons where disabled
  • Adds EuiButtonResetProvider to provide means for the EuiButtonContext to have a stop boundary for propagation, e.g. if buttons are rendered inside an EuiPopover panel

API Changes

component / parent prop / child change description
EuiButtonGroup children Added Can't be used when options prop is passed. Allows to pass button children as components. Supports EuiButton, EuiButtonEmpty and EuiButtonIcon components.
EuiButtonGroup variant Added Can only be used when children is passed. Defines the visual and functional variant of the button group.
EuiButtonGroup gutterSize Added Can only be used when children is passed. Is applied only in combination with variant="default". Defines the visual gap that's added between group children.

Screenshots

State Render
--- Screenshot 2026-07-27 at 13 11 00
gutterSize="l" Screenshot 2026-07-27 at 13 11 09
isDisabled Screenshot 2026-07-27 at 13 11 21
buttonSize="m" Screenshot 2026-07-27 at 13 12 34
isFullWidth Screenshot 2026-07-27 at 13 11 30

EuiButtonGroup visual bug fix

Before After
Screenshot 2026-07-24 at 14 06 00 Screenshot 2026-07-24 at 14 06 03

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 - fixes type errors due to onChange being required for Options API but optional for Children API

Release Readiness

  • Documentation: EUI docs
  • Figma: Proposal
  • Migration guide: {steps or link, for breaking/visual changes or deprecations}
  • Adoption plan (new features): {link to issue/doc or outline who will integrate this and where}

QA instructions for reviewer

💻 Storybook

  • verify there are no visual or functional regressions for EuiButtonGroup used with the Options API (production Storybook)
  • verify that the Options API and Children API are mutually exclusive
    • options always renders the Options API and doesn't allow Children API specific props (variant, gutterSize)
    • children always renders the Children API and doesn't allows Options API specific props (options)
  • verify that the new Children API works and supports passing children as components
  • verify gutterSize applies visual gaps correctly (used with children and variant="default")
  • verify that variant="default" for the Children API matches design specs

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.

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

This PR is the first step of the EuiButtonGroup redesign, introducing a new Children API (rendering mixed button components via children) and a shared EuiButtonGroupContext so the group can cascade common props (size/disabled/full-width) to nested button components.

Changes:

  • Added a new EuiButtonGroup Children API with variant="default" and optional gutterSize spacing.
  • Introduced EuiButtonGroupContext and updated EuiButton, EuiButtonEmpty, and EuiButtonIcon to consume group-level props.
  • Updated styles/tests/docs and fixed a disabled-state double-border visual issue.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/website/docs/components/navigation/buttons/group.mdx Updated docs to cover Children vs Options APIs and updated prop tables.
packages/eui/src/components/date_picker/super_date_picker/time_window_buttons.tsx Updated to new button group size styles API (styles.size[...]).
packages/eui/src/components/button/button.tsx Consumes EuiButtonGroupContext to apply shared group props.
packages/eui/src/components/button/button_icon/button_icon.tsx Consumes EuiButtonGroupContext to apply shared group props.
packages/eui/src/components/button/button_group/index.ts Exported EuiButtonGroupChildrenProps.
packages/eui/src/components/button/button_group/button_group.tsx Split options vs children rendering and added Children API props/behavior.
packages/eui/src/components/button/button_group/button_group.test.tsx Added comprehensive unit tests for the Children API.
packages/eui/src/components/button/button_group/button_group.styles.ts Added Children API variant styling and gutter-size styles; refactored size styles to styles.size.
packages/eui/src/components/button/button_group/button_group.docgen.tsx Added docgen helpers to support prop extraction for overloaded component types.
packages/eui/src/components/button/button_group/button_group_context.ts Added context used to cascade group props to nested button components.
packages/eui/src/components/button/button_group/button_group_children.stories.tsx Added Storybook stories for the new Children API and mixed-content examples.
packages/eui/src/components/button/button_group/button_group_button.styles.ts Adjusted disabled border rendering to prevent duplicate borders.
packages/eui/src/components/button/button_empty/button_empty.tsx Consumes EuiButtonGroupContext to apply shared group props.
packages/eui/changelogs/upcoming/9845.md Added changelog entry for the new API + context and border fix.

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

@elastic-vault-github-plugin-prod

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

euibuttongroup (2 differences)

StoryBeforeAfterDiff
high contrast desktop
high contrast mobile

@elastic-vault-github-plugin-prod

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

euibuttongroup (7 differences)

StoryBeforeAfterDiff
high contrast desktop
high contrast mobile
kitchen sink mobile
with children desktop
with children mobile
with mixed children desktop
with mixed children mobile

@elastic-vault-github-plugin-prod

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

euibuttongroup (7 differences)

StoryBeforeAfterDiff
high contrast desktop
high contrast mobile
kitchen sink mobile
with children desktop
with children mobile
with mixed children desktop
with mixed children mobile

@mgadewoll
mgadewoll force-pushed the buttongroup/redesign-part-1 branch from aca9e16 to e968b55 Compare July 27, 2026 15:29
@elastic-vault-github-plugin-prod

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

euibuttongroup (2 differences)

StoryBeforeAfterDiff
high contrast desktop
high contrast mobile

@elastic-vault-github-plugin-prod

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

euibuttongroup (2 differences)

StoryBeforeAfterDiff
high contrast desktop
high contrast 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

Copilot reviewed 14 out of 22 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

packages/eui/src/components/button/button_group/button_group.tsx:153

  • OptionsModeProps is currently built from HTMLAttributes<HTMLFieldSetElement>, which includes a children prop. That means consumers can pass both options and children without a type error, even though the runtime always renders the Options API and ignores children when options is provided. To keep the two APIs truly mutually exclusive at the type level, disallow children in Options mode.
type OptionsModeProps = Omit<
  HTMLAttributes<HTMLFieldSetElement>,
  'onChange' | 'color'
> &
  EuiButtonGroupProps;

packages/eui/src/components/button/button_group/button_group.tsx:285

  • The Children API publicly exposes an onChange prop, but the only supported variant type is currently 'default' and EuiButtonGroupChildren never calls onChange (it is explicitly discarded). This makes onChange a no-op prop in the shipped API. Either remove onChange until a selection variant is implemented, or add the selection behavior in this PR so the prop works as documented.
     * Callback fired when a child button is selected.
     * Returns the `id` of the clicked option.
     * Applies only for `variant="selection"`.
     */
    onChange?: (id: string) => void;

* Returns the `id` of the clicked option.
* Applies only for `variant="selection"`.
*/
onChange?: (id: string) => void;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ This was added here already to prevent having to change the type back and forth. Chunk 3 will implement the variant="selection" which will use the onChange prop.

@mgadewoll
mgadewoll marked this pull request as ready for review July 28, 2026 09:51
@mgadewoll
mgadewoll requested a review from a team as a code owner July 28, 2026 09:51
@mgadewoll
mgadewoll requested a review from acstll July 28, 2026 09:52

@acstll acstll 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.

Code looks correct, I left a few nits, anything blocking. Also, followed QA guide and everything seems to be working as expected!

There is one concern pointed out by Claude I think it's worth raising: buttons rendered in a popover triggered by a button of the group, will inherit the props from context.

There's this LLM-generated gist with a POC test file that validates the issue: https://gist.github.com/acstll/1c5daafbeb49ea1a4284cdfbf690638c (there the isDisabled test is a bit silly because it wouldn't be possible to open the popover, but it makes the point 😁) — what a fix for this would look like is not clear to me… but I think it'd be worthwhile trying to address it in this same PR, but I'm interested in your opinion 🙏

<EuiButtonGroup legend="Toolbar" buttonSize="m">
  <EuiPopover
    isOpen
    closePopover={() => {}}
    button={<EuiButton>More</EuiButton>}
  >
    {/* Portaled panel content… inherits `size`? */}
    <EuiButton>Delete</EuiButton>
  </EuiPopover>
</EuiButtonGroup>

@mgadewoll

mgadewoll commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor Author

There's this LLM-generated gist with a POC test file that validates the issue: https://gist.github.com/acstll/1c5daafbeb49ea1a4284cdfbf690638c (there the isDisabled test is a bit silly because it wouldn't be possible to open the popover, but it makes the point 😁) — what a fix for this would look like is not clear to me… but I think it'd be worthwhile trying to address it in this same PR, but I'm interested in your opinion 🙏

@acstll That's a great catch! And an inherent problem of React context with our component architecture of EuiPopover being a wrapper around the button. 🫠 If we ever get to refactoring EuiPopover (which I really wish for) we should really get rid of this approach and use e.g. refs instead. It's been trouble in different situations.

What we could do for now is add a context layer in EuiPopover that components can read as inheritance stop indicator. Conceptually I think it makes sense considering popover panel content is its own scoped render context. That would mean components could do conditions like "am i in a popover ? do/use X : do/use Y".

I added this in 4277cc5. This adds a hook useIsInsideEuiPopover that components can use to check if they're inside a popover.
That commit also introduces a shared hook useEuiButtonCommonProps for button components to derive the correct props since that logic was duplicated across them before.

Screenshot 2026-07-29 at 13 27 08

@mgadewoll
mgadewoll requested a review from acstll July 29, 2026 11:25

@acstll acstll 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.

🟢 Thanks for addressing my feedback so quickly!


🤖 / for a future follow-up we could consider an alternative to the useIsInsideEuiPopover hook: a "reset" strategy with something like an EuiResetButtonContext wrapping the popover, so the button doesn't have to know whether it is inside a popover or not

@mgadewoll

Copy link
Copy Markdown
Contributor Author

🟢 Thanks for addressing my feedback so quickly!

🤖 / for a future follow-up we could consider an alternative to the useIsInsideEuiPopover hook: a "reset" strategy with something like an EuiResetButtonContext wrapping the popover, so the button doesn't have to know whether it is inside a popover or not

@acstll Thanks for the suggestion! While both approaches are similar and mainly differ conceptually (who owns the boundary?), I would agree that it would be slightly better to use a EuiButtonResetProvider if we assume the leaking context should own its own boundary.
Updated in a34f55c.

@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

euicallout (1 difference)

StoryBeforeAfterDiff
with popover desktop

@mgadewoll mgadewoll changed the title [EuiButtonGroup] Implement redesign #1 - Add EuiButtonGroupContext & Children API support [EuiButtonGroup] Implement redesign #1 - Add EuiButtonContext & Children API support Jul 30, 2026
@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

@acstll

acstll commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Updated in a34f55c.

LGTM! 🚢 🙌

@mgadewoll
mgadewoll merged commit 5b226c4 into elastic:main Jul 30, 2026
1 check passed
acstll added a commit to elastic/kibana that referenced this pull request Aug 13, 2026
## Dependency updates

`@elastic/eui` - 118.0.0 ⏩ 119.0.0
`@elastic/eslint-plugin-eui` - 2.15.0 ⏩ 2.16.0
`@elastic/eui-test-helpers` - 1.2.0 ⏩ 1.3.0

## Changes

- Added 3 new `EuiFlyoutMenu` i18n tokens
(`euiFlyoutMenu.history.tooltip`, `euiFlyoutMenu.pagination.first`,
`euiFlyoutMenu.pagination.last`) to `i18n_eui_mapping.tsx` and all
translation files
- Replaced removed `plusInCircle` icon alias with `plusCircle` in the ML
plugin (data frame analytics, anomaly detection jobs, and trained models
menus)

## Package updates

### `@elastic/eslint-plugin-eui`
[v2.16.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Added new `@elastic/eui/no-nested-copy-tooltip` rule to improve
`EuiCopy` usage ([#9852](elastic/eui#9852))
- Updated `@elastic/eui/tooltip-button-icon-wrap` with an exception for
`EuiCopy` usage covered by `@elastic/eui/no-nested-copy-tooltip`
([#9852](elastic/eui#9852))
- Added `button-group-no-invalid-children` rule
([#9849](elastic/eui#9849))
- Added `no-deprecated-icon-aliases` rule
([#9815](elastic/eui#9815))

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

- Bundled icon glyph files into `dist/svgs/` and added
`dist/eui-icons.json` manifest (mapping icon filename stems to SVG
content strings) ([#9873](elastic/eui#9873))
- Added `hasAriaDisabled` prop to `EuiContextMenuItem`
([#9870](elastic/eui#9870))
- Updated `EuiButtonGroup`:
([#9845](elastic/eui#9845))
- Added new render API via `children` prop that allows passing button
components as children
  - Added `variant` prop (usable only with `children` prop)
- Added `gutterSize` prop (usable only with `children` and
`variant="default"` prop)
- Updated `EuiButton`, `EuiButtonEmpty` and `EuiButtonIcon` to consume a
`EuiButtonContext` allowing the group to control common props
([#9845](elastic/eui#9845))
- Updated `EuiFlyoutMenu`:
([#9856](elastic/eui#9856))
- Added `leadingActions` and `trailingActions` props, which accept the
new `EuiFlyoutMenuAction` type supporting `toolTipContent` and
`toolTipProps`
  - Changed the history trigger icon to `clockCounter`
  - Added control-group dividers between built-in controls
- Added `onFirst`, `onLast` to `pagination`, which render optional
buttons for jumping to the beginning and end of the list.
- Deprecated additional `EuiIcon` types that are not represented in
Figma ([#9815](elastic/eui#9815))

**Bug fixes**

- Fixed the missing type declaration for the `focusEuiToolTipTrigger`
test helper ([#9870](elastic/eui#9870))
- Fixed generated icon IDs to remain stable during server-side rendering
([#9866](elastic/eui#9866))
- Fixed a visual bug in `EuiButtonGroup` that rendered duplicate borders
on disabled buttons ([#9845](elastic/eui#9845))
- The `EuiFlyoutMenu` history popover now only appears when
`historyItems` has more than one entry. When there is a single entry in
history, only the Back button is shown.
([#9856](elastic/eui#9856))
- Fixed `EuiFlyoutMenu` pagination controls disappearing when
`pagination.total` is `1`; the controls now render (as "1 of 1" with
both Prev/Next disabled) for any `total` of at least `1`
([#9856](elastic/eui#9856))

**Deprecations**

- Deprecated `customActions` and `EuiFlyoutMenuCustomAction` in
`EuiFlyoutMenu`; use `trailingActions` and `EuiFlyoutMenuAction` instead
([#9856](elastic/eui#9856))

**Breaking changes**

- Removed most deprecated `EuiIcon` types and their icon assets. 16
widely-used deprecated aliases (e.g. `alert`, `search`, `visPie`) remain
temporarily and will be removed in a future release
([#9832](elastic/eui#9832))
([#9815](elastic/eui#9815))

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

- Added `EuiDataGridObject` with `rows`, `cell()`, `cells()`,
`doActionOnColumn()` and `openFullScreenMode()`/`closeFullScreenMode()`
([#9874](elastic/eui#9874))
- Added `EuiSuperSelectObject` with `selectOptionByValue()`,
`selectOptionByLabel()` and `getSelectedValue()`
([#9874](elastic/eui#9874))
- Added `EuiGlobalToastListObject` with a `toasts` locator and
`closeAll()` ([#9874](elastic/eui#9874))

---------

Co-authored-by: Lene Gadewoll <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
qn895 pushed a commit to qn895/kibana that referenced this pull request Aug 13, 2026
## Dependency updates

`@elastic/eui` - 118.0.0 ⏩ 119.0.0
`@elastic/eslint-plugin-eui` - 2.15.0 ⏩ 2.16.0
`@elastic/eui-test-helpers` - 1.2.0 ⏩ 1.3.0

## Changes

- Added 3 new `EuiFlyoutMenu` i18n tokens
(`euiFlyoutMenu.history.tooltip`, `euiFlyoutMenu.pagination.first`,
`euiFlyoutMenu.pagination.last`) to `i18n_eui_mapping.tsx` and all
translation files
- Replaced removed `plusInCircle` icon alias with `plusCircle` in the ML
plugin (data frame analytics, anomaly detection jobs, and trained models
menus)

## Package updates

### `@elastic/eslint-plugin-eui`
[v2.16.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Added new `@elastic/eui/no-nested-copy-tooltip` rule to improve
`EuiCopy` usage ([elastic#9852](elastic/eui#9852))
- Updated `@elastic/eui/tooltip-button-icon-wrap` with an exception for
`EuiCopy` usage covered by `@elastic/eui/no-nested-copy-tooltip`
([elastic#9852](elastic/eui#9852))
- Added `button-group-no-invalid-children` rule
([elastic#9849](elastic/eui#9849))
- Added `no-deprecated-icon-aliases` rule
([elastic#9815](elastic/eui#9815))

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

- Bundled icon glyph files into `dist/svgs/` and added
`dist/eui-icons.json` manifest (mapping icon filename stems to SVG
content strings) ([elastic#9873](elastic/eui#9873))
- Added `hasAriaDisabled` prop to `EuiContextMenuItem`
([elastic#9870](elastic/eui#9870))
- Updated `EuiButtonGroup`:
([elastic#9845](elastic/eui#9845))
- Added new render API via `children` prop that allows passing button
components as children
  - Added `variant` prop (usable only with `children` prop)
- Added `gutterSize` prop (usable only with `children` and
`variant="default"` prop)
- Updated `EuiButton`, `EuiButtonEmpty` and `EuiButtonIcon` to consume a
`EuiButtonContext` allowing the group to control common props
([elastic#9845](elastic/eui#9845))
- Updated `EuiFlyoutMenu`:
([elastic#9856](elastic/eui#9856))
- Added `leadingActions` and `trailingActions` props, which accept the
new `EuiFlyoutMenuAction` type supporting `toolTipContent` and
`toolTipProps`
  - Changed the history trigger icon to `clockCounter`
  - Added control-group dividers between built-in controls
- Added `onFirst`, `onLast` to `pagination`, which render optional
buttons for jumping to the beginning and end of the list.
- Deprecated additional `EuiIcon` types that are not represented in
Figma ([elastic#9815](elastic/eui#9815))

**Bug fixes**

- Fixed the missing type declaration for the `focusEuiToolTipTrigger`
test helper ([elastic#9870](elastic/eui#9870))
- Fixed generated icon IDs to remain stable during server-side rendering
([elastic#9866](elastic/eui#9866))
- Fixed a visual bug in `EuiButtonGroup` that rendered duplicate borders
on disabled buttons ([elastic#9845](elastic/eui#9845))
- The `EuiFlyoutMenu` history popover now only appears when
`historyItems` has more than one entry. When there is a single entry in
history, only the Back button is shown.
([elastic#9856](elastic/eui#9856))
- Fixed `EuiFlyoutMenu` pagination controls disappearing when
`pagination.total` is `1`; the controls now render (as "1 of 1" with
both Prev/Next disabled) for any `total` of at least `1`
([elastic#9856](elastic/eui#9856))

**Deprecations**

- Deprecated `customActions` and `EuiFlyoutMenuCustomAction` in
`EuiFlyoutMenu`; use `trailingActions` and `EuiFlyoutMenuAction` instead
([elastic#9856](elastic/eui#9856))

**Breaking changes**

- Removed most deprecated `EuiIcon` types and their icon assets. 16
widely-used deprecated aliases (e.g. `alert`, `search`, `visPie`) remain
temporarily and will be removed in a future release
([elastic#9832](elastic/eui#9832))
([elastic#9815](elastic/eui#9815))

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

- Added `EuiDataGridObject` with `rows`, `cell()`, `cells()`,
`doActionOnColumn()` and `openFullScreenMode()`/`closeFullScreenMode()`
([elastic#9874](elastic/eui#9874))
- Added `EuiSuperSelectObject` with `selectOptionByValue()`,
`selectOptionByLabel()` and `getSelectedValue()`
([elastic#9874](elastic/eui#9874))
- Added `EuiGlobalToastListObject` with a `toasts` locator and
`closeAll()` ([elastic#9874](elastic/eui#9874))

---------

Co-authored-by: Lene Gadewoll <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 18, 2026
## Dependency updates

`@elastic/eui` - 118.0.0 ⏩ 119.0.0
`@elastic/eslint-plugin-eui` - 2.15.0 ⏩ 2.16.0
`@elastic/eui-test-helpers` - 1.2.0 ⏩ 1.3.0

## Changes

- Added 3 new `EuiFlyoutMenu` i18n tokens
(`euiFlyoutMenu.history.tooltip`, `euiFlyoutMenu.pagination.first`,
`euiFlyoutMenu.pagination.last`) to `i18n_eui_mapping.tsx` and all
translation files
- Replaced removed `plusInCircle` icon alias with `plusCircle` in the ML
plugin (data frame analytics, anomaly detection jobs, and trained models
menus)

## Package updates

### `@elastic/eslint-plugin-eui`
[v2.16.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Added new `@elastic/eui/no-nested-copy-tooltip` rule to improve
`EuiCopy` usage ([elastic#9852](elastic/eui#9852))
- Updated `@elastic/eui/tooltip-button-icon-wrap` with an exception for
`EuiCopy` usage covered by `@elastic/eui/no-nested-copy-tooltip`
([elastic#9852](elastic/eui#9852))
- Added `button-group-no-invalid-children` rule
([elastic#9849](elastic/eui#9849))
- Added `no-deprecated-icon-aliases` rule
([elastic#9815](elastic/eui#9815))

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

- Bundled icon glyph files into `dist/svgs/` and added
`dist/eui-icons.json` manifest (mapping icon filename stems to SVG
content strings) ([elastic#9873](elastic/eui#9873))
- Added `hasAriaDisabled` prop to `EuiContextMenuItem`
([elastic#9870](elastic/eui#9870))
- Updated `EuiButtonGroup`:
([elastic#9845](elastic/eui#9845))
- Added new render API via `children` prop that allows passing button
components as children
  - Added `variant` prop (usable only with `children` prop)
- Added `gutterSize` prop (usable only with `children` and
`variant="default"` prop)
- Updated `EuiButton`, `EuiButtonEmpty` and `EuiButtonIcon` to consume a
`EuiButtonContext` allowing the group to control common props
([elastic#9845](elastic/eui#9845))
- Updated `EuiFlyoutMenu`:
([elastic#9856](elastic/eui#9856))
- Added `leadingActions` and `trailingActions` props, which accept the
new `EuiFlyoutMenuAction` type supporting `toolTipContent` and
`toolTipProps`
  - Changed the history trigger icon to `clockCounter`
  - Added control-group dividers between built-in controls
- Added `onFirst`, `onLast` to `pagination`, which render optional
buttons for jumping to the beginning and end of the list.
- Deprecated additional `EuiIcon` types that are not represented in
Figma ([elastic#9815](elastic/eui#9815))

**Bug fixes**

- Fixed the missing type declaration for the `focusEuiToolTipTrigger`
test helper ([elastic#9870](elastic/eui#9870))
- Fixed generated icon IDs to remain stable during server-side rendering
([elastic#9866](elastic/eui#9866))
- Fixed a visual bug in `EuiButtonGroup` that rendered duplicate borders
on disabled buttons ([elastic#9845](elastic/eui#9845))
- The `EuiFlyoutMenu` history popover now only appears when
`historyItems` has more than one entry. When there is a single entry in
history, only the Back button is shown.
([elastic#9856](elastic/eui#9856))
- Fixed `EuiFlyoutMenu` pagination controls disappearing when
`pagination.total` is `1`; the controls now render (as "1 of 1" with
both Prev/Next disabled) for any `total` of at least `1`
([elastic#9856](elastic/eui#9856))

**Deprecations**

- Deprecated `customActions` and `EuiFlyoutMenuCustomAction` in
`EuiFlyoutMenu`; use `trailingActions` and `EuiFlyoutMenuAction` instead
([elastic#9856](elastic/eui#9856))

**Breaking changes**

- Removed most deprecated `EuiIcon` types and their icon assets. 16
widely-used deprecated aliases (e.g. `alert`, `search`, `visPie`) remain
temporarily and will be removed in a future release
([elastic#9832](elastic/eui#9832))
([elastic#9815](elastic/eui#9815))

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

- Added `EuiDataGridObject` with `rows`, `cell()`, `cells()`,
`doActionOnColumn()` and `openFullScreenMode()`/`closeFullScreenMode()`
([elastic#9874](elastic/eui#9874))
- Added `EuiSuperSelectObject` with `selectOptionByValue()`,
`selectOptionByLabel()` and `getSelectedValue()`
([elastic#9874](elastic/eui#9874))
- Added `EuiGlobalToastListObject` with a `toasts` locator and
`closeAll()` ([elastic#9874](elastic/eui#9874))

---------

Co-authored-by: Lene Gadewoll <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 18, 2026
## Dependency updates

`@elastic/eui` - 118.0.0 ⏩ 119.0.0
`@elastic/eslint-plugin-eui` - 2.15.0 ⏩ 2.16.0
`@elastic/eui-test-helpers` - 1.2.0 ⏩ 1.3.0

## Changes

- Added 3 new `EuiFlyoutMenu` i18n tokens
(`euiFlyoutMenu.history.tooltip`, `euiFlyoutMenu.pagination.first`,
`euiFlyoutMenu.pagination.last`) to `i18n_eui_mapping.tsx` and all
translation files
- Replaced removed `plusInCircle` icon alias with `plusCircle` in the ML
plugin (data frame analytics, anomaly detection jobs, and trained models
menus)

## Package updates

### `@elastic/eslint-plugin-eui`
[v2.16.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Added new `@elastic/eui/no-nested-copy-tooltip` rule to improve
`EuiCopy` usage ([elastic#9852](elastic/eui#9852))
- Updated `@elastic/eui/tooltip-button-icon-wrap` with an exception for
`EuiCopy` usage covered by `@elastic/eui/no-nested-copy-tooltip`
([elastic#9852](elastic/eui#9852))
- Added `button-group-no-invalid-children` rule
([elastic#9849](elastic/eui#9849))
- Added `no-deprecated-icon-aliases` rule
([elastic#9815](elastic/eui#9815))

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

- Bundled icon glyph files into `dist/svgs/` and added
`dist/eui-icons.json` manifest (mapping icon filename stems to SVG
content strings) ([elastic#9873](elastic/eui#9873))
- Added `hasAriaDisabled` prop to `EuiContextMenuItem`
([elastic#9870](elastic/eui#9870))
- Updated `EuiButtonGroup`:
([elastic#9845](elastic/eui#9845))
- Added new render API via `children` prop that allows passing button
components as children
  - Added `variant` prop (usable only with `children` prop)
- Added `gutterSize` prop (usable only with `children` and
`variant="default"` prop)
- Updated `EuiButton`, `EuiButtonEmpty` and `EuiButtonIcon` to consume a
`EuiButtonContext` allowing the group to control common props
([elastic#9845](elastic/eui#9845))
- Updated `EuiFlyoutMenu`:
([elastic#9856](elastic/eui#9856))
- Added `leadingActions` and `trailingActions` props, which accept the
new `EuiFlyoutMenuAction` type supporting `toolTipContent` and
`toolTipProps`
  - Changed the history trigger icon to `clockCounter`
  - Added control-group dividers between built-in controls
- Added `onFirst`, `onLast` to `pagination`, which render optional
buttons for jumping to the beginning and end of the list.
- Deprecated additional `EuiIcon` types that are not represented in
Figma ([elastic#9815](elastic/eui#9815))

**Bug fixes**

- Fixed the missing type declaration for the `focusEuiToolTipTrigger`
test helper ([elastic#9870](elastic/eui#9870))
- Fixed generated icon IDs to remain stable during server-side rendering
([elastic#9866](elastic/eui#9866))
- Fixed a visual bug in `EuiButtonGroup` that rendered duplicate borders
on disabled buttons ([elastic#9845](elastic/eui#9845))
- The `EuiFlyoutMenu` history popover now only appears when
`historyItems` has more than one entry. When there is a single entry in
history, only the Back button is shown.
([elastic#9856](elastic/eui#9856))
- Fixed `EuiFlyoutMenu` pagination controls disappearing when
`pagination.total` is `1`; the controls now render (as "1 of 1" with
both Prev/Next disabled) for any `total` of at least `1`
([elastic#9856](elastic/eui#9856))

**Deprecations**

- Deprecated `customActions` and `EuiFlyoutMenuCustomAction` in
`EuiFlyoutMenu`; use `trailingActions` and `EuiFlyoutMenuAction` instead
([elastic#9856](elastic/eui#9856))

**Breaking changes**

- Removed most deprecated `EuiIcon` types and their icon assets. 16
widely-used deprecated aliases (e.g. `alert`, `search`, `visPie`) remain
temporarily and will be removed in a future release
([elastic#9832](elastic/eui#9832))
([elastic#9815](elastic/eui#9815))

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

- Added `EuiDataGridObject` with `rows`, `cell()`, `cells()`,
`doActionOnColumn()` and `openFullScreenMode()`/`closeFullScreenMode()`
([elastic#9874](elastic/eui#9874))
- Added `EuiSuperSelectObject` with `selectOptionByValue()`,
`selectOptionByLabel()` and `getSelectedValue()`
([elastic#9874](elastic/eui#9874))
- Added `EuiGlobalToastListObject` with a `toasts` locator and
`closeAll()` ([elastic#9874](elastic/eui#9874))

---------

Co-authored-by: Lene Gadewoll <[email protected]>
Co-authored-by: kibanamachine <[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.

4 participants