You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch the eui*Styles() calls to useEuiMemoizedStyles. The generator must be a static function of the theme. If it also takes another argument, keep that dynamic part outside the memoized function.
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
Hi, I'd like to take this. I have the change ready: EuiPopoverTitle, EuiPopoverFooter, EuiPopoverArrow, and EuiPopoverPanel use useEuiMemoizedStyles, with the panel's color mode kept outside the memoized generator.
One question on popover.tsx: EuiPopover is a class component, and wrapping it with withEuiStylesMemoizer would change the export (and break EuiPopover['props'], which EuiSplitButtonActions uses). Since euiPopoverStyles() takes no theme, I compute it once at module scope instead. Does that work for you, or would you prefer a different approach?
Popover tests and the snapshots of components that render popovers pass unchanged. I'll open a PR with skip-changelog per the issue.
Activity
github-actions commentedon Oct 5, 2026
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
idhanth commentedon Oct 15, 2026
Hi, I'd like to take this. I have the change ready:
EuiPopoverTitle,EuiPopoverFooter,EuiPopoverArrow, andEuiPopoverPaneluseuseEuiMemoizedStyles, with the panel's color mode kept outside the memoized generator.One question on
popover.tsx:EuiPopoveris a class component, and wrapping it withwithEuiStylesMemoizerwould change the export (and breakEuiPopover['props'], whichEuiSplitButtonActionsuses). SinceeuiPopoverStyles()takes no theme, I compute it once at module scope instead. Does that work for you, or would you prefer a different approach?Popover tests and the snapshots of components that render popovers pass unchanged. I'll open a PR with
skip-changelogper the issue.