docbrown/app/javascript/crayons
Nick Taylor d6e5808dec
Created Crayons Button Preact component (#6987)
* wip <Button > component.

* wip button components.

* Fixed issue when icon does not exist.

* Removed subfolder JSX for Preact components in Storybook sidebar.

* Touched up some Storybook stories.

* Now <Button /> component supports a or button for HTML.

* Now the <Button /> component supports the disabled prop

* A nice little refactor.

* Added onClick, onMouseOver, onMouseOut, onFocus and onBlur events to the <Button /> component.

* Set the cursor to default when a <Button /> component is disabled.

* Added tests for <Button /> component.

* Added tests for <SecondaryButton />, <OutlineButton /> and <DangerButton />.

* Updated disabled cursor.

* Removed link href when button is disabled and is an <a />.

* Added the icon alone option for the <Button /> component.

* Now active and hover states are disabled for <Button /> when an HTML button is rendered.

* Now the disabled <Button /> component deactivates hover/active states properly.

* Removed global button hover styling as per @ludwiczakpawel's request.

* Renamed the as prop to tagName.

* Removed components that were wrapping different variants.
2020-04-03 10:49:01 -04:00
..
avatarsAndLogos Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
Box/__stories__ Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
Button Created Crayons Button Preact component (#6987) 2020-04-03 10:49:01 -04:00
Dropdown Created Crayons Button Preact component (#6987) 2020-04-03 10:49:01 -04:00
formElements Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
Indicator/__stories__ Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
Modal/__stories__ Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
navigation Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
Notice/__stories__ Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
storybook-utiltiies Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
typography/__stories__ Restructure Storybook stories in sidebar (#6915) 2020-03-30 17:26:04 +02:00
index.js Created Crayons Button Preact component (#6987) 2020-04-03 10:49:01 -04:00