-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fleet] Use KibanaThemeProvider #122385
[Fleet] Use KibanaThemeProvider #122385
Conversation
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀! I tested this PR locally, Fleet and Integrations looks the same :)
const portalNode = useMemo(() => createPortalNode(), []); | ||
|
||
useEffect(() => { | ||
setHeaderActionMenu((element) => { | ||
const mount = toMountPoint(<OutPortal node={portalNode} />); | ||
const mount = toMountPoint(<OutPortal node={portalNode} />, { theme$ }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking question: if we forget to do this in the future, do we get some kind of runtime or type check error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshdover Not currently, I guess once all existing cases have been moved over the core team may be able to add some more strict checking?
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @hop-dev |
* fleet app * integrations app * reinstate EUITHemeProvider * add theme$ to integrations header portal * add theme$ to PackageInstallProvider * add theme$ to UpdateButton Co-authored-by: Kibana Machine <[email protected]>
Summary
Closes #119250. (Part of #118866)
Wrap our apps in
KibanaThemeProvider
, and supplytheme$
to alltoMountPoint
calls.