Skip to content

Commit

Permalink
feat: update sys-form-button styles (#7)
Browse files Browse the repository at this point in the history
* feat: add button direction and new storybook example

* fix: update spacing between two children in a sys-form-button

* docs: use storybook docs for documentation

* fix: update line-height of sys-form-button
  • Loading branch information
btkostner authored Feb 6, 2020
1 parent 01fb134 commit bfa558d
Show file tree
Hide file tree
Showing 9 changed files with 3,176 additions and 782 deletions.
6 changes: 4 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.js'],
stories: ['../src/**/*.stories.(js|mdx)'],
addons: [
'@storybook/addon-a11y/register',
'@storybook/addon-backgrounds/register',
'@storybook/addon-docs',
'@storybook/addon-knobs/register',
'@storybook/addon-viewport/register'
'@storybook/addon-viewport/register',
'storybook-addon-vue-info/lib/register'
]
};
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import '../src/assets/styles/main.css'
import centered from '@storybook/addon-centered/vue'
import { withA11y } from '@storybook/addon-a11y'
import { addDecorator, addParameters } from '@storybook/vue'
import { withInfo } from 'storybook-addon-vue-info'

import { theme } from './theme'

addDecorator(centered)
addDecorator(withA11y)
addDecorator(withInfo)
addParameters({
options: { theme }
})
6 changes: 6 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
const { resolve } = require('path')

module.exports = async ({ config, mode }) => {
config.module.rules.push({
test: /\.vue$/,
loader: 'vue-docgen-loader',
enforce: 'post'
})

const cssRule = config.module.rules.find((rule) => {
return rule.test.test('main.css')
})
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ build: {

5) Start hacking

### Documenting

We use styleguide to document our components. Please write your own stories
and documentation in markdown format like the other `.mdx` files. Along with
storybook, we also use styleguidist for documentation in the component file.
This gets outputted in the form of nice prop tables in storybook. Here are some
resources on how to get started:

- [Storybook markdown syntax](https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/mdx.md)
- [vue-docgen-api](https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-docgen-api#full-example)

## Deployment

To [trigger a release](https://semantic-release.gitbook.io/semantic-release/#triggering-a-release),
Expand Down
Loading

0 comments on commit bfa558d

Please sign in to comment.