@apliteni/apliteni-ui 0.79.0 → 0.80.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.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
**Why:** A confirm keeps keyboard focus until answered; a callout does not interrupt.
|
|
22
22
|
|
|
23
|
-
**Except:** Use a content-sized modal for a short form and a
|
|
23
|
+
**Except:** Use a content-sized modal or a drawer for a short form, and a page for a long one.
|
|
24
24
|
|
|
25
25
|
**Do:** Ask “Rotate this token?” in a confirm with “Keep token” and “Rotate token” buttons.
|
|
26
26
|
|
package/guidelines/drawer.md
CHANGED
|
@@ -8,11 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
**Why:** Closing the drawer returns the user to the opened row.
|
|
10
10
|
|
|
11
|
-
**Do:**
|
|
11
|
+
**Do:** Open one for a quick edit, a new key, a filter, or a peek at a row’s detail.
|
|
12
12
|
|
|
13
|
-
**Don't:**
|
|
13
|
+
**Don't:** Open one for a long form, several steps, or a view with its own address and Back.
|
|
14
14
|
|
|
15
|
-
**Except:**
|
|
15
|
+
**Except:** A two-answer question uses confirm, not a drawer.
|
|
16
|
+
|
|
17
|
+
## Drawer or page
|
|
18
|
+
|
|
19
|
+
<!-- rule: drawer-or-page -->
|
|
20
|
+
|
|
21
|
+
**Rule:** Use a page to edit more than one group, and a drawer for one short change.
|
|
22
|
+
|
|
23
|
+
**Why:** Several groups need room to move between them and check them before saving.
|
|
24
|
+
|
|
25
|
+
**Do:** Edit the roles and the per-unit switches on a page, under a way back to the list.
|
|
26
|
+
|
|
27
|
+
**Don't:** Edit the same groups in a drawer, stacked in one narrow panel over the list.
|
|
28
|
+
|
|
29
|
+
**Except:** Change one field inline, without a panel. A drawer may show groups a reader only reads.
|
|
16
30
|
|
|
17
31
|
## Grouped content
|
|
18
32
|
|