Updates to Storybook for home page makeover. (#6130)
This commit is contained in:
parent
e4115e5781
commit
a7dc893f50
4 changed files with 16 additions and 2 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 470 KiB |
|
|
@ -1,5 +1,6 @@
|
|||
import { configure } from '@storybook/react';
|
||||
import '../../assets/stylesheets/minimal.scss';
|
||||
import './storybook.scss';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../', true, /.stories.jsx$/);
|
||||
|
|
|
|||
13
app/javascript/.storybook/storybook.scss
Normal file
13
app/javascript/.storybook/storybook.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
// This should be Storybook's root element.
|
||||
& > :first-child {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
grid-template-columns: 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
|
@ -11,8 +11,8 @@
|
|||
"scripts": {
|
||||
"test": "jest app/javascript/ --coverage",
|
||||
"test:watch": "jest app/javascript/ --watch",
|
||||
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/javascript/.storybook/assets",
|
||||
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/javascript/.storybook/assets",
|
||||
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/assets",
|
||||
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/assets",
|
||||
"api-docs:serve": "yarn redoc-cli serve docs/api_v0.yml --options.pathInMiddlePanel --options.jsonSampleExpandLevel=all --options.menuToggle -t docs/api_template.hbs --watch"
|
||||
},
|
||||
"husky": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue