From 5fc8bfe78456ddf52a198a90b0778c850dadbfc0 Mon Sep 17 00:00:00 2001 From: Jason Basuil Date: Thu, 16 Mar 2023 12:23:42 -0700 Subject: [PATCH] Button height and typography updates (#849) --- spec/__snapshots__/Storyshots.test.js.snap | 860 +++++++++++++++++---- src/Button/Button.jsx | 10 + src/Button/Button.scss | 13 +- src/Button/Buttons.stories.jsx | 132 ++++ src/Button/index.js | 4 +- src/index.js | 3 +- 6 files changed, 867 insertions(+), 155 deletions(-) diff --git a/spec/__snapshots__/Storyshots.test.js.snap b/spec/__snapshots__/Storyshots.test.js.snap index ed175122..25cf6f7b 100644 --- a/spec/__snapshots__/Storyshots.test.js.snap +++ b/spec/__snapshots__/Storyshots.test.js.snap @@ -3497,6 +3497,133 @@ exports[`Storyshots Components/Button Danger 1`] = ` /> + + + + + + `; @@ -3517,156 +3644,599 @@ exports[`Storyshots Components/Button Link 1`] = ` + + + +`; + +exports[`Storyshots Components/Button Loading 1`] = ` +
+ + + + + + + + + + + +
+`; + +exports[`Storyshots Components/Button Primary 1`] = ` +
+ + + + + + + + + -
-`; - -exports[`Storyshots Components/Button Loading 1`] = ` -
-
`; -exports[`Storyshots Components/Button Primary 1`] = ` +exports[`Storyshots Components/Button Transparent 1`] = `
-
-`; - -exports[`Storyshots Components/Button Transparent 1`] = ` -
+ - +
+`; + +exports[`Storyshots Components/Button Warning 1`] = ` +
-
-`; - -exports[`Storyshots Components/Button Warning 1`] = ` -
+
+ {' '} + + {' '} + + {' '} + ); @@ -137,6 +165,34 @@ export const Danger = () => ( > Delete + {' '} + + {' '} + + {' '} + ); @@ -197,6 +253,34 @@ export const Warning = () => ( > Edit + {' '} + + {' '} + + {' '} + ); @@ -257,6 +341,34 @@ export const Transparent = () => ( > Skip + {' '} + + {' '} + + {' '} + ); @@ -469,5 +581,25 @@ export const Loading = () => ( > Confirm + {' '} + + {' '} + ); diff --git a/src/Button/index.js b/src/Button/index.js index 803f51fb..00f92ffe 100644 --- a/src/Button/index.js +++ b/src/Button/index.js @@ -1,3 +1 @@ -import Button from './Button'; - -export default Button; +export { default, BUTTON_SIZES } from './Button'; diff --git a/src/index.js b/src/index.js index aab2c70b..7db10d8a 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ import { AccordionToggle, } from 'src/Accordion'; import { Alert, MessageTypes } from 'src/Alert'; -import Button from 'src/Button'; +import Button, { BUTTON_SIZES } from 'src/Button'; import Avatar from 'src/Avatar'; import Card, { CardSizes } from 'src/Card'; import { CardStack } from 'src/CardStack'; @@ -95,6 +95,7 @@ export { AsyncCreatableSelect, bugsnagClient, Button, + BUTTON_SIZES, BUTTON_GROUP_ORIENTATIONS, Card, CardSizes,