Repository navigation
Conversation
2e2301f to
9e43d36
Compare
0408c23 to
83a28ac
Compare
- additionally connects the new notification icons to the compile-icon script
83a28ac to
f30a6e4
Compare
|
This PR contains breaking changes. The opener of this pull request is asked to perform the following due diligence steps below, to assist EUI in our next Kibana upgrade:
|
There was a problem hiding this comment.
Pull request overview
Updates EuiCallOut to match new notification/callout design specs, including a new internal-only EuiNotificationIcon preset icon component, plus accompanying docs, stories, tests/snapshots, and icon build tooling updates.
Changes:
- Added internal
EuiNotificationIconcomponent + new notification icon SVGs/assets, and updated icon compilation to generate them. - Refactored
EuiCallOutUI/markup and API (addstext+actionProps, removescolor="accent"), and updated stories/tests/docs accordingly. - Adjusted Flyout banner callout usage/styling to align with the updated callout layout.
Reviewed changes
Copilot reviewed 25 out of 53 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/website/docs/components/display/callout.mdx | Updates Callout docs/examples for new text/actionProps API and visual changes |
| packages/eui/src/components/page/page_header/page_header_content.stories.tsx | Updates story callout usage to remove old icon usage |
| packages/eui/src/components/notification_icon/svgs/warning_static.svg | Adds new notification icon SVG source |
| packages/eui/src/components/notification_icon/svgs/info_fill.svg | Adds new notification icon SVG source |
| packages/eui/src/components/notification_icon/notification_icon.tsx | Implements EuiNotificationIcon component and icon mapping |
| packages/eui/src/components/notification_icon/notification_icon.testenv.tsx | Adds Jest testenv mock implementation for notification icon |
| packages/eui/src/components/notification_icon/notification_icon.styles.tsx | Adds styles for notification icon sizing |
| packages/eui/src/components/notification_icon/notification_icon.stories.tsx | Adds internal Storybook story for notification icon |
| packages/eui/src/components/notification_icon/assets/warning_static.tsx | Generated TSX asset for warning icon |
| packages/eui/src/components/notification_icon/assets/info_fill.tsx | Generated TSX asset for info icon |
| packages/eui/src/components/form/snapshots/form.test.tsx.snap | Updates snapshots impacted by callout DOM/visual changes |
| packages/eui/src/components/flyout/flyout.styles.ts | Removes flyout banner callout padding override |
| packages/eui/src/components/flyout/flyout.stories.tsx | Updates flyout banner story to use new EuiCallOut API |
| packages/eui/src/components/flyout/flyout_body.styles.ts | Updates banner styling rules around callouts |
| packages/eui/src/components/call_out/types.ts | Centralizes callout color/size/heading type constants |
| packages/eui/src/components/call_out/call_out.tsx | Refactors callout rendering/layout, adds text + actionProps, updates icon behavior |
| packages/eui/src/components/call_out/call_out.test.tsx | Updates/extends unit tests for new callout behaviors |
| packages/eui/src/components/call_out/call_out.styles.ts | Reworks callout styling/layout (container queries, actions, icon, etc.) |
| packages/eui/src/components/call_out/call_out.stories.tsx | Updates/expands Storybook coverage for new callout variants/features |
| packages/eui/src/components/call_out/call_out_action.tsx | Adds action button rendering helper for callout actions |
| packages/eui/src/components/call_out/snapshots/call_out.test.tsx.snap | Updates callout snapshots for new DOM structure |
| packages/eui/scripts/jest/setup/mocks.js | Adds Jest mock for EuiNotificationIcon |
| packages/eui/scripts/jest/mocks/icon_mock.js | Exports notification icon testenv mocks for tests |
| packages/eui/scripts/compile-icons.js | Extends icon compilation to include notification icon assets |
| packages/eui/package.json | Updates compile-icons script to format notification icon assets too |
| packages/eui/changelogs/upcoming/9642.md | Adds changelog entry for callout UI/API changes |
| packages/docusaurus-theme/src/theme/Admonition/Types.tsx | Updates docs-site admonitions to remove accent and rely on updated callout behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- otherwise block elements would result in line breaks
ek-so
left a comment
There was a problem hiding this comment.
Thanks for the great job Lene, as always! ❤️
acstll
left a comment
There was a problem hiding this comment.
🟢 Went through all steps provided in the QA guidelines (thank you). Everything working as expected!
Left a couple of nits for you to consider. Nothing blocking.
💚 Build Succeeded
History
cc @mgadewoll |
💚 Build SucceededHistory
cc @mgadewoll |
## 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))
Important
This PR merges into a feature branch.
Summary
closes https://github.com/elastic/eui-private/issues/650
This PR updates
EuiCallOutto implement new design specs (Figma).As part of these updates, this PR adds the internal-only
EuiNotificationIconcomponent that defines a preset of specific icons based on a provided type meant to be used specifically for notifications.The assets for
EuiNotificationIconhave been included to be built as part of the EUI scriptcompile-icons.API Changes
EuiCallOutEuiCallOutcoloraccentvariant.EuiCallOuttextEuiCallOutactionPropsEuiNotificationIcon(internal-only component)EuiNotificationIcontypeEuiNotificationIconsize'm' | 'l'sizes.Screenshots
neutralsuccesswarningdangersize="s"msImpact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🔴 High
color="accent". There seem to be no usages of that in Kibana and Cloud-UINote
ℹ️ The update impact depends on the rollout strategy. The current changes are mainly backwards compatible from an API perspective and usages would update automatically. The expectation though is that usages of
childrenshould be migrated to use the new dedicated propstextandactionProps.If we choose to update consumer implementation to move to the new API, the impact will be "High" as there are:
titleprop (but should now)title(does not require updates based on content)colorandiconTypecolorandiconType(should removeiconTypeto use the default icon provided by the component)childrenchildren(requires update to the newactionPropsAPI if we want to ensure correct button sizes, styles and layout positioning)childrenNote
We'll prepare needed consumer updates based on further alignments as part of the common feature branch this PR merges into.
Note
To help with migrating consumers towards the new API, we can introduce ESLint rules in #9684 to flag unexpected usages.
We might check if it makes more sense to add them on Kibana side, after introducing kbn wrappers.
Release Readiness
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
💻 EuiCallOut Storybook
💻 EuiNotificationIcon Storybook
EuiNotificationIconmatches design specsEuiNotificationIcontyperenders different iconsEuiNotificationIconsizerenders icons in different sizesEuiCallOutchanges match design specscolor="accent"can't be appliediconTypeis passed, default icons (EuiNotificationIcon) are rendered that match thecolorsize="s"renders title and text inlinesize="m"renders title and text in separate linesactionPropscan be applied and render primary and secondary action buttonsEuiNotificationIconassets are builtcomponents/notification_icon/assetsyarn workspace @elastic/eui compile-iconsChecklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist