diff --git a/src/components/Button/Button-v2.module.css b/src/components/Button/Button-v2.module.css index 43260949b..6f644df03 100644 --- a/src/components/Button/Button-v2.module.css +++ b/src/components/Button/Button-v2.module.css @@ -26,6 +26,12 @@ .button--sm & { /* Offset to better align text in small button */ transform: translateY(-1px); + gap: 0.25rem; + } + + .button--md &, + .button--lg & { + gap: 0.5rem; } } diff --git a/src/components/Button/Button-v2.tsx b/src/components/Button/Button-v2.tsx index 97b0330a3..681271dfb 100644 --- a/src/components/Button/Button-v2.tsx +++ b/src/components/Button/Button-v2.tsx @@ -141,11 +141,19 @@ export const Button = forwardRef( /> )} {iconLayout === 'left' && ( - + )} {iconLayout !== 'icon-only' && children} {iconLayout === 'right' && ( - + )} {isLoading && ( diff --git a/src/components/Button/__snapshots__/Button-v2.test.tsx.snap b/src/components/Button/__snapshots__/Button-v2.test.tsx.snap index 0b6b4c7b3..c13deceeb 100644 --- a/src/components/Button/__snapshots__/Button-v2.test.tsx.snap +++ b/src/components/Button/__snapshots__/Button-v2.test.tsx.snap @@ -179,10 +179,10 @@ exports[`