Skip to content

Commit 7ac788d

Browse files
Tosttiyenienserrano
authored andcommitted
Change default theme (#174)
1 parent d6a0bd9 commit 7ac788d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/build_and_test_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
fail-fast: false
147147
matrix:
148148
os: [ubuntu-latest] #Removed 'windows-latest'
149-
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
149+
group: [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13]
150150
include:
151151
- os: ubuntu-latest
152152
name: Linux

packages/osd-ui-shared-deps/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type Theme = typeof LightTheme;
3838
// in the OpenSearch Dashboards app we can rely on this global being defined, but in
3939
// some cases (like jest) the global is undefined
4040
export const tag: string = globals.__osdThemeTag__;
41-
const themeVersion = tag?.replace(/(light|dark)$/, '') || 'v8';
41+
const themeVersion = tag?.replace(/(light|dark)$/, '') || 'v7';
4242
export const version = parseInt(themeVersion.replace(/[^\d]+/g, ''), 10) || 8;
4343
export const darkMode = tag?.endsWith?.('dark');
4444

src/core/server/ui_settings/settings/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const getThemeSettings = (): Record<string, UiSettingsParams> => {
6060
defaultMessage: 'Theme version',
6161
}),
6262
value:
63-
DEFAULT_THEME_VERSION === 'v8'
63+
DEFAULT_THEME_VERSION === 'v7'
6464
? themeVersionLabelMap[DEFAULT_THEME_VERSION]
6565
: DEFAULT_THEME_VERSION,
6666
type: 'select',

src/core/server/ui_settings/ui_settings_config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const deprecations: ConfigDeprecationProvider = ({ unused, renameFromRoot }) =>
3737
renameFromRoot('server.defaultRoute', 'uiSettings.overrides.defaultRoute'),
3838
];
3939

40-
export const DEFAULT_THEME_VERSION = 'v8';
40+
export const DEFAULT_THEME_VERSION = 'v7';
4141

4242
/* There are 4 levels of uiSettings:
4343
* 1) defaults hardcoded in code

0 commit comments

Comments
 (0)