Task/various improvements in Storybook (#6782)
* Resolve missing @angular/material styles * Add themes selector * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/6788/head^2
parent
0a726644b0
commit
cca34124a9
@ -0,0 +1,20 @@
|
||||
import { withThemeByClassName } from '@storybook/addon-themes';
|
||||
|
||||
const preview = {
|
||||
decorators: [
|
||||
withThemeByClassName({
|
||||
defaultTheme: 'Light',
|
||||
parentSelector: 'body',
|
||||
themes: {
|
||||
Dark: 'theme-dark',
|
||||
Light: 'theme-light'
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
document.body.classList.add('mat-typography');
|
||||
}
|
||||
|
||||
export default preview;
|
||||
Loading…
Reference in new issue