-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] Use theme provider in Maps-app #119060
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
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.
What about map_embeddable? Is KibanaThemeProvider needed there as well?
I think not, because the embeddable will be inside the tree of other Kibana apps, and presumably we don't want duplicated nesting of this. This is an assumption only though. @pgayvallet is that correct? |
Given that Note that ideally, the |
With respect to #118866 (comment), looks like there are 4 places with Theme provider is required in maps plugin |
If the "owning-app" needs to inject the $theme, I'd prefer splitting up this PR in different ones. There are quite a few "owning"-plugins that embed maps, all of them requiring different reviewing teams.
For sanity, it might be easier to address them one-by-one (or, at least, in groups that make sense). A parallel question: can we wrap the dom-trees with the kb-theme-provider without configuring the $theme-variable? |
@elasticmachine merge upstream |
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 - discussed that this is part of the fix and does not provide theme in all required locations
code review
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Sorry, missed that one. It wouldn't make much sense, given that we wouldn't be propagating the required variables to the EUI theme provider. |
Part of #118875