Repository navigation
[EuiBanner] Remove render condition for secondary actions - #9713
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates EuiBanner to allow rendering a secondary action without requiring a primary action, shifting enforcement of “paired actions” expectations to consumers instead of EUI.
Changes:
- Loosens
EuiBanneraction rendering logic so eitheractionProps.primaryoractionProps.secondarywill render the actions container. - Updates unit tests to assert standalone secondary actions render.
- Updates component docs and adds a changelog entry to reflect the behavior change.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/website/docs/components/display/banner.mdx | Updates docs copy around action rendering behavior. |
| packages/eui/src/components/banner/banner.tsx | Adjusts hasActions condition to allow standalone secondary actions. |
| packages/eui/src/components/banner/banner.test.tsx | Updates tests to expect standalone secondary actions to render. |
| packages/eui/changelogs/upcoming/9713.md | Adds changelog entry for the behavior change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Collaborator
💚 Build Succeeded
History
cc @mgadewoll |
Collaborator
💚 Build SucceededHistory
cc @mgadewoll |
mgadewoll
marked this pull request as ready for review
June 5, 2026 06:49
acstll
approved these changes
Jun 5, 2026
weronikaolejniczak
added a commit
to elastic/kibana
that referenced
this pull request
Jul 2, 2026
## Dependency updates `@elastic/eui` - v116.3.1 ⏩ v116.5.0 ## Package updates ### `@elastic/eui` [v116.5.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `logoVectorDB` icon glyph ([#9758](elastic/eui#9758)) - Updated logo glyphs to use pure white in dark mode ([#9758](elastic/eui#9758)) ### `@elastic/eui` [v116.4.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `pagination` prop to `EuiFlyoutMenuProps` (`EuiFlyoutMenuPagination`) that renders Previous/Next navigation buttons and a position counter in the flyout menu bar. When provided, the back button is hidden — pagination and back button are mutually exclusive. ([#9726](elastic/eui#9726)) - Added `setPagination(flyoutId, pagination)` to the flyout manager store (`getFlyoutManagerStore()`) and `setPaginationAction` action creator. Calling `setPagination` overrides any declarative `flyoutMenuProps.pagination` and re-renders the menu bar reactively across React roots — useful for imperatively opened flyouts that mount in a separate root and can't update props through normal React reconciliation. ([#9726](elastic/eui#9726)) - Added `useFlyoutPagination(flyoutId)` selector hook that returns the manager-level pagination override for a flyout, if any. ([#9726](elastic/eui#9726)) - Added a new optional `panelled` prop (boolean, defaults to `false`) to `EuiInMemoryTable` and `EuiBasicTable` that enables the panelled layout ([#9717](elastic/eui#9717)) - Added `useEuiBasicTablePanelProps` utility hook that provides props and styles necessary to create custom table panels such as toolbars ([#9717](elastic/eui#9717)) - Added an optional `meta` argument to `EuiFlyout`'s `onClose` callback (`onClose(event, { reason })`) describing why the flyout closed: `'close-button'`, `'escape'`, `'outside-click'`, and, for managed flyouts, `'navigation-back'` (Back button) or `'navigation-cascade'` (parent navigated away / main flyout closed) ([#9716](elastic/eui#9716)) - Updated `EuiBanner` by removing the render condition for secondary actions ([#9713](elastic/eui#9713)) - Updated `EuiBanner` to adjust spacing for content passed via the `children` prop ([#9700](elastic/eui#9700)) - Updated `EuiToast` styles ([#9688](elastic/eui#9688)) - Added `text` prop on `EuiToast` which renders the main text. Use this instead of `children` where possible. ([#9688](elastic/eui#9688)) - Added `actionProps` prop on `EuiToast` which renders primary and secondary action buttons. ([#9688](elastic/eui#9688)) - Added `animationMs` prop on `EuiToast`. If set it'll render a reverse loading bar. ([#9688](elastic/eui#9688)) - Added `showNotificationBadge` prop on `EuiGlobalToastList` to optionally show a badge indicating the toast list length. ([#9688](elastic/eui#9688)) --------- Co-authored-by: Weronika Olejniczak <[email protected]>
MykhailoKondrat
pushed a commit
to MykhailoKondrat/kibana
that referenced
this pull request
Jul 2, 2026
## Dependency updates `@elastic/eui` - v116.3.1 ⏩ v116.5.0 ## Package updates ### `@elastic/eui` [v116.5.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `logoVectorDB` icon glyph ([elastic#9758](elastic/eui#9758)) - Updated logo glyphs to use pure white in dark mode ([elastic#9758](elastic/eui#9758)) ### `@elastic/eui` [v116.4.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `pagination` prop to `EuiFlyoutMenuProps` (`EuiFlyoutMenuPagination`) that renders Previous/Next navigation buttons and a position counter in the flyout menu bar. When provided, the back button is hidden — pagination and back button are mutually exclusive. ([elastic#9726](elastic/eui#9726)) - Added `setPagination(flyoutId, pagination)` to the flyout manager store (`getFlyoutManagerStore()`) and `setPaginationAction` action creator. Calling `setPagination` overrides any declarative `flyoutMenuProps.pagination` and re-renders the menu bar reactively across React roots — useful for imperatively opened flyouts that mount in a separate root and can't update props through normal React reconciliation. ([elastic#9726](elastic/eui#9726)) - Added `useFlyoutPagination(flyoutId)` selector hook that returns the manager-level pagination override for a flyout, if any. ([elastic#9726](elastic/eui#9726)) - Added a new optional `panelled` prop (boolean, defaults to `false`) to `EuiInMemoryTable` and `EuiBasicTable` that enables the panelled layout ([elastic#9717](elastic/eui#9717)) - Added `useEuiBasicTablePanelProps` utility hook that provides props and styles necessary to create custom table panels such as toolbars ([elastic#9717](elastic/eui#9717)) - Added an optional `meta` argument to `EuiFlyout`'s `onClose` callback (`onClose(event, { reason })`) describing why the flyout closed: `'close-button'`, `'escape'`, `'outside-click'`, and, for managed flyouts, `'navigation-back'` (Back button) or `'navigation-cascade'` (parent navigated away / main flyout closed) ([elastic#9716](elastic/eui#9716)) - Updated `EuiBanner` by removing the render condition for secondary actions ([elastic#9713](elastic/eui#9713)) - Updated `EuiBanner` to adjust spacing for content passed via the `children` prop ([elastic#9700](elastic/eui#9700)) - Updated `EuiToast` styles ([elastic#9688](elastic/eui#9688)) - Added `text` prop on `EuiToast` which renders the main text. Use this instead of `children` where possible. ([elastic#9688](elastic/eui#9688)) - Added `actionProps` prop on `EuiToast` which renders primary and secondary action buttons. ([elastic#9688](elastic/eui#9688)) - Added `animationMs` prop on `EuiToast`. If set it'll render a reverse loading bar. ([elastic#9688](elastic/eui#9688)) - Added `showNotificationBadge` prop on `EuiGlobalToastList` to optionally show a badge indicating the toast list length. ([elastic#9688](elastic/eui#9688)) --------- Co-authored-by: Weronika Olejniczak <[email protected]>
patrykkopycinski
pushed a commit
to patrykkopycinski/kibana
that referenced
this pull request
Aug 5, 2026
## Dependency updates `@elastic/eui` - v116.3.1 ⏩ v116.5.0 ## Package updates ### `@elastic/eui` [v116.5.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `logoVectorDB` icon glyph ([elastic#9758](elastic/eui#9758)) - Updated logo glyphs to use pure white in dark mode ([elastic#9758](elastic/eui#9758)) ### `@elastic/eui` [v116.4.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `pagination` prop to `EuiFlyoutMenuProps` (`EuiFlyoutMenuPagination`) that renders Previous/Next navigation buttons and a position counter in the flyout menu bar. When provided, the back button is hidden — pagination and back button are mutually exclusive. ([elastic#9726](elastic/eui#9726)) - Added `setPagination(flyoutId, pagination)` to the flyout manager store (`getFlyoutManagerStore()`) and `setPaginationAction` action creator. Calling `setPagination` overrides any declarative `flyoutMenuProps.pagination` and re-renders the menu bar reactively across React roots — useful for imperatively opened flyouts that mount in a separate root and can't update props through normal React reconciliation. ([elastic#9726](elastic/eui#9726)) - Added `useFlyoutPagination(flyoutId)` selector hook that returns the manager-level pagination override for a flyout, if any. ([elastic#9726](elastic/eui#9726)) - Added a new optional `panelled` prop (boolean, defaults to `false`) to `EuiInMemoryTable` and `EuiBasicTable` that enables the panelled layout ([elastic#9717](elastic/eui#9717)) - Added `useEuiBasicTablePanelProps` utility hook that provides props and styles necessary to create custom table panels such as toolbars ([elastic#9717](elastic/eui#9717)) - Added an optional `meta` argument to `EuiFlyout`'s `onClose` callback (`onClose(event, { reason })`) describing why the flyout closed: `'close-button'`, `'escape'`, `'outside-click'`, and, for managed flyouts, `'navigation-back'` (Back button) or `'navigation-cascade'` (parent navigated away / main flyout closed) ([elastic#9716](elastic/eui#9716)) - Updated `EuiBanner` by removing the render condition for secondary actions ([elastic#9713](elastic/eui#9713)) - Updated `EuiBanner` to adjust spacing for content passed via the `children` prop ([elastic#9700](elastic/eui#9700)) - Updated `EuiToast` styles ([elastic#9688](elastic/eui#9688)) - Added `text` prop on `EuiToast` which renders the main text. Use this instead of `children` where possible. ([elastic#9688](elastic/eui#9688)) - Added `actionProps` prop on `EuiToast` which renders primary and secondary action buttons. ([elastic#9688](elastic/eui#9688)) - Added `animationMs` prop on `EuiToast`. If set it'll render a reverse loading bar. ([elastic#9688](elastic/eui#9688)) - Added `showNotificationBadge` prop on `EuiGlobalToastList` to optionally show a badge indicating the toast list length. ([elastic#9688](elastic/eui#9688)) --------- Co-authored-by: Weronika Olejniczak <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes a previously added render condition for secondary actions. Instead of strictly defining the render conditions in EUI, we rather keep it flexible and enforce expected product-level requirements on consumer side as needed (e.g. via consumer wrappers or ESLint rules).
API Changes
⚪ No API changes
Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 None
Release Readiness
Documentation: {link to docs page(s)}Figma: {link to Figma or issue}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
Checklist before marking Ready for Review
QA: Tested in CodeSandbox and [Kibana](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/testing-in-kibana.md)breaking changelabel (if applicable)Reviewer checklist