diff --git a/src/Button/Button.tsx b/src/Button/Button.tsx index 2f832f7fa..e7e7d7fc8 100644 --- a/src/Button/Button.tsx +++ b/src/Button/Button.tsx @@ -98,7 +98,10 @@ const containerStyles: Interpolation< }, } : {}), - marginRight: theme.space.small, + + "* + &": { + marginLeft: theme.space.small, + }, } } diff --git a/src/Button/README.md b/src/Button/README.md index 27e6358aa..19bdfe95d 100644 --- a/src/Button/README.md +++ b/src/Button/README.md @@ -70,6 +70,26 @@ Using a `to` prop navigates automatically, and render proper anchor tags with hr ``` +### Neighbor Behavior + +`Button`s placed next to other elements need to space their surroundings correctly, whereas individual `Button`s don't displace anything. + +```jsx + + + + + } +> +
+ + +
+
+``` + ### Full-width Buttons ```jsx diff --git a/src/Button/__tests__/__snapshots__/Button.test.tsx.snap b/src/Button/__tests__/__snapshots__/Button.test.tsx.snap index ca16dbb6b..1b775be1d 100644 --- a/src/Button/__tests__/__snapshots__/Button.test.tsx.snap +++ b/src/Button/__tests__/__snapshots__/Button.test.tsx.snap @@ -8,7 +8,7 @@ exports[`Button Component Should initialize properly 1`] = ` class="css-ar73w8-Messages" /> diff --git a/src/ButtonGroup/__tests__/__snapshots__/ButtonGroup.test.tsx.snap b/src/ButtonGroup/__tests__/__snapshots__/ButtonGroup.test.tsx.snap index 36db88e06..05803a354 100644 --- a/src/ButtonGroup/__tests__/__snapshots__/ButtonGroup.test.tsx.snap +++ b/src/ButtonGroup/__tests__/__snapshots__/ButtonGroup.test.tsx.snap @@ -11,7 +11,7 @@ exports[`ButtonGroup Component Should initialize properly 1`] = ` class="css-1o7twmc-buttongroup" > diff --git a/src/Paginator/__tests__/__snapshots__/Paginator.test.tsx.snap b/src/Paginator/__tests__/__snapshots__/Paginator.test.tsx.snap index 7f0556a62..9557126f3 100644 --- a/src/Paginator/__tests__/__snapshots__/Paginator.test.tsx.snap +++ b/src/Paginator/__tests__/__snapshots__/Paginator.test.tsx.snap @@ -11,13 +11,13 @@ exports[`Paginator Component Should initialize properly 1`] = ` class="css-g700yk-paginator" >