Skip to content

Commit

Permalink
Updated Storybook config.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jun 23, 2024
1 parent e27fbc0 commit c57f04b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/themes/contrib/civictheme/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
customPlugin,
];
// Special case: override whatever loader is used to load styles with a
// style-loader in oder to have styles injected during the runtime.
// style-loader in order to have styles injected during the runtime.
custom.module.rules[1].use[0] = 'style-loader';

// Override assets location for Storybook.
Expand Down
15 changes: 13 additions & 2 deletions web/themes/contrib/civictheme/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,24 @@ const storyOrder = [
'*',
'Atoms',
[
'*',
'Chip',
'Content Link',
'Heading',
'Iframe',
'Image',
'Form Controls',
],
'*',
'Molecules',
[
'*',
'Accordion',
'Attachment',
'Back To Top',
'Basic Content',
'Breadcrumb',
'Callout',
'Field',
'Figure',
'List',
[
'Single Filter',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
customPlugin,
];
// Special case: override whatever loader is used to load styles with a
// style-loader in oder to have styles injected during the runtime.
// style-loader in order to have styles injected during the runtime.
custom.module.rules[1].use[0] = 'style-loader';

// Override assets location for Storybook.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,24 @@ const storyOrder = [
'*',
'Atoms',
[
'*',
'Chip',
'Content Link',
'Heading',
'Iframe',
'Image',
'Form Controls',
],
'*',
'Molecules',
[
'*',
'Accordion',
'Attachment',
'Back To Top',
'Basic Content',
'Breadcrumb',
'Callout',
'Field',
'Figure',
'List',
[
'Single Filter',
Expand Down
4 changes: 2 additions & 2 deletions web/themes/contrib/civictheme/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c57f04b

Please sign in to comment.