[drilldown] fix Darktheme is missing from add drilldowns panel (#147270)

Fixes https://github.com/elastic/kibana/issues/147147

Replaces https://github.com/elastic/kibana/pull/147151. Thanks for the
tip @Dosant

PR passes theme$ to toMountPoint

<img width="400" alt="Screen Shot 2022-12-06 at 4 54 49 PM"
src="https://user-images.githubusercontent.com/373691/206051509-207c39f6-125d-46f9-baab-87a5a96a6541.png">

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2023-01-10 16:08:22 -05:00 committed by GitHub
parent 95a3313b9f
commit 26b22746b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View file

@ -26,6 +26,9 @@ const actionParams: OpenFlyoutAddDrilldownParams = {
application: {
currentAppId$: new Subject(),
},
theme: {
theme$: new Subject(),
},
} as any,
plugins: {
uiActionsEnhanced,

View file

@ -106,7 +106,8 @@ export class FlyoutCreateDrilldownAction implements Action<EmbeddableContext> {
placeContext={{ embeddable }}
templates={templates}
onClose={close}
/>
/>,
{ theme$: core.theme.theme$ }
),
{
ownFocus: true,

View file

@ -36,6 +36,9 @@ const actionParams: FlyoutEditDrilldownParams = {
application: {
currentAppId$: new Subject(),
},
theme: {
theme$: new Subject(),
},
} as any,
plugins: {
uiActionsEnhanced: uiActions,

View file

@ -80,7 +80,8 @@ export class FlyoutEditDrilldownAction implements Action<EmbeddableContext> {
placeContext={{ embeddable }}
templates={templates}
onClose={close}
/>
/>,
{ theme$: core.theme.theme$ }
),
{
ownFocus: true,