[v9.3.x] Command Palette: Correctly clear button styles when changing theme (#60517)
Command Palette: Correctly clear button styles when changing theme (#60511)
add topnav feature toggle to new theme created when using 'c t'
(cherry picked from commit bc3d1fdd2a)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
co-authored by
Ashley Harrison
parent
38963eced5
commit
803670872a
@@ -13,6 +13,8 @@ export async function changeTheme(mode: 'dark' | 'light', runtimeOnly?: boolean)
|
||||
mode: mode,
|
||||
},
|
||||
});
|
||||
// Special feature toggle that impact theme/component looks
|
||||
newTheme.flags.topnav = config.featureToggles.topnav;
|
||||
|
||||
appEvents.publish(new ThemeChangedEvent(newTheme));
|
||||
config.theme2.isDark = newTheme.isDark;
|
||||
|
||||
Reference in New Issue
Block a user