Skip to content

Commit

Permalink
Merge branch 'main' into docs/sb-anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Aug 10, 2022
2 parents 8e953cf + 760df26 commit d3f3c46
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,21 @@ const ThemeProviderDecorator = makeDecorator({

export const decorators = [ThemeProviderDecorator];

const DEPRECATED_THEMES = new Set(['sap_belize_hcb', 'sap_belize_hcw']);

export const globalTypes = {
theme: {
title: 'Theme',
description: 'Fiori Theme',
defaultValue: Themes.sap_fiori_3,
toolbar: {
title: 'Theme',
items: Object.keys(Themes).map((themeKey) => ({
value: themeKey,
title: themeKey
}))
items: Object.keys(Themes)
.filter((key) => !DEPRECATED_THEMES.has(key))
.map((themeKey) => ({
value: themeKey,
title: themeKey
}))
}
},
contentDensity: {
Expand Down

0 comments on commit d3f3c46

Please sign in to comment.