Repository navigation
[EuiToast] Update overflow behavior to prevent content being cut off - #9791
Conversation
… off - overflow was added mainly for the decor element so instead we can style it separately to align design and behavior
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
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: hiddenfrom 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.
321e8be to
c593820
Compare
10 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuitoast (6 differences)
euisuperdatepicker (2 differences)
euipopover (1 difference)
euidatagrid (1 difference)
|
The toast related updates are tiny pixel shifts in the icons. Looks unrelated and rather due to rendering differences. |
8 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuitoast (6 differences)
euisuperdatepicker (2 differences)
|
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuipopover (1 difference)
|
09dd00c to
148b9b9
Compare
|
buildkite test this |
9 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuitoast (6 differences)
euisuperdatepicker (2 differences)
euidatagrid (1 difference)
|
1 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuipopover (1 difference)
|
14 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuitoast (12 differences)
euisuperdatepicker (2 differences)
|
💚 Build Succeeded
History
cc @mgadewoll |
💚 Build Succeeded
History
cc @mgadewoll |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
LGTM 🟢 thanks for the update, Lene!
## 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))
## 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))
















































Summary
EuiToastto prevent content from being cut offoverflow:hiddenwhich 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
border-radiuson the progress bar to match design (that seems to have slipped through in the previous update)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 - 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
animationMsis setChecklist before marking Ready for Review
QA: Tested docs changesbreaking changelabel (if applicable)Reviewer checklist