Commit Graph

1 Commits

Author SHA1 Message Date
Rua Haszard 8eda9cbd59 Add Storybook for documenting and testing components in isolation (https://github.com/woocommerce/woocommerce-admin/pull/3679)
* basic empty storybook setup

* borrow (copy paste) config (module.rules & aliases) from main webpack

* story for rating (styling not working)

* correctly style rating stars in storybook

* import webpack config for storybook instead of paste

* tweak rating story to show partial stars

* stylelint fixes

* pin storybook addons versions

* add knobs for rating & totalStars

* add knob for size + use defaultProps for knob defaults

* import all component styles into storybook preview:
- stories shouldn't import component styles directly, consistent with
how they are used
2020-02-24 15:25:25 +13:00