mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Rename colorMode
with colorScheme
This commit is contained in:
parent
65a999933c
commit
2841ed3684
8 changed files with 60 additions and 27 deletions
|
@ -101,7 +101,7 @@ export default {
|
|||
const isDark = isAuto && isClient ? window.matchMedia('(prefers-color-scheme: dark)') : colorSchemeOption.dark?.default;
|
||||
const defaultDocument = isClient ? window.document : undefined;
|
||||
|
||||
Theme.setColorMode(isDark ? 'dark' : 'light');
|
||||
Theme.setColorScheme(isDark ? 'dark' : 'light');
|
||||
|
||||
if (isDark && defaultDocument) {
|
||||
DomHandler.addClass(defaultDocument.documentElement, colorSchemeOption.dark?.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue