Skip to content

Commit

Permalink
Set dark theme CSS string instead of an array containing the string.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Dec 15, 2017
1 parent 8c43cf4 commit 02d4b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/public/autoload/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ theme.registerTheme('light', euiThemeLight);

// Elastic UI Framework, dark theme
const euiThemeDark = require('!!raw-loader!@elastic/eui/dist/eui_theme_k6_dark.css');
theme.registerTheme('dark', [euiThemeDark]);
theme.registerTheme('dark', euiThemeDark);

// Set default theme.
theme.applyTheme('light');
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/theme/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function applyTheme(newTheme) {

if (styleNode) {
const css = themes[currentTheme];

console.log('css', css)
if (styleNode.styleSheet){
styleNode.styleSheet.cssText = css;
} else {
Expand Down

0 comments on commit 02d4b46

Please sign in to comment.