Skip to content

Commit 8306110

Browse files
committed
remove spacing from copy button docs
1 parent 4594e02 commit 8306110

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

website/docs/components/copy/button/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ navigation:
2929
<section data-tab="Specifications">
3030
@include "partials/specifications/anatomy.md"
3131
@include "partials/specifications/states.md"
32-
@include "partials/specifications/spacing.md"
3332
</section>
3433

3534
<section data-tab="Accessibility">

website/docs/components/copy/button/partials/guidelines/guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Since the CopyButton can target almost any associated DOM element, it can be com
4545
When combining the CopyButton with form inputs:
4646

4747
- Use the [Fieldset](/components/form/primitives?tab=code#formfieldset) form primitive.
48-
- Wrap the `Base` input control (generally a TextInput, MaskedInput, or Textarea) and CopyButton in a container. This is not supported by the component out of the box, but can accomplished using a custom layout wrapper.
48+
- Wrap the `Base` input control (generally a TextInput, MaskedInput, or Textarea) and CopyButton in a container with an 8px gap between each element. This is not supported by the component out of the box, but can accomplished using a custom layout wrapper.
4949
- Use the `isIconOnly` variant of the CopyButton as there is a enough visual association using this layout method.
5050

51-
![Example container wrapping of a control and CopyButton](/assets/components/copy/copy-button-composition-input-wrapping.png)
51+
![Example spacing of a control and CopyButton](/assets/components/copy/copy-button-composition-input-spacing.png)
5252

5353
This ensures that other form primitives (helper text, error, etc) will span the combined width of the input control and the CopyButton.
5454

website/docs/components/copy/button/partials/specifications/spacing.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)