diff --git a/src/legacy/core_plugins/visualizations/index.ts b/src/legacy/core_plugins/visualizations/index.ts index a2779cfe4346d..c5e093f89636b 100644 --- a/src/legacy/core_plugins/visualizations/index.ts +++ b/src/legacy/core_plugins/visualizations/index.ts @@ -26,7 +26,7 @@ export const visualizations: LegacyPluginInitializer = kibana => publicDir: resolve(__dirname, 'public'), require: [], uiExports: { - styleSheetPaths: resolve(__dirname, 'public/index.scss'), + styleSheetPaths: resolve(__dirname, 'public/np_ready/public/index.scss'), }, }); diff --git a/src/legacy/core_plugins/visualizations/public/index.scss b/src/legacy/core_plugins/visualizations/public/index.scss deleted file mode 100644 index 238f58fbfa295..0000000000000 --- a/src/legacy/core_plugins/visualizations/public/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import 'src/legacy/ui/public/styles/styling_constants'; -@import './np_ready/public/index'; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/_index.scss b/src/legacy/core_plugins/visualizations/public/np_ready/public/_index.scss deleted file mode 100644 index eada763b63c4d..0000000000000 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/_index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import 'wizard/index'; -@import 'embeddable/index'; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/components/_index.scss b/src/legacy/core_plugins/visualizations/public/np_ready/public/components/_index.scss index 532e8106b023f..99c357b53952f 100644 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/components/_index.scss +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/components/_index.scss @@ -1 +1 @@ -@import 'visualization'; +@import './visualization'; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/embeddable/_index.scss b/src/legacy/core_plugins/visualizations/public/np_ready/public/embeddable/_index.scss index c1e3809657bfa..6b31803e7c8c5 100644 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/embeddable/_index.scss +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/embeddable/_index.scss @@ -1,2 +1,2 @@ -@import 'visualize_lab_disabled'; -@import 'embeddables'; +@import './visualize_lab_disabled'; +@import './embeddables'; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/index.scss b/src/legacy/core_plugins/visualizations/public/np_ready/public/index.scss new file mode 100644 index 0000000000000..0dbb192dd81ac --- /dev/null +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/index.scss @@ -0,0 +1,6 @@ +// Due the plugin is located on the old platform we should leave import of constants. +// It will be removed when "visualizations" will migrate to the new platform +@import 'src/legacy/ui/public/styles/styling_constants'; + +@import './wizard/index'; +@import './embeddable/index'; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/plugin.ts b/src/legacy/core_plugins/visualizations/public/np_ready/public/plugin.ts index b8db611f30815..5a8b44cd25fc1 100644 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/plugin.ts +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/plugin.ts @@ -58,6 +58,8 @@ import { UiActionsStart } from '../../../../../../plugins/ui_actions/public'; import { DataStart as LegacyDataStart } from '../../../../data/public'; import { VisState } from './types'; +import './index.scss'; + /** * Interface for this plugin's returned setup/start contracts. * diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/_index.scss b/src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/_index.scss index a10b4b1b347b7..328af16f3eebd 100644 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/_index.scss +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/_index.scss @@ -1 +1 @@ -@import 'dialog'; +@import './dialog'; diff --git a/src/legacy/ui/public/_index.scss b/src/legacy/ui/public/_index.scss index 3c3067776a161..71f4d3a4ebbb0 100644 --- a/src/legacy/ui/public/_index.scss +++ b/src/legacy/ui/public/_index.scss @@ -23,4 +23,4 @@ // Can't import vis folder here because of cascading issues, it's imported in core_plugins/kibana // @import './vis/index'; -@import './visualize/index'; +@import '../../core_plugins/visualizations/public/np_ready/public/components/index'; \ No newline at end of file diff --git a/src/legacy/ui/public/visualize/_index.scss b/src/legacy/ui/public/visualize/_index.scss deleted file mode 100644 index c528c1e37b412..0000000000000 --- a/src/legacy/ui/public/visualize/_index.scss +++ /dev/null @@ -1 +0,0 @@ -@import '../../../core_plugins/visualizations/public/np_ready/public/components/index';