mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ES|QL] Inline editing flyout styles (#179953)
## Summary The EuiThemeProvider messes up with our custom styles for some reason. I am using the kibanaThemeProvider which is used across Lens and doesnt create the problem  
This commit is contained in:
parent
2c405897ea
commit
a85ba2b7ee
1 changed files with 4 additions and 5 deletions
|
@ -6,14 +6,14 @@
|
|||
*/
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import { EuiFlyout, EuiLoadingSpinner, EuiOverlayMask, EuiThemeProvider } from '@elastic/eui';
|
||||
import { EuiFlyout, EuiLoadingSpinner, EuiOverlayMask } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { I18nProvider } from '@kbn/i18n-react';
|
||||
import { Provider } from 'react-redux';
|
||||
import type { MiddlewareAPI, Dispatch, Action } from '@reduxjs/toolkit';
|
||||
import { css } from '@emotion/react';
|
||||
import type { CoreStart } from '@kbn/core/public';
|
||||
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
|
||||
import { KibanaContextProvider, KibanaThemeProvider } from '@kbn/kibana-react-plugin/public';
|
||||
import { isEqual } from 'lodash';
|
||||
import { RootDragDropProvider } from '@kbn/dom-drag-drop';
|
||||
import type { LensPluginStartDependencies } from '../../../plugin';
|
||||
|
@ -99,7 +99,6 @@ export async function getEditLensConfiguration(
|
|||
startDependencies,
|
||||
getLensAttributeService(coreStart, startDependencies)
|
||||
);
|
||||
const theme = coreStart.theme.getTheme();
|
||||
|
||||
return ({
|
||||
attributes,
|
||||
|
@ -224,7 +223,7 @@ export async function getEditLensConfiguration(
|
|||
|
||||
return getWrapper(
|
||||
<Provider store={lensStore}>
|
||||
<EuiThemeProvider colorMode={theme.darkMode ? 'dark' : 'light'}>
|
||||
<KibanaThemeProvider theme$={coreStart.theme.theme$}>
|
||||
<I18nProvider>
|
||||
<KibanaContextProvider services={lensServices}>
|
||||
<RootDragDropProvider>
|
||||
|
@ -232,7 +231,7 @@ export async function getEditLensConfiguration(
|
|||
</RootDragDropProvider>
|
||||
</KibanaContextProvider>
|
||||
</I18nProvider>
|
||||
</EuiThemeProvider>
|
||||
</KibanaThemeProvider>
|
||||
</Provider>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue