Skip to content

[EuiSteps] Memoize styles - #10187

Merged
tsullivan merged 2 commits into
elastic:mainfrom
Anshuman-Prakash:perf/memoize-steps-styles-10165
Nov 9, 2026
Merged

tsullivan merged 2 commits into
elastic:mainfrom
Anshuman-Prakash:perf/memoize-steps-styles-10165

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Switch the EuiSteps style generators to useEuiMemoizedStyles.

Fixes #10165

Summary

API Changes

component / parent prop / child change description

Screenshots

Before After
{Before image} {After image}

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 / 🟡 Moderate / 🔴 High

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

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.

Switch the EuiSteps style generators to useEuiMemoizedStyles.

Fixes elastic#10165

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually?

@github-actions github-actions Bot added the community contribution (Don't delete - used for automation) label Oct 7, 2026
@Anshuman-Prakash
Anshuman-Prakash marked this pull request as ready for review November 1, 2026 12:16
Copilot AI balanced review requested due to automatic review settings November 1, 2026 12:16
@Anshuman-Prakash
Anshuman-Prakash requested a review from a team as a code owner November 1, 2026 12:16

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.

🟢 Approval recommended

There are no active review issues for the EuiSteps style-memoization changes.

No open issues 🎉

What changed in this PR

Updates EuiSteps components to use useEuiMemoizedStyles, addressing #10165 by avoiding repeated style generation while preserving existing conditional style selection.

Changes:

  • Memoizes step container, content, and title styles.
  • Memoizes horizontal steps and sub-steps styles.
  • Replaces direct theme-hook usage where it is no longer needed.
File Description
packages/​eui/​src/​components/​steps/​sub_steps.tsx Memoizes sub-step styles.
packages/​eui/​src/​components/​steps/​steps_horizontal.tsx Memoizes horizontal list and item styles.
packages/​eui/​src/​components/​steps/​step.tsx Memoizes container, content, and title styles.

Review effort: Balanced

@tsullivan tsullivan self-assigned this Nov 9, 2026
@tsullivan tsullivan added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Nov 9, 2026
@tsullivan

Copy link
Copy Markdown
Member

buildkite test this

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

cc @tsullivan

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

cc @tsullivan

@tsullivan

Copy link
Copy Markdown
Member

@Anshuman-Prakash please remember next time to fill in the PR description templated text.

@tsullivan
tsullivan merged commit 9b29968 into elastic:main Nov 9, 2026
9 checks passed
weronikaolejniczak pushed a commit to boriskirov/eui that referenced this pull request Nov 11, 2026
Co-authored-by: Anshuman Prakash <199287261+Anshuman-Prakash@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution (Don't delete - used for automation) skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Emotion] Memoize EuiSteps styles

3 participants