Skip to content

Commit 293c0c1

Browse files
committed
removed spacing from reveal
1 parent 784b800 commit 293c0c1

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

website/docs/components/reveal/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ navigation:
3737
<section data-tab="Specifications">
3838
@include "partials/specifications/anatomy.md"
3939
@include "partials/specifications/states.md"
40-
@include "partials/specifications/spacing.md"
4140
</section>
4241

4342
<section data-tab="Accessibility">

website/docs/components/reveal/partials/guidelines/guidelines.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,21 @@ The Reveal component should be used for hiding and showing simple content. For c
4141
!!! Do
4242

4343
![Reveal example with simple content](/assets/components/reveal/content-type-do.png =604x*)
44-
!!!
44+
!!!
45+
46+
## Spacing
47+
48+
!!! Info
49+
50+
In cases where surrounding elements already have margin or padding added, you may want to reduce or remove the spacing entirely.
51+
!!!
52+
53+
- When using the Reveal to contain information related to a single element within a group or section, we recommend leaving 8px between the Reveal and the element it relates to.
54+
55+
![Reveal example within a section](/assets/components/reveal/spacing-guidance-single-element.png =591x*)
56+
57+
- When used to show and hide information not directly associated with a single element but an entire section or group, we recommend leaving 24px between the Reveal and the section it relates to.
58+
59+
![Reveal example underneath a section](/assets/components/reveal/spacing-guidance-section.png =591x*)
60+
61+
- If you need to adjust the spacing, always ensure it is slightly tighter compared to the spacing between other elements and components in the group, section, or page.

website/docs/components/reveal/partials/specifications/spacing.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)