Skip to content

[EuiBanner] Adjust additional content spacing - #9700

Merged
mgadewoll merged 4 commits into
elastic:mainfrom
mgadewoll:banner/adjust-additional-content-spacing
Jun 3, 2026
Merged

mgadewoll merged 4 commits into
elastic:mainfrom
mgadewoll:banner/adjust-additional-content-spacing

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR updates EuiBanner, adding additional vertical spacing around additional content.
This has been aligned with @ek-so on design side.

API Changes

⚪ No API changes

Screenshots

Before After
Screenshot 2026-06-01 at 18 00 29 Screenshot 2026-06-01 at 18 00 32

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

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

💻 EuiBanner kitchen sink storybook

  • verify that additional content passed via children prop has additional spacing when text is present (resulting in 12px spacing between text and additional content)
  • verify that additional content passed via children prop does NOT have additional spacing when text is not present (resulting in 4px spacing)

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 Jun 1, 2026
@mgadewoll
mgadewoll force-pushed the banner/adjust-additional-content-spacing branch from 5c52478 to cfea708 Compare June 2, 2026 05:39
@mgadewoll
mgadewoll requested a review from Copilot June 2, 2026 05:40

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 adjusts EuiBanner styling to add extra vertical spacing between the banner text and any additional content passed via children, and updates Storybook/VRT coverage plus snapshots/changelog accordingly.

Changes:

  • Added size m-specific CSS to increase spacing after the banner text when children are present.
  • Updated Storybook stories to include a dedicated children story and a VRT-only “kitchen sink” story to validate spacing combinations.
  • Updated Jest snapshot and added a changelog entry for the visual change.

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/eui/src/components/banner/banner.tsx Minor formatting-only change near children render.
packages/eui/src/components/banner/banner.styles.ts Introduces new spacing rule after .euiText for size m.
packages/eui/src/components/banner/banner.stories.tsx Adds/renames stories to validate children spacing (incl. VRT-only kitchen sink).
packages/eui/src/components/banner/snapshots/banner.test.tsx.snap Updates snapshot due to CSS/emotion class changes.
packages/eui/changelogs/upcoming/9700.md Adds changelog note for the spacing adjustment.

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

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll
mgadewoll marked this pull request as ready for review June 2, 2026 06:21
@mgadewoll
mgadewoll requested a review from a team as a code owner June 2, 2026 06:21
@acstll
acstll self-requested a review June 2, 2026 07:06

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

🟢 Followed QA instructions, everything working as expected. Code also LGTM. Thank you @mgadewoll

@mgadewoll
mgadewoll merged commit 889cadf into elastic:main Jun 3, 2026
2 checks passed
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]>
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