Skip to content

Commit 9907df9

Browse files
flangjavier-godoy
authored andcommitted
fix: force Vaadin light theme when no theme has been applied
1 parent defb66f commit 9907df9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/META-INF/resources/frontend/connector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
if (supportedTheme(theme)) {
3535
markDownEditor.setAttribute('data-color-mode', theme);
3636
} else {
37-
markDownEditor.removeAttribute('data-color-mode');
37+
// force light theme which is Vaadin's default theme
38+
markDownEditor.setAttribute('data-color-mode', 'light');
3839
}
3940
};
4041

0 commit comments

Comments
 (0)