Skip to content

EuiHeaderLogo new logoType prop - #9875

Open
JoseLuisGJ wants to merge 17 commits into
elastic:mainfrom
JoseLuisGJ:EuiHeaderLogo_new-logoType_prop
Open

EuiHeaderLogo new logoType prop#9875
JoseLuisGJ wants to merge 17 commits into
elastic:mainfrom
JoseLuisGJ:EuiHeaderLogo_new-logoType_prop

Conversation

@JoseLuisGJ

@JoseLuisGJ JoseLuisGJ commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • What: Refactored EuiHeaderLogo to support a new logoType API that switches between the Elastic glyph logo and a new horizontal full-wordmark logo. Added a dedicated inline SVG component for the horizontal logo and updated stories/tests/snapshots accordingly.
  • Why: Improve header logo flexibility for consumers that need either icon-only branding or full horizontal branding in the same component API. We previously were rendering the "elastic" trademark using plain text which was not aligned with the brand guidelines as described here: [EuiHeaderLogo] Change the graphic to include text #8904 and Fix the Elastic logo in Kibana kibana#174792
  • How:
    • Added logoType?: 'glyph' | 'horizontal' to EuiHeaderLogo in sync with the naming convention if Elastic branding.
    • Removed custom children content rendering path and made glyph mode explicitly render Elastic glyph.
    • Added new SvgElasticLogoFull inline SVG and render path when logoType="horizontal".
    • Updated styling and tests to align with the new rendering behavior.
    • Kept SVG inline so theme-driven styling can be applied directly to SVG elements.

API Changes

component / parent prop / child change description
EuiHeaderLogo logoType Added New prop to choose logo variant: glyph (default) or horizontal.
EuiHeaderLogo iconType Removed Consumers can no longer pass arbitrary icon types; glyph mode now always renders Elastic glyph.
EuiHeaderLogo children Removed Text child rendering next to the logo has been removed.
EuiHeaderLogo iconTitle Behavior Still used for accessibility labeling; now also used as SVG title in horizontal mode.

Screenshots

Before After
EuiHeaderLogo with glyph + optional text/custom icon behavior EuiHeaderLogo with explicit logoType="glyph" or logoType="horizontal"
CleanShot 2026-08-07 at 10 25 36@2x CleanShot 2026-08-07 at 10 28 04@2x

Docs

CleanShot 2026-08-11 at 09 26 40@2x

Impact Assessment

Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.

  • 🔴 Breaking changesiconType and children were removed from EuiHeaderLogo. Any consumer using custom icon types or inline text content will need updates.
  • 💅 Visual changes — Header logo rendering changed and introduces a horizontal logo mode. Visual validation needed in header contexts.
  • 🧪 Test impact — Snapshot and component tests updated due to changed structure/behavior.
  • 🔧 Hard to integrate — No staged Kibana integration link yet.

Impact level: 🟡 Moderate

Release Readiness

  • Documentation: Add/update docs for EuiHeaderLogo new logoType prop and removed iconType/children.
  • Figma: Link to design reference for horizontal logo usage (or issue).
  • Migration guide:
    • Replace iconType usage with logoType where applicable.
    • Replace text-child usage with adjacent layout/content outside EuiHeaderLogo.
    • Use logoType="horizontal" where full wordmark is desired.
  • Adoption plan (new features): Confirm Kibana header consumers and affected plugin surfaces.

QA instructions for reviewer

  • Open EuiHeaderLogo stories in Storybook.
  • Validate logoType="glyph" still renders expected Elastic glyph size and alignment.
  • Validate logoType="horizontal" renders the new full logo at expected dimensions.
  • Verify light and dark mode readability/contrast for both logo types.
  • Verify accessibility:
    • iconTitle is announced correctly in glyph and horizontal modes.
    • No duplicated/conflicting accessible names.
  • Verify link behavior remains unchanged:
    • href, rel, target, secure rel behavior.
    • Invalid href still sanitized.
  • Run and verify updated tests/snapshots for header logo.

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.

@JoseLuisGJ JoseLuisGJ linked an issue Aug 7, 2026 that may be closed by this pull request
@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

euiheader (8 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
elastic navigation pattern mobile
playground desktop
playground mobile
with text desktop
with text mobile

euicollapsiblenav (2 differences)

StoryBeforeAfterDiff
full header pattern desktop
full header pattern mobile

@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

euiheader (3 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop

euidatagrid (11 differences)

StoryBeforeAfterDiff
expanded mobile
auto below line count desktop
auto below line count mobile
custom line height control column desktop
custom line height control column mobile
custom line height desktop
custom line height mobile
custom row heights mobile
line count 1 mobile
additional controls options desktop
full screen toggle desktop

@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

euiheader (3 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop

euidatagrid (11 differences)

StoryBeforeAfterDiff
expanded mobile
auto below line count desktop
auto below line count mobile
custom line height control column desktop
custom line height control column mobile
custom line height desktop
custom line height mobile
custom row heights mobile
line count 1 mobile
additional controls options desktop
full screen toggle desktop

@elastic-vault-github-plugin-prod

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

euiheader (3 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop

euidatagrid (10 differences)

StoryBeforeAfterDiff
compact desktop
expanded mobile
minimal mobile
auto below line count desktop
custom line height control column desktop
custom line height desktop
custom row heights desktop
additional controls options mobile
full screen toggle desktop
full screen toggle mobile

@JoseLuisGJ

Copy link
Copy Markdown
Contributor Author

Hey @weronikaolejniczak I'd like to get your help on this. I decided to conditionally render either an EuiIcon or embedded SVG to display the glyph logo or the full logo.

{logoType === 'glyph' && (
        <EuiIcon
          aria-label={iconTitle}
          className="euiHeaderLogo__icon"
          size="l"
          type={iconType}
        />
      )}
      {logoType === 'horizontal' && (
        <SvgElasticLogoFull
          title={iconTitle}
          style={{ maxHeight: euiTheme.size.l, width: 'auto' }}
          className="euiHeaderLogo__image"
        />
      )}

The EuiIcon constrains the size to always a box container.

And it changes based on the theme applied as shown here:

CleanShot 2026-08-07 at 15 59 17 CleanShot 2026-08-07 at 15 58 15

But when we force the EuiHeader with theme={"dark"} looks like it doesn't affect the EuiHeraderLogo content and doesn't force it to behave like always dark as I'd expect:

CleanShot 2026-08-07 at 15 59 47

@weronikaolejniczak

weronikaolejniczak commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@JoseLuisGJ we'd need to make the SVG use currentColor instead of euiTheme.colors.textParagraph and then in the styles we should do:

.euiHeaderLogo__text,
.euiHeaderLogo__image,   // <- add this
.euiHeaderLink,
.euiHeaderSectionItemButton {
  color: ${euiTheme.colors.textGhost};
}

The header deliberately doesn't use EuiThemeProvider colorMode="dark" so that popovers are not affected so it uses CSS cascade instead.

@weronikaolejniczak

Copy link
Copy Markdown
Contributor

@JoseLuisGJ we'd need to make the SVG use currentColor instead of euiTheme.colors.textParagraph and then in the styles we should do:

.euiHeaderLogo__text,
.euiHeaderLogo__image,   // <- add this
.euiHeaderLink,
.euiHeaderSectionItemButton {
  color: ${euiTheme.colors.textGhost};
}

The header deliberately doesn't use EuiThemeProvider colorMode="dark" so that popovers are not affected so it uses CSS cascade instead.

@JoseLuisGJ
JoseLuisGJ marked this pull request as ready for review August 11, 2026 08:00
@JoseLuisGJ
JoseLuisGJ requested a review from a team as a code owner August 11, 2026 08:00
Copilot AI lite review requested due to automatic review settings August 11, 2026 08:00
@JoseLuisGJ

Copy link
Copy Markdown
Contributor Author

Thanks @weronikaolejniczak now it also applies properly the theme dark to the header in Docs:

CleanShot 2026-08-11 at 10 01 38

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 updates EuiHeaderLogo to support a new logoType prop that switches between the existing Elastic glyph and a new inline horizontal full-wordmark SVG, and updates EUI docs/stories/tests to reflect the new usage.

Changes:

  • Added a new logoType?: 'glyph' | 'horizontal' API and horizontal SVG render path for EuiHeaderLogo
  • Introduced an inline SvgElasticLogoFull component and updated styling for dark headers
  • Updated Storybook stories, a11y example, docs examples, and Jest snapshots for the new output

Reviewed changes

Copilot reviewed 12 out of 63 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/website/docs/components/layout/header.mdx Updates documentation examples to use logoType="horizontal" and removes iconType/children usage.
packages/eui/src/components/header/header.styles.ts Ensures dark header styling applies to the new horizontal logo element class.
packages/eui/src/components/header/header.stories.tsx Updates header stories to stop passing iconType/children and demonstrate horizontal logo usage.
packages/eui/src/components/header/header.a11y.tsx Updates the header a11y example to no longer pass iconType.
packages/eui/src/components/header/header_logo/header_logo.tsx Implements the logoType switch and renders the new horizontal SVG variant.
packages/eui/src/components/header/header_logo/header_logo.test.tsx Updates unit tests to reflect new rendering behavior and adds an iconType legacy assertion.
packages/eui/src/components/header/header_logo/header_logo.styles.ts Removes text styling now that text children rendering is removed.
packages/eui/src/components/header/header_logo/header_logo.stories.tsx Updates stories to demo glyph vs horizontal variants.
packages/eui/src/components/header/header_logo/elastic_logo_full.tsx Adds the new inline horizontal full-wordmark SVG component.
packages/eui/src/components/header/header_logo/snapshots/header_logo.test.tsx.snap Updates snapshots for the new rendered markup (now includes the inline SVG).
packages/eui/src/components/collapsible_nav/collapsible_nav.stories.tsx Updates an example to use the horizontal logo variant.
packages/eui/changelogs/upcoming/9875.md Adds a changelog entry describing the new logoType prop.
Suppressed comments (1)

packages/eui/src/components/header/header_logo/header_logo.test.tsx:56

  • renders optional props now snapshots the entire inline horizontal SVG, which makes the snapshot very large and brittle (minor SVG output changes will cause big diffs). Consider replacing the snapshot with targeted assertions (e.g. .euiHeaderLogo__image exists, a <title> contains iconTitle, and styles are applied), and deleting/updating the corresponding snapshot entry.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/eui/src/components/header/header_logo/header_logo.stories.tsx Outdated
Comment thread packages/eui/src/components/header/header_logo/elastic_logo_full.tsx Outdated
Comment thread packages/eui/src/components/header/header_logo/elastic_logo_full.tsx Outdated
Comment thread packages/eui/src/components/header/header_logo/header_logo.tsx
Comment thread packages/eui/changelogs/upcoming/9875.md Outdated
@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euiform (7 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euidatagrid (6 differences)

StoryBeforeAfterDiff
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile

@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euiform (7 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euidatagrid (6 differences)

StoryBeforeAfterDiff
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile

@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euiform (7 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euidatagrid (6 differences)

StoryBeforeAfterDiff
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile

@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euiform (7 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euidatagrid (7 differences)

StoryBeforeAfterDiff
compact desktop
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile

@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euibadge (5 differences)

StoryBeforeAfterDiff
custom colors desktop
dark mode desktop
high contrast mode desktop
kitchen sink desktop
playground desktop

euicallout (9 differences)

StoryBeforeAfterDiff
kitchen sink custom children mobile
kitchen sink high contrast mobile
kitchen sink mobile
playground mobile
with actions mobile
with custom children mobile
with popover mobile
with tooltips mobile
wrapper kitchen sink mobile

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euitour (1 difference)

StoryBeforeAfterDiff
playground mobile

euicombobox (1 difference)

StoryBeforeAfterDiff
custom matcher mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euifiltergroup (3 differences)

StoryBeforeAfterDiff
multiple popovers desktop
playground desktop
with popover desktop

euiform (8 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile
playground mobile

euirange (7 differences)

StoryBeforeAfterDiff
dark mode mobile
high contrast mobile
input mobile
input with popover mobile
levels mobile
ticks mobile
value tooltip mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euilistitemlayout (10 differences)

StoryBeforeAfterDiff
custom content mobile
external link mobile
extra action and tooltip props mobile
extra action mobile
kitchen sink mobile
playground mobile
role mobile
text wrap mobile
tooltip props mobile
truncation mobile

euibottombar (1 difference)

StoryBeforeAfterDiff
playground desktop

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euiinputpopover (3 differences)

StoryBeforeAfterDiff
anchor position desktop
interactive children desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euisidenav (2 differences)

StoryBeforeAfterDiff
mobile side nav mobile
playground mobile

euidatagrid (6 differences)

StoryBeforeAfterDiff
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euiinmemorytable (2 differences)

StoryBeforeAfterDiff
kitchen sink desktop
panelled desktop

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euiprovider (2 differences)

StoryBeforeAfterDiff
playground desktop
system defaults desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile Buildkite annotation for the full diff.

@weronikaolejniczak

Copy link
Copy Markdown
Contributor

@JoseLuisGJ could you rebase onto main? This should fix the weird VRTs.

@elastic-vault-github-plugin-prod

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

euiaspectratio (1 difference)

StoryBeforeAfterDiff
playground desktop

euilistgroup (2 differences)

StoryBeforeAfterDiff
kitchen sink mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground mobile

euiexpression (3 differences)

StoryBeforeAfterDiff
high contrast mobile
kitchen sink mobile
playground mobile

euiform (7 differences)

StoryBeforeAfterDiff
append prepend api kitchen sink mobile
append prepend mobile
form control button kitchensink mobile
form control button mobile
high contrast dark mode mobile
high contrast mobile
playground mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground desktop

euiheader (4 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
playground desktop

euipage (1 difference)

StoryBeforeAfterDiff
playground desktop

euicontextmenu (3 differences)

StoryBeforeAfterDiff
external link mobile
layout align mobile
playground mobile

euidatagrid (6 differences)

StoryBeforeAfterDiff
auto below line count desktop
auto below line count mobile
custom line height mobile
additional controls options desktop
additional controls options mobile
full screen toggle mobile

euitable (1 difference)

StoryBeforeAfterDiff
playground desktop

euithemeprovider (4 differences)

StoryBeforeAfterDiff
css variables global mobile
css variables nearest mobile
dark mode mobile
high contrast mode mobile

@weronikaolejniczak
weronikaolejniczak force-pushed the EuiHeaderLogo_new-logoType_prop branch from 54bd25e to 3282530 Compare August 12, 2026 14:49

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

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.

Suppressed comments (3)

packages/eui/src/components/header/header_logo/header_logo.tsx:28

  • Removing iconType from the public props leaves an existing repository usage at packages/website/docs/components/display/progress.mdx:181-185 passing iconType="logoKibana". That example now uses an invalid prop and, at runtime, silently renders the Elastic glyph instead of the Kibana logo. Update that example as part of this API migration.
export type EuiHeaderLogoProps = CommonProps &
  Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> & {
    href?: string;

packages/eui/src/components/header/header_logo/header_logo.stories.tsx:41

  • This story still appears in Storybook as “With Text”, although the changed API removes text children and the story now demonstrates the horizontal logo. Rename it to Horizontal so the story does not imply that text content remains supported.
  args: {
    logoType: 'horizontal',

packages/eui/changelogs/upcoming/9875.md:1

  • This entry is formatted only as an addition and omits the removal of iconType, even though this PR removes both iconType and children. The changelog template records removals under **Breaking changes** (packages/eui/changelogs/upcoming/_template.md:11-13); document both removals there so consumers receive complete migration information.
- Added new `logoType` prop to the `EuiHeaderLogo` component to render either the `glyph` or `horizontal` Elastic logo versions. `children` text content is no longer rendered.

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

@weronikaolejniczak

Copy link
Copy Markdown
Contributor

Copilot's suppressed comments in: #9875 (review) are actually worth tackling

@elastic-vault-github-plugin-prod

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

euicomment (2 differences)

StoryBeforeAfterDiff
high contrast mobile
playground mobile

euidroppable (2 differences)

StoryBeforeAfterDiff
clone draggables mobile
playground mobile

euipinnablelistgroup (1 difference)

StoryBeforeAfterDiff
playground mobile

euitimeline (2 differences)

StoryBeforeAfterDiff
high contrast mobile
playground mobile

euititle (1 difference)

StoryBeforeAfterDiff
playground desktop

euicolorpicker (4 differences)

StoryBeforeAfterDiff
high contrast dark mode desktop
high contrast desktop
inline with all elements desktop
playground desktop

euiform (2 differences)

StoryBeforeAfterDiff
playground desktop
playground desktop

euiradiogroup (2 differences)

StoryBeforeAfterDiff
high contrast desktop
playground desktop

euiselectable (4 differences)

StoryBeforeAfterDiff
playground mobile
single selection mobile
text wrap mobile
truncate mobile

euisuperdatepicker (9 differences)

StoryBeforeAfterDiff
custom quick select panel mobile
custom time zone display mobile
overflowing children mobile
playground mobile
quick select only mobile
restricted range mobile
time window buttons compressed mobile
time window buttons mobile
time window buttons with zoom in mobile

euiconfirmmodal (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflexitem (1 difference)

StoryBeforeAfterDiff
playground mobile

euiflyout (1 difference)

StoryBeforeAfterDiff
playground mobile

euiheader (11 differences)

StoryBeforeAfterDiff
dark theme with sitewide search desktop
dark theme with sitewide search mobile
elastic navigation pattern desktop
elastic navigation pattern mobile
high contrast mobile
playground mobile
playground desktop
playground mobile
with text desktop
with text mobile
playground desktop

euiinputpopover (3 differences)

StoryBeforeAfterDiff
anchor position desktop
interactive children desktop
playground desktop

euipopover (4 differences)

StoryBeforeAfterDiff
high contrast mode desktop
panel padding size desktop
playground desktop
playground mobile

euicollapsiblenav (3 differences)

StoryBeforeAfterDiff
full header pattern desktop
full header pattern mobile
playground mobile

euisteps (2 differences)

StoryBeforeAfterDiff
high contrast mobile
playground mobile

euidatagrid (8 differences)

StoryBeforeAfterDiff
compact mobile
expanded mobile
horizontal lines mobile
minimal mobile
playground mobile
row classes mobile
full screen toggle desktop
full screen toggle mobile

euiautosizer (1 difference)

StoryBeforeAfterDiff
playground desktop

euioutsideclickdetector (1 difference)

StoryBeforeAfterDiff
playground desktop

@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Aug 12, 2026

Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

History

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.

[EuiHeaderLogo] Change the graphic to include text

3 participants