@apliteni/apliteni-ui 0.127.0 → 0.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/guidelines/spacing.md +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Spacing
|
|
2
|
+
|
|
3
|
+
## Use two gaps
|
|
4
|
+
|
|
5
|
+
<!-- rule: two-gaps -->
|
|
6
|
+
|
|
7
|
+
**Rule:** Use the inner gap between parts of one group and the group gap between groups.
|
|
8
|
+
|
|
9
|
+
**Why:** Two distances show what belongs together, and a reader never has to compare a third.
|
|
10
|
+
|
|
11
|
+
**Do:** Treat a control row and the table it filters as one group.
|
|
12
|
+
|
|
13
|
+
**Don't:** Add a third distance between sections.
|
|
14
|
+
|
|
15
|
+
## Widen inner gaps on a touch phone
|
|
16
|
+
|
|
17
|
+
<!-- rule: two-gaps-phone -->
|
|
18
|
+
|
|
19
|
+
**Rule:** On a touch phone, match inner gaps to the chip rows' gap.
|
|
20
|
+
|
|
21
|
+
**Why:** Chip rows open for a finger, so a smaller gap joins the table to the last row.
|
|
22
|
+
|
|
23
|
+
**Do:** Move the table down with the chips.
|
|
24
|
+
|
|
25
|
+
**Don't:** Keep the table's desktop gap.
|
|
26
|
+
|
|
27
|
+
**Except:** The view strip stays tight, because its tabs meet the floor.
|
|
28
|
+
|
|
29
|
+
## Keep a title on its block
|
|
30
|
+
|
|
31
|
+
<!-- rule: title -->
|
|
32
|
+
|
|
33
|
+
**Rule:** Keep a page or card title one inner gap above what it names, at every width.
|
|
34
|
+
|
|
35
|
+
**Why:** With space on both sides, a title can belong to either block.
|
|
36
|
+
|
|
37
|
+
**Do:** Hold a card's title to its first line.
|
|
38
|
+
|
|
39
|
+
**Don't:** Float a title halfway between two groups.
|
|
40
|
+
|
|
41
|
+
## Put text on the column edge
|
|
42
|
+
|
|
43
|
+
<!-- rule: text-edge -->
|
|
44
|
+
|
|
45
|
+
**Rule:** A control that draws no box starts its first label on the page title's edge.
|
|
46
|
+
|
|
47
|
+
**Why:** With nothing drawn around it, an indented label reads as a misaligned line.
|
|
48
|
+
|
|
49
|
+
**Do:** Let the view strip's highlight and ring hang into the margin.
|
|
50
|
+
|
|
51
|
+
**Don't:** Move a filter chip or a table off the column edge.
|