Skip to content

[EuiToast] Update overflow behavior to prevent content being cut off - #9791

Merged
mgadewoll merged 6 commits into
elastic:mainfrom
mgadewoll:toast/fix-overflow
Jul 9, 2026
Merged

mgadewoll merged 6 commits into
elastic:mainfrom
mgadewoll:toast/fix-overflow

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • What: Updated the overflow behavior of EuiToast to prevent content from being cut off
  • Why: As part of the reviews on [EUI] Toast updates kibana#273985, it was noticed that the badge for deduplicated toasts is currently being cut off. This bug is a result of the previous UI updates for toasts.
  • How: Removes overflow:hidden which was only used for preventing the decor element from overflowing. Instead we can separately style the decor element to align with the rest of the toast and to prevent overflows.

Additional changes

  • adds a small border-radius on the progress bar to match design (that seems to have slipped through in the previous update)

API Changes

⚪ No API changes

Screenshots

Before After
Screenshot 2026-07-09 at 13 30 29 Screenshot 2026-07-09 at 13 29 53
Screenshot 2026-07-09 at 13 46 55 Screenshot 2026-07-09 at 13 47 10

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
Due to the style changes, the Emotion class could change in snapshots.

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

  • verify that the toast renders correctly and that the progress bar doesn't overflow (specifically when animationMs is set

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.

… off

- overflow was added mainly for the decor element so instead we can style it separately to align design and behavior
@mgadewoll mgadewoll self-assigned this Jul 9, 2026
@gsoldevila gsoldevila mentioned this pull request Jul 9, 2026
1 of 10 tasks
@snyk-io

snyk-io Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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 EuiToast styling to prevent toast content (notably the deduplication badge) from being visually clipped, by removing overflow: hidden from the toast container and instead constraining only the decor/progress bar area.

Changes:

  • Removed overflow: hidden from the toast root and applied overflow/radius constraints to the decor element instead
  • Added top corner radii to the decor background strip
  • Updated Jest snapshots for the resulting Emotion class changes

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/eui/src/components/toast/toast.styles.ts Moves overflow clipping to the decor strip and tweaks radii for the decor/progress bar
packages/eui/src/components/toast/snapshots/toast.test.tsx.snap Snapshot update for new generated Emotion classnames
packages/eui/src/components/toast/snapshots/global_toast_list.test.tsx.snap Snapshot update for new generated Emotion classnames
packages/eui/changelogs/upcoming/9791.md Changelog entry file included (currently empty)

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

@mgadewoll
mgadewoll force-pushed the toast/fix-overflow branch from 321e8be to c593820 Compare July 9, 2026 12:06
@elastic-vault-github-plugin-prod

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

euitoast (6 differences)

StoryBeforeAfterDiff
kitchen sink desktop
on dismiss desktop
playground desktop
with actions desktop
playground desktop
playground desktop

euisuperdatepicker (2 differences)

StoryBeforeAfterDiff
custom time zone display desktop
quick select only desktop

euipopover (1 difference)

StoryBeforeAfterDiff
playground desktop

euidatagrid (1 difference)

StoryBeforeAfterDiff
compact desktop

@mgadewoll

mgadewoll commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor Author

10 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

The toast related updates are tiny pixel shifts in the icons. Looks unrelated and rather due to rendering differences.
I'll approve and add skip-vrt after.

@elastic-vault-github-plugin-prod

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

euitoast (6 differences)

StoryBeforeAfterDiff
kitchen sink desktop
on dismiss desktop
playground desktop
with actions desktop
playground desktop
playground desktop

euisuperdatepicker (2 differences)

StoryBeforeAfterDiff
custom time zone display desktop
quick select only 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 Jul 9, 2026
@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

euipopover (1 difference)

StoryBeforeAfterDiff
playground desktop

@mgadewoll
mgadewoll force-pushed the toast/fix-overflow branch from 09dd00c to 148b9b9 Compare July 9, 2026 12:45
@mgadewoll mgadewoll removed the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Jul 9, 2026
@mgadewoll

Copy link
Copy Markdown
Contributor Author

buildkite test this

@elastic-vault-github-plugin-prod

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

euitoast (6 differences)

StoryBeforeAfterDiff
kitchen sink desktop
on dismiss desktop
playground desktop
with actions desktop
playground desktop
playground desktop

euisuperdatepicker (2 differences)

StoryBeforeAfterDiff
custom time zone display desktop
quick select only desktop

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 Jul 9, 2026
@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

euipopover (1 difference)

StoryBeforeAfterDiff
playground desktop

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

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

euitoast (12 differences)

StoryBeforeAfterDiff
kitchen sink desktop
kitchen sink mobile
on dismiss desktop
on dismiss mobile
playground desktop
playground mobile
with actions desktop
with actions mobile
playground desktop
playground mobile
playground desktop
playground mobile

euisuperdatepicker (2 differences)

StoryBeforeAfterDiff
custom time zone display desktop
quick select only 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 Jul 9, 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

@mgadewoll
mgadewoll marked this pull request as ready for review July 9, 2026 14:39
@mgadewoll
mgadewoll requested a review from a team as a code owner July 9, 2026 14:39
@weronikaolejniczak
weronikaolejniczak self-requested a review July 9, 2026 14:46
@mgadewoll mgadewoll removed the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Jul 9, 2026

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

LGTM 🟢 thanks for the update, Lene!

@mgadewoll
mgadewoll merged commit 6f4c0d9 into elastic:main Jul 9, 2026
3 checks passed
mgadewoll added a commit to elastic/kibana that referenced this pull request Jul 17, 2026
## Dependency updates

`@elastic/eui` - v116.5.0 ⏩ v117.0.0

## Changes

- removes temporary custom styles in
`src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx`
(added previously in #273985)
- removes custom icon usages passed via `children` on `EuiCallOut` to
prevent duplication (callouts now have internal default icons per type)
- updates tests and snapshots due to `EuiCallOut` changes

## Package updates

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

- Added `EuiIllustration` for rendering SVG illustrations (e.g. from
`@elastic/eui-illustrations`) that respond to the active EUI color mode
([#9779](elastic/eui#9779))
- Added `compressed` prop to `EuiSearchBar` to enable compact display
mode for the search box and filter buttons
([#9743](elastic/eui#9743))
- Added `addToChat` glyph to `EuiIcon`
([#9768](elastic/eui#9768))
- Updated `EuiCallOut`:
([#9642](elastic/eui#9642))
    - Updated component styles
- Added `text` prop on `EuiCallOut` which renders the main, inline
callout description text - use this instead of `children` where possible
- Added `actionProps` prop on `EuiCallOut` which renders primary and
secondary action buttons
- Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to
allow consumers to opt-out of the built-in parse-error tooltip
([#9773](elastic/eui#9773))

**Bug fixes**

- Fixed `EuiToast` cutting off absolute positioned content by removing
`overflow: hidden`. ([#9791](elastic/eui#9791))
- Fixed `EuiFlyout` container-scoped flyouts shrinking below usable
widths for named sizes `s` and `m` by applying minimum width floors
derived from theme breakpoints
([#9787](elastic/eui#9787))
- Fixed `EuiSelectable` with group labels rendering options with stale
heights ([#9770](elastic/eui#9770))

**Breaking changes**

- Removed the `accent` variant for `color` on `EuiCallOut`
([#9642](elastic/eui#9642))
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 5, 2026
## Dependency updates

`@elastic/eui` - v116.5.0 ⏩ v117.0.0

## Changes

- removes temporary custom styles in
`src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx`
(added previously in elastic#273985)
- removes custom icon usages passed via `children` on `EuiCallOut` to
prevent duplication (callouts now have internal default icons per type)
- updates tests and snapshots due to `EuiCallOut` changes

## Package updates

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

- Added `EuiIllustration` for rendering SVG illustrations (e.g. from
`@elastic/eui-illustrations`) that respond to the active EUI color mode
([elastic#9779](elastic/eui#9779))
- Added `compressed` prop to `EuiSearchBar` to enable compact display
mode for the search box and filter buttons
([elastic#9743](elastic/eui#9743))
- Added `addToChat` glyph to `EuiIcon`
([elastic#9768](elastic/eui#9768))
- Updated `EuiCallOut`:
([elastic#9642](elastic/eui#9642))
    - Updated component styles
- Added `text` prop on `EuiCallOut` which renders the main, inline
callout description text - use this instead of `children` where possible
- Added `actionProps` prop on `EuiCallOut` which renders primary and
secondary action buttons
- Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to
allow consumers to opt-out of the built-in parse-error tooltip
([elastic#9773](elastic/eui#9773))

**Bug fixes**

- Fixed `EuiToast` cutting off absolute positioned content by removing
`overflow: hidden`. ([elastic#9791](elastic/eui#9791))
- Fixed `EuiFlyout` container-scoped flyouts shrinking below usable
widths for named sizes `s` and `m` by applying minimum width floors
derived from theme breakpoints
([elastic#9787](elastic/eui#9787))
- Fixed `EuiSelectable` with group labels rendering options with stale
heights ([elastic#9770](elastic/eui#9770))

**Breaking changes**

- Removed the `accent` variant for `color` on `EuiCallOut`
([elastic#9642](elastic/eui#9642))
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