Repository navigation
[Flyouts] Enhancements for Flyout Menu actions - #9856
Conversation
- Update [`packages/eui/src/components/flyout/flyout_menu.tsx`](packages/eui/src/components/flyout/flyout_menu.tsx) with a shared `EuiFlyoutMenuAction` type supporting EUI-standard `toolTipContent` and `toolTipProps`, plus `leadingActions` and `trailingActions` props.
- Keep `customActions` as a deprecated compatibility alias for `trailingActions`; prefer `trailingActions` if both are supplied. Export the new type from [`packages/eui/src/components/flyout/index.ts`](packages/eui/src/components/flyout/index.ts).
- Refactor action rendering so both slots preserve required accessible labels/click behavior and wrap buttons in `EuiToolTip` only when tooltip content is supplied.
- Build an inline-start cluster that renders pagination or back/history first, then `leadingActions`, with logical spacing in [`packages/eui/src/components/flyout/flyout_menu.styles.ts`](packages/eui/src/components/flyout/flyout_menu.styles.ts). This matches the pagination PNG and also allows leading actions without pagination.
- Change the history trigger to `clockCounter` and add a translatable “Recently visited” tooltip, while retaining its accessible history label and popover behavior.
- Extend [`packages/eui/src/components/flyout/use_flyout_menu.ts`](packages/eui/src/components/flyout/use_flyout_menu.ts) so either new action slot counts as meaningful content in automatic display mode.
- Use “control-group divider” in prose and a local `euiFlyoutMenu__divider` style in code. EUI consistently calls these compact vertical lines “dividers”; “rule” is reserved for the horizontal `EuiHorizontalRule`, and there is no reusable `EuiVerticalRule` component or shared vertical-divider mixin.
- Model the styling on the private `dividerStyles` helper in [`packages/eui/src/components/form/form_control_layout/form_control_layout.styles.ts`](packages/eui/src/components/form/form_control_layout/form_control_layout.styles.ts): use a centered, shortened `::before` pseudo-element rather than a full-height border on the action container. Use logical properties, `block-size: ${euiTheme.size.l}`, `pointer-events: none`, and `border-inline-start: ${euiTheme.border.width.thin} solid ${euiTheme.border.color}`.
- Treat the form-control helper as a pattern, not a direct dependency. The explicit short divider in [`packages/eui/src/components/markdown_editor/markdown_editor_toolbar.styles.ts`](packages/eui/src/components/markdown_editor/markdown_editor_toolbar.styles.ts) provides the toolbar sizing/spacing precedent, while [`packages/eui/src/components/button/split_button/split_button.styles.ts`](packages/eui/src/components/button/split_button/split_button.styles.ts) confirms that a border should be used instead of a background so the divider remains visible in Windows high-contrast mode.
- Add dividers only when both adjacent groups exist:
- Between built-in leading controls (pagination or back/history) and `leadingActions`.
- Between effective trailing actions (`trailingActions` or deprecated `customActions`) and the built-in close control, only when the close control is visible.
- Attach the pseudo-element to a conditional boundary style or wrapper rather than adding separator semantics to the DOM. For the trailing boundary, account for the absolutely positioned close button by applying the divider modifier to the existing close spacer/action boundary and preserving enough inline spacing for the close hit area.
- Keep all placement RTL-safe with `inset-inline-*`, `margin-inline-*`, and `border-inline-*`; do not use physical left/right properties. If implementation constraints require a real divider element instead of a pseudo-element, follow the split-button precedent and mark it `aria-hidden="true"` rather than giving a decorative line `role="separator"`.
8 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuiflyout (8 differences)
|
6 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuiflyout (6 differences)
|
…into flyouts/menu-actions-work
6 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuiflyout (6 differences)
|
There was a problem hiding this comment.
Pull request overview
Enhances the EuiFlyoutMenu control bar API and UX, adding first-class leading/trailing action slots with tooltip support, improved pagination controls (including optional jump-to-first/last), and refined history behavior/dividers to better match managed flyout navigation patterns.
Changes:
- Added
leadingActions/trailingActions(with newEuiFlyoutMenuActiontype) and deprecatedcustomActionsas a compatibility alias. - Updated menu rendering logic and managed flyout integration to only show the history popover when there are at least 2 history items, and to keep pagination visible for
total >= 1. - Introduced control-group dividers, new pagination icon overrides/jump controls, and updated docs/stories/tests/changelog accordingly.
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/website/docs/components/containers/flyout/_flyout_menu.mdx | Updates docs example to use trailingActions, documents tooltips/dividers/deprecation and history-popover threshold. |
| packages/website/docs/components/containers/flyout/_flyout_menu_pagination.mdx | Documents pagination behavior and shows leadingActions grouped with pagination. |
| packages/eui/src/components/flyout/use_flyout_menu.ts | Updates “auto” menu-content detection for new action slots, pagination totals, and history threshold. |
| packages/eui/src/components/flyout/use_flyout_menu.test.ts | Adds coverage for new menu-content detection rules (history threshold, actions, pagination totals). |
| packages/eui/src/components/flyout/manager/flyout_manager.stories.tsx | Updates Storybook controls/examples from customActions to trailingActions. |
| packages/eui/src/components/flyout/manager/flyout_managed.tsx | Aligns pagination visibility behavior to total >= 1. |
| packages/eui/src/components/flyout/manager/flyout_managed.test.tsx | Refactors tests to assert forwarded flyoutMenuProps and adds coverage for new manager-derived menu behavior. |
| packages/eui/src/components/flyout/manager/mocks/index.ts | Tightens mock typing for historyItems. |
| packages/eui/src/components/flyout/index.ts | Exports the new EuiFlyoutMenuAction type. |
| packages/eui/src/components/flyout/flyout.test.tsx | Updates tests to trailingActions and adds managed-history popover threshold coverage. |
| packages/eui/src/components/flyout/flyout.stories.tsx | Updates flyout story controls/examples to trailingActions and demonstrates tooltips. |
| packages/eui/src/components/flyout/flyout_menu.tsx | Implements new actions API, tooltips, dividers, pagination enhancements, and history icon/threshold updates. |
| packages/eui/src/components/flyout/flyout_menu.test.tsx | Adds extensive coverage for new actions/tooltips/dividers/pagination/history behavior. |
| packages/eui/src/components/flyout/flyout_menu.styles.ts | Adds styling for dividers and high-contrast behavior; adjusts action alignment. |
| packages/eui/src/components/flyout/flyout_menu.stories.tsx | Expands menu stories into a configurable playground plus prop-based pagination variants. |
| packages/eui/src/components/flyout/const.ts | Adds MIN_HISTORY_ITEMS constant and updates menu display-mode documentation comment. |
| packages/eui/src/components/context_menu/context_menu_item.test.tsx | Stabilizes tooltip-related tests by resetting the tooltip manager and expands assertions. |
| packages/eui/src/components/context_menu/snapshots/context_menu_item.test.tsx.snap | Removes the old tooltip snapshot that no longer matches refactored tests. |
| packages/eui/changelogs/upcoming/9856.md | Adds changelog entry for new flyout menu actions/pagination/history/divider changes and deprecations. |
Suppressed comments (1)
packages/eui/src/components/flyout/flyout_menu.tsx:95
- The JSDoc default for
nextIconTypeis incomplete: whenonFirstoronLastis provided, the implementation switches the default Next icon tochevronSingleRight(unless overridden).
/**
* Icon type for the Next button.
* @default chevronSingleDown
*/
nextIconType?: IconType;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| **Deprecations** | ||
|
|
||
| - Deprecated `customActions` and `EuiFlyoutMenuCustomAction` in `EuiFlyoutMenu`; use `trailingActions` and `EuiFlyoutMenuAction` instead |
There was a problem hiding this comment.
@tsullivan we should add this to our deprecation schedule to be removed, maybe in 3 months?
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuidatagrid (1 difference)
|
Co-authored-by: Weronika Olejniczak <[email protected]>
Co-authored-by: Weronika Olejniczak <[email protected]>
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuidatagrid (1 difference)
|
…into flyouts/menu-actions-work
|
Thanks @weronikaolejniczak !
I will bring this up with Design. Looking back, the documentation indicates we should allow up to 2 registered actions, but the visuals always just show a max of 1.
Noted this in a task for future accessibility review: https://github.com/elastic/kibana-team/issues/3719#issue-4842094256 |
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuidatagrid (1 difference)
|
weronikaolejniczak
left a comment
There was a problem hiding this comment.
LGTM 🟢 Thanks for addressing my comments, Tim!
Usually we don't add i18n token changes on a PR that introduces them but instead on the release PR but I also don't have anything against doing it here.
I'll add a "skip-vrt" label because the failing story is a flake and unrelated.
|
buildkite test this |
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
## 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]>
## 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]>
## 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]>
## 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]>


































Closes #9855
Closes #9304
Summary
What: Follow-up enhancements to the
EuiFlyoutMenucontrol bar:leadingActionsandtrailingActionsslots, accepting the newEuiFlyoutMenuActiontype withtoolTipContent/toolTipPropssupport.leadingActions,trailingActionsvs. the close button).pagination.onFirst/pagination.onLast, which also flips the Prev/Next chevrons to the horizontal axis.clockCounter.customActions/EuiFlyoutMenuCustomActionare deprecated in favor oftrailingActions/EuiFlyoutMenuAction.How / notes for reviewers:
customActionsis kept as a compatibility alias so this can ship in a patch. When both are supplied,trailingActionswins.onFirstoronLastis present, the row reads as a horizontal track, so Prev/Next default tochevronSingleLeft/chevronSingleRight.API Changes
EuiFlyoutMenuleadingActionsEuiFlyoutMenuAction[]rendered at the inline-start of the menu bar, after built-in controls, separated by an automatic dividerEuiFlyoutMenutrailingActionsEuiFlyoutMenuAction[]rendered at the inline-end of the menu bar, before the close buttonEuiFlyoutMenucustomActionstrailingActionsinstead; still honored as an alias, buttrailingActionstakes precedence when both are suppliedEuiFlyoutMenuhistoryItemsEuiFlyoutMenuonFirst/onLastScreenshots
Demos
Flyout.Menu.Pagination.Demo.mp4
Flyout.Menu.History.Navigation.mp4
Flyout.Menu.Dark.Mode.High.Contrast.mp4
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?Impact level: 🟢 None / 🟢 Low / 🟡 Moderate / 🔴 High
Release Readiness
[ ] Migration guide: {steps or link, for breaking/visual changes or deprecations}QA instructions for reviewer
Checklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist