Skip to content

Commit 1f2b08e

Browse files
authored
Merge pull request #63 from forumone/update-storybook
Update storybook
2 parents de50178 + 8e6ff63 commit 1f2b08e

File tree

6 files changed

+2089
-1593
lines changed

6 files changed

+2089
-1593
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17
1+
18.18

.storybook/main.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@ const StylelintWebpackPlugin = require('stylelint-webpack-plugin');
33
const YAML = require('yaml');
44

55
module.exports = {
6-
staticDirs: [path.resolve(__dirname, '../public')],
6+
staticDirs: ['../public'],
77
stories: ['../source/**/*.stories.@(js|jsx|ts|tsx)', '../source/**/*.mdx'],
88
addons: [
99
'@storybook/addon-links',
1010
'@storybook/addon-essentials',
1111
'@storybook/addon-interactions',
12-
{
13-
name: '@storybook/addon-styling',
14-
options: {
15-
postcssLoaderOptions: {
16-
implementation: require('postcss'),
17-
},
18-
},
19-
},
2012
'@storybook/addon-a11y',
2113
],
2214
framework: {
@@ -26,7 +18,7 @@ module.exports = {
2618
webpackFinal: async config => {
2719
config.plugins.push(
2820
new StylelintWebpackPlugin({
29-
exclude: ['node_modules', 'storybook'],
21+
exclude: ['node_modules', 'storybook', '.next'],
3022
}),
3123
);
3224
config.module.rules.find(

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/addons';
1+
import { addons } from '@storybook/manager-api';
22
import theme from './theme';
33

44
addons.setConfig({

.storybook/theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const storybookTheme = create({
55
appContentBg: '#fff',
66
barBg: '#19013A',
77
barSelectedColor: '#EE2737',
8+
barHoverColor: '#EE2737',
89
barTextColor: '#fff',
910
base: 'light',
1011
brandTitle: 'Forum One',

0 commit comments

Comments
 (0)