Closed XuTheBunny closed 5 years ago
Add button with icon option on the storybook, taking IconType as prop. Adding paddings around the icon automatically.
IconType
Kids First Coordinator
Kids First Portal
Kids First Website
No API changes are made on this component.
If icon is null, it would hide icon and its paddings. For the icon options, it should be chosen within the Icon component in the story book.
Icon
src/ └── components ├──Button │ ├── __tests__/ │ ├── Button.jsx │ ├── Button.story.jsx │ └── Button.css └── index.js
Test for button renders correctly with each type, size, if disabled, with/without icon.
Closes #84
UIKit Storybook for Review
Built with commit 54b91d2768882ebb05345c563bf321dfb091405c
https://deploy-preview-103--kf-uikit.netlify.com
@XuTheBunny could we follow the PR template for this so as to help document it for review in the future?
Motivation
Add button with icon option on the storybook, taking
IconType
as prop. Adding paddings around the icon automatically.Use Cases
Kids First Coordinator
Kids First Portal
Kids First Website
API changes
No API changes are made on this component.
Implementation Notes
If icon is null, it would hide icon and its paddings. For the icon options, it should be chosen within the
Icon
component in the story book.Rendering and Storybook location
Functional Tests
Test for button renders correctly with each type, size, if disabled, with/without icon.
Closes #84