Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core_plugins/kibana/public/dashboard/_hacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dashboard-listing {
// Yes, this is a hack because bootstrap will be removed and everything must move to EUI theming
// Can't reliably remove all/any of these because of embeddables

.tab-dashboard.theme-dark {
@import './../../../../../node_modules/@elastic/eui/src/themes/k6/k6_colors_dark';
.theme-dark {
@import '@elastic/eui/src/themes/k6/k6_colors_dark';

// /src/ui/public/styles/bootstrap/scaffolding.less
a {
Expand Down
10 changes: 6 additions & 4 deletions src/core_plugins/kibana/public/dashboard/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
/**
* 1. Don't duplicate styles in dark mode
*/
.tab-dashboard.theme-light { /* 1 */
.theme-light { /* 1 */
@import 'dashboard_app';
@import 'grid/index';
@import 'panel/index';
@import 'viewport/index';
}

// Imports outside of .tab-dashboard selector don't change between light/dark modes
// Imports outside of theme selector don't change between light/dark modes
@import 'components/index';

// Must be outside of theme selector because it lives in a portal
Expand All @@ -33,14 +33,16 @@
// EUI global scope -- dark
@import '@elastic/eui/src/themes/k6/k6_colors_dark';

.tab-dashboard.theme-dark {
.theme-dark {
background-color: $euiColorEmptyShade;

@import 'dashboard_app';
@import 'grid/index';
@import 'panel/index';
@import 'viewport/index';

// Vis imports
// Vis imports -- will have some duplicate styling
// because they will be imported via ui/public as well
// (without .theme-[] prefix)
@import 'src/ui/public/vis/map/index';
}