Repository navigation
[EuiSteps] Memoize styles - #10187
Merged
tsullivan merged 2 commits intoNov 9, 2026
Merged
Conversation
Switch the EuiSteps style generators to useEuiMemoizedStyles. Fixes elastic#10165 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
👋 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? |
Anshuman-Prakash
marked this pull request as ready for review
November 1, 2026 12:16
Contributor
There was a problem hiding this comment.
🟢 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
Member
|
buildkite test this |
💚 Build Succeeded
cc @tsullivan |
💚 Build Succeeded
cc @tsullivan |
Member
|
@Anshuman-Prakash please remember next time to fill in the PR description templated text. |
tsullivan
approved these changes
Nov 9, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch the EuiSteps style generators to useEuiMemoizedStyles.
Fixes #10165
Summary
API Changes
Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 None / 🟢 Low / 🟡 Moderate / 🔴 High
Release Readiness
QA instructions for reviewer
Checklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist