@@ -15,7 +15,7 @@ const CONTRAST_MODES = {
1515
1616const THEME_VARIANT_MODES = {
1717 DEFAULT : 'theme-default' ,
18- UNIFIED : 'theme-redhat '
18+ FELT : 'theme-felt '
1919} ;
2020
2121export const THEME_TYPES = {
@@ -46,7 +46,13 @@ class ThemeManager {
4646 if ( ! this . isBrowser ) {
4747 return ;
4848 }
49- const storedValue = localStorage . getItem ( this . storageKey ) ;
49+
50+ let storedValue = localStorage . getItem ( this . storageKey ) ;
51+ if ( storedValue === 'theme-redhat' ) {
52+ storedValue = 'theme-felt' ;
53+ localStorage . setItem ( this . storageKey , storedValue ) ;
54+ }
55+
5056 return storedValue || this . defaultMode ;
5157 }
5258
@@ -190,8 +196,8 @@ const themeVariantManager = new ThemeManager({
190196 storageKey : 'theme-variant-preference' ,
191197 modes : THEME_VARIANT_MODES ,
192198 defaultMode : THEME_VARIANT_MODES . DEFAULT ,
193- cssClass : 'pf-v6-theme-redhat ' ,
194- classEnabledMode : THEME_VARIANT_MODES . UNIFIED ,
199+ cssClass : 'pf-v6-theme-felt ' ,
200+ classEnabledMode : THEME_VARIANT_MODES . FELT ,
195201 mediaQueryString : '(prefers-color-scheme: dark)' // Not used for variant, but required
196202} ) ;
197203
0 commit comments