Skip to content

[EuiPageTemplate] Memoize inner page styles - #10207

Draft
vianmangal wants to merge 1 commit into
elastic:mainfrom
vianmangal:fix/10159-page-template-memoized-styles
Draft

vianmangal wants to merge 1 commit into
elastic:mainfrom
vianmangal:fix/10159-page-template-memoized-styles

Conversation

@vianmangal

Copy link
Copy Markdown
Contributor

Summary

Fixes #10159.

Use useEuiMemoizedStyles(euiPageInnerStyles) in page_inner.tsx so page-template instances share generated styles within a theme. Remove the theme hook that was only used to call the generator. This changes one component file; the existing style generator and responsive border selection stay unchanged.

Kept as a draft pending maintainer feedback on the proposed scope.

API Changes

None.

Screenshots

Not applicable: no intended visual changes. Existing snapshots pass unchanged.

Impact Assessment

Impact level: 🟢 Low — internal performance optimization. No expected changes to public props, layout, padding, panel styling, or responsive behavior.

Release Readiness

Documentation, Figma, migration guide, and adoption plan are not applicable. No changelog, as requested in the issue; skip-changelog applies.

QA instructions for reviewer

From packages/eui, run yarn test-unit src/components/page_template --runInBand. Check page templates with a sidebar above and below the responsive breakpoint, including panelled inner content.

Checklist before marking Ready for Review

  • Page-template tests pass on React 18: 5 suites, 65 tests, 59 snapshots
  • Page-template tests pass on React 17: 5 suites, 65 tests, 59 snapshots
  • Full yarn lint passes (existing repository warnings, no errors)
  • Formatting and git diff --check pass
  • No changelog per issue instructions
  • Maintainer scope confirmation
  • Manual browser/accessibility and Kibana QA (not run)

Reviewer checklist

  • Approved impact assessment
  • Approved release readiness

@github-actions

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 13, 2026

This branch has not been deployed

No deployments
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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Emotion] Memoize EuiPageTemplate styles

1 participant