Skip to content

Commit 5c45a9c

Browse files
Tosttiyenienserrano
authored andcommitted
Change default theme (#174)
1 parent e9c61de commit 5c45a9c

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
@@ -140,7 +140,7 @@ jobs:
140140
fail-fast: false
141141
matrix:
142142
os: [ubuntu-latest] #Removed 'windows-latest'
143-
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
143+
group: [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13]
144144
include:
145145
- os: ubuntu-latest
146146
name: Linux

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type Theme = typeof LightTheme;
3737

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
40-
export const tag: string = globals.__osdThemeTag__ || 'v8light';
40+
export const tag: string = globals.__osdThemeTag__ || 'v7light';
4141
export const version = tag.startsWith('v7') ? 7 : 8;
4242
export const darkMode = tag.endsWith('dark');
4343

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const getThemeSettings = (): Record<string, UiSettingsParams> => {
5050
name: i18n.translate('core.ui_settings.params.themeVersionTitle', {
5151
defaultMessage: 'Theme version',
5252
}),
53-
value: 'Next (preview)',
53+
value: 'v7',
5454
type: 'select',
5555
options: ['v7', 'Next (preview)'],
5656
description: i18n.translate('core.ui_settings.params.themeVersionText', {

src/core/server/ui_settings/ui_settings_config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const configSchema = schema.object({
5656
overrides: schema.object({}, { unknowns: 'allow' }),
5757
defaults: schema.object({
5858
'theme:darkMode': schema.maybe(schema.boolean({ defaultValue: false })),
59-
'theme:version': schema.maybe(schema.string({ defaultValue: 'v8' })),
59+
'theme:version': schema.maybe(schema.string({ defaultValue: 'v7' })),
6060
}),
6161
});
6262

0 commit comments

Comments
 (0)