Skip to content

Commit 19cf697

Browse files
fix(Themes): add missing themes sap_fiori_3_hcb and sap_fiori_3_hcw (#648)
1 parent ac74e52 commit 19cf697

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

.storybook/preview.js

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { ContentDensity } from '@ui5/webcomponents-react/lib/ContentDensity';
99
import { ThemeProvider } from '@ui5/webcomponents-react/lib/ThemeProvider';
1010
import { Themes } from '@ui5/webcomponents-react/lib/Themes';
1111
import '@ui5/webcomponents/dist/Assets';
12-
import '@ui5/webcomponents-react/dist/Assets';
1312
import '@ui5/webcomponents/dist/features/InputElementsFormSupport';
1413
import React, { useEffect } from 'react';
1514
import 'react-app-polyfill/ie11';
@@ -68,28 +67,10 @@ export const globalTypes = {
6867
description: 'Fiori Theme',
6968
defaultValue: Themes.sap_fiori_3,
7069
toolbar: {
71-
items: [
72-
{
73-
value: Themes.sap_fiori_3,
74-
title: Themes.sap_fiori_3
75-
},
76-
{
77-
value: Themes.sap_fiori_3_dark,
78-
title: Themes.sap_fiori_3_dark
79-
},
80-
{
81-
value: Themes.sap_belize,
82-
title: Themes.sap_belize
83-
},
84-
{
85-
value: Themes.sap_belize_hcb,
86-
title: Themes.sap_belize_hcb
87-
},
88-
{
89-
value: Themes.sap_belize_hcw,
90-
title: Themes.sap_belize_hcw
91-
}
92-
]
70+
items: Object.keys(Themes).map((themeKey) => ({
71+
value: themeKey,
72+
title: themeKey
73+
}))
9374
}
9475
},
9576
contentDensity: {

packages/main/src/enums/Themes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export enum Themes {
22
sap_fiori_3 = 'sap_fiori_3',
33
sap_fiori_3_dark = 'sap_fiori_3_dark',
4+
sap_fiori_3_hcb = 'sap_fiori_3_hcb',
5+
sap_fiori_3_hcw = 'sap_fiori_3_hcw',
46
sap_belize = 'sap_belize',
57
sap_belize_hcb = 'sap_belize_hcb',
68
sap_belize_hcw = 'sap_belize_hcw'

0 commit comments

Comments
 (0)