@webority/ui-react 0.130.1 → 0.130.3
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/dist/canvas-kit/kit.js +16157 -15623
- package/dist/canvas-kit/manifest.json +610 -102
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/guidance.json +568 -68
- package/dist/markdown-core/dist/links.js +1 -1
- package/dist/types/components/AppAutocomplete.d.ts +2 -2
- package/dist/types/components/AppCheckbox.d.ts +1 -1
- package/dist/types/components/AppCountrySelect.d.ts +1 -1
- package/dist/types/components/AppDataTable.d.ts +3 -2
- package/dist/types/components/AppDatePicker.d.ts +1 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppDropZone.d.ts +2 -2
- package/dist/types/components/AppDropdown.d.ts +1 -1
- package/dist/types/components/AppFileAttachment.d.ts +3 -3
- package/dist/types/components/AppFilePicker.d.ts +2 -2
- package/dist/types/components/AppImagePicker.d.ts +2 -2
- package/dist/types/components/AppInput.d.ts +2 -2
- package/dist/types/components/AppMarkdown.d.ts +8 -3
- package/dist/types/components/AppMentionInput.d.ts +1 -1
- package/dist/types/components/AppNumberInput.d.ts +1 -1
- package/dist/types/components/AppOtpInput.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +2 -2
- package/dist/types/components/AppRadio.d.ts +1 -1
- package/dist/types/components/AppRadioGroup.d.ts +1 -1
- package/dist/types/components/AppScoreScale.d.ts +1 -1
- package/dist/types/components/AppSearch.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +1 -1
- package/dist/types/components/AppTagInput.d.ts +1 -1
- package/dist/types/components/AppTextarea.d.ts +2 -2
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/package.json +9 -9
package/dist/guidance.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"format": "webority-guidance/1",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.130.
|
|
5
|
+
"version": "0.130.3"
|
|
6
6
|
},
|
|
7
7
|
"components": [
|
|
8
8
|
{
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"instead": "plain sections with headings"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"text": "It is
|
|
30
|
+
"text": "It is a short helper text attached to a field label.",
|
|
31
31
|
"instead": "AppInfoTip"
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"do": [
|
|
35
35
|
{
|
|
36
|
+
"title": "Titles that name what is inside",
|
|
36
37
|
"note": "Write the title as the question or the thing the reader is looking for. They are scanning titles, not content.",
|
|
37
38
|
"example": [
|
|
38
39
|
{
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
],
|
|
53
54
|
"dont": [
|
|
54
55
|
{
|
|
56
|
+
"title": "Titles that name what is inside",
|
|
55
57
|
"note": "\"More information\" says nothing about what is inside, so the reader has to open every pane to find what they want.",
|
|
56
58
|
"example": [
|
|
57
59
|
{
|
|
@@ -99,6 +101,7 @@
|
|
|
99
101
|
],
|
|
100
102
|
"do": [
|
|
101
103
|
{
|
|
104
|
+
"title": "Offer switching only with several accounts",
|
|
102
105
|
"note": "The current account is ticked, and each other account is one row to switch to.",
|
|
103
106
|
"example": [
|
|
104
107
|
{
|
|
@@ -124,6 +127,7 @@
|
|
|
124
127
|
],
|
|
125
128
|
"dont": [
|
|
126
129
|
{
|
|
130
|
+
"title": "Offer switching only with several accounts",
|
|
127
131
|
"note": "A list of one account. There is nothing to switch to, so the section does not earn its place.",
|
|
128
132
|
"example": [
|
|
129
133
|
{
|
|
@@ -176,6 +180,7 @@
|
|
|
176
180
|
],
|
|
177
181
|
"do": [
|
|
178
182
|
{
|
|
183
|
+
"title": "Collapse the extra actions",
|
|
179
184
|
"note": "When a row has more than two or three actions, collapse the extras behind a single \"more\" trigger.",
|
|
180
185
|
"example": [
|
|
181
186
|
{
|
|
@@ -188,6 +193,7 @@
|
|
|
188
193
|
]
|
|
189
194
|
},
|
|
190
195
|
{
|
|
196
|
+
"title": "Use a conventional glyph",
|
|
191
197
|
"note": "A recognisable, conventional glyph. A trash can reads as \"delete\" with no thinking.",
|
|
192
198
|
"example": [
|
|
193
199
|
{
|
|
@@ -202,6 +208,7 @@
|
|
|
202
208
|
],
|
|
203
209
|
"dont": [
|
|
204
210
|
{
|
|
211
|
+
"title": "Collapse the extra actions",
|
|
205
212
|
"note": "Five icons crammed in a row is a guessing game, with too many targets to scan at a glance.",
|
|
206
213
|
"example": [
|
|
207
214
|
{
|
|
@@ -243,6 +250,7 @@
|
|
|
243
250
|
]
|
|
244
251
|
},
|
|
245
252
|
{
|
|
253
|
+
"title": "Use a conventional glyph",
|
|
246
254
|
"note": "An obscure glyph for a common action makes the user hover and hope. Stick to the conventional icon.",
|
|
247
255
|
"example": [
|
|
248
256
|
{
|
|
@@ -292,6 +300,7 @@
|
|
|
292
300
|
],
|
|
293
301
|
"do": [
|
|
294
302
|
{
|
|
303
|
+
"title": "Match the tone to the message",
|
|
295
304
|
"note": "Match the tone to intent and say what to do next. A danger alert names the problem and the recovery.",
|
|
296
305
|
"example": [
|
|
297
306
|
{
|
|
@@ -304,6 +313,7 @@
|
|
|
304
313
|
]
|
|
305
314
|
},
|
|
306
315
|
{
|
|
316
|
+
"title": "Use info for a neutral notice",
|
|
307
317
|
"note": "A neutral, informational notice uses the info tone: calm, not alarming.",
|
|
308
318
|
"example": [
|
|
309
319
|
{
|
|
@@ -318,6 +328,7 @@
|
|
|
318
328
|
],
|
|
319
329
|
"dont": [
|
|
320
330
|
{
|
|
331
|
+
"title": "Match the tone to the message",
|
|
321
332
|
"note": "A success (green) tone on an error message contradicts the words. The colour lies about what happened.",
|
|
322
333
|
"example": [
|
|
323
334
|
{
|
|
@@ -330,6 +341,7 @@
|
|
|
330
341
|
]
|
|
331
342
|
},
|
|
332
343
|
{
|
|
344
|
+
"title": "Use info for a neutral notice",
|
|
333
345
|
"note": "A warning (amber) tone on a purely informational message implies a problem that is not there.",
|
|
334
346
|
"example": [
|
|
335
347
|
{
|
|
@@ -372,6 +384,7 @@
|
|
|
372
384
|
],
|
|
373
385
|
"do": [
|
|
374
386
|
{
|
|
387
|
+
"title": "Shape the skeleton like the content",
|
|
375
388
|
"note": "A skeleton shaped like the content that is coming. The layout does not jump on arrival.",
|
|
376
389
|
"example": [
|
|
377
390
|
{
|
|
@@ -401,10 +414,44 @@
|
|
|
401
414
|
"children": "content"
|
|
402
415
|
}
|
|
403
416
|
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"title": "Use the shared loading state",
|
|
420
|
+
"note": "The shared loading state owns the loading, error and empty handling, so each screen does not hand-roll its own.",
|
|
421
|
+
"example": [
|
|
422
|
+
{
|
|
423
|
+
"component": "AppAsyncBlock",
|
|
424
|
+
"props": {
|
|
425
|
+
"loading": true
|
|
426
|
+
},
|
|
427
|
+
"children": "content"
|
|
428
|
+
}
|
|
429
|
+
]
|
|
404
430
|
}
|
|
405
431
|
],
|
|
406
432
|
"dont": [
|
|
407
433
|
{
|
|
434
|
+
"title": "Shape the skeleton like the content",
|
|
435
|
+
"note": "A single tall block that matches no part of the content makes the layout jump when the data arrives.",
|
|
436
|
+
"example": [
|
|
437
|
+
{
|
|
438
|
+
"component": "AppAsyncBlock",
|
|
439
|
+
"props": {
|
|
440
|
+
"loading": true,
|
|
441
|
+
"skeleton": {
|
|
442
|
+
"component": "AppSkeleton",
|
|
443
|
+
"props": {
|
|
444
|
+
"width": "100%",
|
|
445
|
+
"height": 300
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"children": "content"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"title": "Use the shared loading state",
|
|
408
455
|
"note": "A bare \"loading…\" string hand-rolled per screen is inconsistent, and it skips the shared empty and error handling entirely.",
|
|
409
456
|
"example": [
|
|
410
457
|
{
|
|
@@ -480,6 +527,7 @@
|
|
|
480
527
|
],
|
|
481
528
|
"do": [
|
|
482
529
|
{
|
|
530
|
+
"title": "Autocomplete for long lists only",
|
|
483
531
|
"note": "A long list users know by name. Type-to-find lands them on the right row in one or two keystrokes.",
|
|
484
532
|
"example": [
|
|
485
533
|
{
|
|
@@ -536,6 +584,7 @@
|
|
|
536
584
|
]
|
|
537
585
|
},
|
|
538
586
|
{
|
|
587
|
+
"title": "Radios for a handful of options",
|
|
539
588
|
"note": "For a handful of exclusive options, radios show every choice at once. No typing, no dropdown.",
|
|
540
589
|
"example": [
|
|
541
590
|
{
|
|
@@ -565,6 +614,23 @@
|
|
|
565
614
|
],
|
|
566
615
|
"dont": [
|
|
567
616
|
{
|
|
617
|
+
"title": "Autocomplete for long lists only",
|
|
618
|
+
"note": "Reserve the remote search for genuinely large or server-side lists, where loadOptions fetches only matches.",
|
|
619
|
+
"example": [
|
|
620
|
+
{
|
|
621
|
+
"component": "AppAutocomplete",
|
|
622
|
+
"props": {
|
|
623
|
+
"label": "City (remote)",
|
|
624
|
+
"name": "city-remote",
|
|
625
|
+
"placeholder": "Type to search…",
|
|
626
|
+
"minChars": 1,
|
|
627
|
+
"helperText": "Debounced search with a loading spinner."
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"title": "Radios for a handful of options",
|
|
568
634
|
"note": "Three fixed options do not need a search box. The field is heavier than the choice.",
|
|
569
635
|
"example": [
|
|
570
636
|
{
|
|
@@ -589,26 +655,11 @@
|
|
|
589
655
|
}
|
|
590
656
|
}
|
|
591
657
|
]
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"note": "Reserve the remote search for genuinely large or server-side lists, where loadOptions fetches only matches.",
|
|
595
|
-
"example": [
|
|
596
|
-
{
|
|
597
|
-
"component": "AppAutocomplete",
|
|
598
|
-
"props": {
|
|
599
|
-
"label": "City (remote)",
|
|
600
|
-
"name": "city-remote",
|
|
601
|
-
"placeholder": "Type to search…",
|
|
602
|
-
"minChars": 1,
|
|
603
|
-
"helperText": "Debounced search with a loading spinner."
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
]
|
|
607
658
|
}
|
|
608
659
|
],
|
|
609
660
|
"a11y": [
|
|
610
661
|
"A text label is the accessible name of the control, because the label element cannot name the custom element.",
|
|
611
|
-
"aria-invalid is set when there is an error, and aria-describedby points at the error message, or at the
|
|
662
|
+
"aria-invalid is set when there is an error, and aria-describedby points at the error message, or at the helper text when there is no error.",
|
|
612
663
|
"Required adds the required mark to the label and the required attribute to the control."
|
|
613
664
|
]
|
|
614
665
|
}
|
|
@@ -637,6 +688,7 @@
|
|
|
637
688
|
],
|
|
638
689
|
"do": [
|
|
639
690
|
{
|
|
691
|
+
"title": "Always pass a name",
|
|
640
692
|
"note": "A name is always supplied, so the avatar shows meaningful initials and correct alt text.",
|
|
641
693
|
"example": [
|
|
642
694
|
{
|
|
@@ -648,6 +700,7 @@
|
|
|
648
700
|
]
|
|
649
701
|
},
|
|
650
702
|
{
|
|
703
|
+
"title": "Beside the name it shows",
|
|
651
704
|
"note": "The avatar sits next to the name it represents, so identity reads as one unit.",
|
|
652
705
|
"example": [
|
|
653
706
|
{
|
|
@@ -673,10 +726,24 @@
|
|
|
673
726
|
]
|
|
674
727
|
}
|
|
675
728
|
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"title": "Use AppAvatar, not a plain image",
|
|
732
|
+
"note": "AppAvatar keeps the shared shape and falls back to initials when the photo is missing.",
|
|
733
|
+
"example": [
|
|
734
|
+
{
|
|
735
|
+
"component": "AppAvatar",
|
|
736
|
+
"props": {
|
|
737
|
+
"name": "Ravi Kumar",
|
|
738
|
+
"tone": "auto"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
]
|
|
676
742
|
}
|
|
677
743
|
],
|
|
678
744
|
"dont": [
|
|
679
745
|
{
|
|
746
|
+
"title": "Always pass a name",
|
|
680
747
|
"note": "With no name and no photo the avatar can only render a bare question mark, which is useless to the eye and to a screen reader.",
|
|
681
748
|
"example": [
|
|
682
749
|
{
|
|
@@ -685,6 +752,19 @@
|
|
|
685
752
|
]
|
|
686
753
|
},
|
|
687
754
|
{
|
|
755
|
+
"title": "Beside the name it shows",
|
|
756
|
+
"note": "On its own the avatar names no one, so the reader cannot tell whose row it is.",
|
|
757
|
+
"example": [
|
|
758
|
+
{
|
|
759
|
+
"component": "AppAvatar",
|
|
760
|
+
"props": {
|
|
761
|
+
"name": "Ravi Kumar"
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"title": "Use AppAvatar, not a plain image",
|
|
688
768
|
"note": "A hand-rolled round <img> drifts from the shared avatar shape and skips the initials fallback.",
|
|
689
769
|
"example": [
|
|
690
770
|
{
|
|
@@ -765,6 +845,7 @@
|
|
|
765
845
|
],
|
|
766
846
|
"do": [
|
|
767
847
|
{
|
|
848
|
+
"title": "Keep badge text to a word or a number",
|
|
768
849
|
"note": "A short count attached to its label. The badge reads instantly.",
|
|
769
850
|
"example": [
|
|
770
851
|
{
|
|
@@ -786,6 +867,7 @@
|
|
|
786
867
|
]
|
|
787
868
|
},
|
|
788
869
|
{
|
|
870
|
+
"title": "Use one tone for one tag",
|
|
789
871
|
"note": "A neutral New tag in one intentional tone.",
|
|
790
872
|
"example": [
|
|
791
873
|
{
|
|
@@ -800,6 +882,7 @@
|
|
|
800
882
|
],
|
|
801
883
|
"dont": [
|
|
802
884
|
{
|
|
885
|
+
"title": "Keep badge text to a word or a number",
|
|
803
886
|
"note": "A sentence in a badge is the wrong tool. Badges hold a word or a number, not prose.",
|
|
804
887
|
"example": [
|
|
805
888
|
{
|
|
@@ -812,6 +895,7 @@
|
|
|
812
895
|
]
|
|
813
896
|
},
|
|
814
897
|
{
|
|
898
|
+
"title": "Use one tone for one tag",
|
|
815
899
|
"note": "The same label in three tones invents meaning that is not there. One tag, one tone.",
|
|
816
900
|
"example": [
|
|
817
901
|
{
|
|
@@ -868,6 +952,7 @@
|
|
|
868
952
|
],
|
|
869
953
|
"do": [
|
|
870
954
|
{
|
|
955
|
+
"title": "Banner only for page-wide notices",
|
|
871
956
|
"note": "A page-wide, time-bound notice every visitor needs to see, with a tone that matches its urgency.",
|
|
872
957
|
"example": [
|
|
873
958
|
{
|
|
@@ -883,6 +968,7 @@
|
|
|
883
968
|
],
|
|
884
969
|
"dont": [
|
|
885
970
|
{
|
|
971
|
+
"title": "Banner only for page-wide notices",
|
|
886
972
|
"note": "A field-level validation message belongs next to the field, not full-bleed across the page. That is AppAlert's job.",
|
|
887
973
|
"example": [
|
|
888
974
|
{
|
|
@@ -925,6 +1011,7 @@
|
|
|
925
1011
|
],
|
|
926
1012
|
"do": [
|
|
927
1013
|
{
|
|
1014
|
+
"title": "Current page as plain text",
|
|
928
1015
|
"note": "Short labels, a real link on every ancestor, and the current page as plain text.",
|
|
929
1016
|
"example": [
|
|
930
1017
|
{
|
|
@@ -951,6 +1038,7 @@
|
|
|
951
1038
|
],
|
|
952
1039
|
"dont": [
|
|
953
1040
|
{
|
|
1041
|
+
"title": "Current page as plain text",
|
|
954
1042
|
"note": "The current page still looks like the others. AppBreadcrumbs already prevents this by ignoring href on the last item, so this shape only happens if you fight the component.",
|
|
955
1043
|
"example": [
|
|
956
1044
|
{
|
|
@@ -1010,6 +1098,7 @@
|
|
|
1010
1098
|
],
|
|
1011
1099
|
"do": [
|
|
1012
1100
|
{
|
|
1101
|
+
"title": "One primary action per group",
|
|
1013
1102
|
"note": "One clear primary action, supported by a secondary. The eye knows where to go.",
|
|
1014
1103
|
"example": [
|
|
1015
1104
|
{
|
|
@@ -1029,6 +1118,7 @@
|
|
|
1029
1118
|
]
|
|
1030
1119
|
},
|
|
1031
1120
|
{
|
|
1121
|
+
"title": "Name destructive actions specifically",
|
|
1032
1122
|
"note": "Destructive actions use danger and name the object: \"Delete project\", not \"OK\".",
|
|
1033
1123
|
"example": [
|
|
1034
1124
|
{
|
|
@@ -1041,6 +1131,7 @@
|
|
|
1041
1131
|
]
|
|
1042
1132
|
},
|
|
1043
1133
|
{
|
|
1134
|
+
"title": "Start labels with an action verb",
|
|
1044
1135
|
"note": "Action-first verb + optional reinforcing icon. The label says exactly what happens.",
|
|
1045
1136
|
"example": [
|
|
1046
1137
|
{
|
|
@@ -1061,6 +1152,7 @@
|
|
|
1061
1152
|
],
|
|
1062
1153
|
"dont": [
|
|
1063
1154
|
{
|
|
1155
|
+
"title": "One primary action per group",
|
|
1064
1156
|
"note": "Two primaries compete for attention, so neither reads as the main action.",
|
|
1065
1157
|
"example": [
|
|
1066
1158
|
{
|
|
@@ -1080,6 +1172,7 @@
|
|
|
1080
1172
|
]
|
|
1081
1173
|
},
|
|
1082
1174
|
{
|
|
1175
|
+
"title": "Name destructive actions specifically",
|
|
1083
1176
|
"note": "A vague \"Submit\" in the default variant hides that this deletes data.",
|
|
1084
1177
|
"example": [
|
|
1085
1178
|
{
|
|
@@ -1092,6 +1185,7 @@
|
|
|
1092
1185
|
]
|
|
1093
1186
|
},
|
|
1094
1187
|
{
|
|
1188
|
+
"title": "Start labels with an action verb",
|
|
1095
1189
|
"note": "A noun-only label leaves the user guessing what the button does.",
|
|
1096
1190
|
"example": [
|
|
1097
1191
|
{
|
|
@@ -1193,6 +1287,7 @@
|
|
|
1193
1287
|
],
|
|
1194
1288
|
"do": [
|
|
1195
1289
|
{
|
|
1290
|
+
"title": "One titled subject per card",
|
|
1196
1291
|
"note": "One titled card, one coherent subject: the header tells the user what this block is.",
|
|
1197
1292
|
"example": [
|
|
1198
1293
|
{
|
|
@@ -1213,6 +1308,7 @@
|
|
|
1213
1308
|
]
|
|
1214
1309
|
},
|
|
1215
1310
|
{
|
|
1311
|
+
"title": "Use body={false} for a table",
|
|
1216
1312
|
"note": "A table uses body={false} so its rows sit flush to the card edges.",
|
|
1217
1313
|
"example": [
|
|
1218
1314
|
{
|
|
@@ -1254,6 +1350,7 @@
|
|
|
1254
1350
|
],
|
|
1255
1351
|
"dont": [
|
|
1256
1352
|
{
|
|
1353
|
+
"title": "One titled subject per card",
|
|
1257
1354
|
"note": "Three unrelated facts crammed into one untitled card, so none of them stands out.",
|
|
1258
1355
|
"example": [
|
|
1259
1356
|
{
|
|
@@ -1285,6 +1382,7 @@
|
|
|
1285
1382
|
]
|
|
1286
1383
|
},
|
|
1287
1384
|
{
|
|
1385
|
+
"title": "Use body={false} for a table",
|
|
1288
1386
|
"note": "The default body padding leaves an awkward inset gap around a full-width table.",
|
|
1289
1387
|
"example": [
|
|
1290
1388
|
{
|
|
@@ -1462,6 +1560,7 @@
|
|
|
1462
1560
|
],
|
|
1463
1561
|
"do": [
|
|
1464
1562
|
{
|
|
1563
|
+
"title": "Independent options each get a checkbox",
|
|
1465
1564
|
"note": "Independent settings: each checkbox toggles on its own, any combination allowed.",
|
|
1466
1565
|
"example": [
|
|
1467
1566
|
{
|
|
@@ -1495,6 +1594,7 @@
|
|
|
1495
1594
|
]
|
|
1496
1595
|
},
|
|
1497
1596
|
{
|
|
1597
|
+
"title": "Checkboxes, not switches, for saved forms",
|
|
1498
1598
|
"note": "A clear, specific label states exactly what opting in means.",
|
|
1499
1599
|
"example": [
|
|
1500
1600
|
{
|
|
@@ -1508,32 +1608,30 @@
|
|
|
1508
1608
|
],
|
|
1509
1609
|
"dont": [
|
|
1510
1610
|
{
|
|
1511
|
-
"
|
|
1611
|
+
"title": "Independent options each get a checkbox",
|
|
1612
|
+
"note": "Radios force a single choice, so independent yes/no options each need their own checkbox.",
|
|
1512
1613
|
"example": [
|
|
1513
1614
|
{
|
|
1514
1615
|
"component": "div",
|
|
1515
1616
|
"props": {
|
|
1516
|
-
"className": "
|
|
1617
|
+
"className": "wui-control-group"
|
|
1517
1618
|
},
|
|
1518
1619
|
"children": [
|
|
1519
1620
|
{
|
|
1520
|
-
"component": "
|
|
1621
|
+
"component": "AppRadio",
|
|
1521
1622
|
"props": {
|
|
1522
1623
|
"label": "Weekly digest",
|
|
1624
|
+
"name": "prefs-bad",
|
|
1625
|
+
"value": "digest",
|
|
1523
1626
|
"defaultChecked": true
|
|
1524
1627
|
}
|
|
1525
1628
|
},
|
|
1526
1629
|
{
|
|
1527
|
-
"component": "
|
|
1528
|
-
"props": {
|
|
1529
|
-
"label": "Product updates"
|
|
1530
|
-
}
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
"component": "AppSwitch",
|
|
1630
|
+
"component": "AppRadio",
|
|
1534
1631
|
"props": {
|
|
1535
1632
|
"label": "Security alerts",
|
|
1536
|
-
"
|
|
1633
|
+
"name": "prefs-bad",
|
|
1634
|
+
"value": "security"
|
|
1537
1635
|
}
|
|
1538
1636
|
}
|
|
1539
1637
|
]
|
|
@@ -1541,29 +1639,33 @@
|
|
|
1541
1639
|
]
|
|
1542
1640
|
},
|
|
1543
1641
|
{
|
|
1544
|
-
"
|
|
1642
|
+
"title": "Checkboxes, not switches, for saved forms",
|
|
1643
|
+
"note": "Switches imply an instant, saved effect; on a form that submits on Save, checkboxes set the right expectation.",
|
|
1545
1644
|
"example": [
|
|
1546
1645
|
{
|
|
1547
1646
|
"component": "div",
|
|
1548
1647
|
"props": {
|
|
1549
|
-
"className": "
|
|
1648
|
+
"className": "d-flex flex-column gap-2"
|
|
1550
1649
|
},
|
|
1551
1650
|
"children": [
|
|
1552
1651
|
{
|
|
1553
|
-
"component": "
|
|
1652
|
+
"component": "AppSwitch",
|
|
1554
1653
|
"props": {
|
|
1555
1654
|
"label": "Weekly digest",
|
|
1556
|
-
"name": "prefs-bad",
|
|
1557
|
-
"value": "digest",
|
|
1558
1655
|
"defaultChecked": true
|
|
1559
1656
|
}
|
|
1560
1657
|
},
|
|
1561
1658
|
{
|
|
1562
|
-
"component": "
|
|
1659
|
+
"component": "AppSwitch",
|
|
1660
|
+
"props": {
|
|
1661
|
+
"label": "Product updates"
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"component": "AppSwitch",
|
|
1563
1666
|
"props": {
|
|
1564
1667
|
"label": "Security alerts",
|
|
1565
|
-
"
|
|
1566
|
-
"value": "security"
|
|
1668
|
+
"defaultChecked": true
|
|
1567
1669
|
}
|
|
1568
1670
|
}
|
|
1569
1671
|
]
|
|
@@ -1573,7 +1675,7 @@
|
|
|
1573
1675
|
],
|
|
1574
1676
|
"a11y": [
|
|
1575
1677
|
"The label is linked to the input by id, so a click on the label text ticks the box.",
|
|
1576
|
-
"The error or the
|
|
1678
|
+
"The error or the helper text is linked to the input with aria-describedby, and an error sets aria-invalid to true.",
|
|
1577
1679
|
"An id is generated when none is given, so the label link always works."
|
|
1578
1680
|
]
|
|
1579
1681
|
}
|
|
@@ -1606,6 +1708,7 @@
|
|
|
1606
1708
|
],
|
|
1607
1709
|
"do": [
|
|
1608
1710
|
{
|
|
1711
|
+
"title": "Show applied filters as removable chips",
|
|
1609
1712
|
"note": "Removable chips for applied filters: the user sees exactly what is active and can clear each one.",
|
|
1610
1713
|
"example": [
|
|
1611
1714
|
{
|
|
@@ -1629,6 +1732,7 @@
|
|
|
1629
1732
|
]
|
|
1630
1733
|
},
|
|
1631
1734
|
{
|
|
1735
|
+
"title": "One clear tone and a glyph",
|
|
1632
1736
|
"note": "One clear tone and a reinforcing glyph: the chip reads at a glance.",
|
|
1633
1737
|
"example": [
|
|
1634
1738
|
{
|
|
@@ -1640,10 +1744,36 @@
|
|
|
1640
1744
|
}
|
|
1641
1745
|
}
|
|
1642
1746
|
]
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"title": "Keep chip text short",
|
|
1750
|
+
"note": "A short label reads as a token at a glance.",
|
|
1751
|
+
"example": [
|
|
1752
|
+
{
|
|
1753
|
+
"component": "AppChip",
|
|
1754
|
+
"props": {
|
|
1755
|
+
"label": "Draft"
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
]
|
|
1643
1759
|
}
|
|
1644
1760
|
],
|
|
1645
1761
|
"dont": [
|
|
1646
1762
|
{
|
|
1763
|
+
"title": "Show applied filters as removable chips",
|
|
1764
|
+
"note": "A disabled chip cannot be cleared, so the user has no way to remove the filter from the chip.",
|
|
1765
|
+
"example": [
|
|
1766
|
+
{
|
|
1767
|
+
"component": "AppChip",
|
|
1768
|
+
"props": {
|
|
1769
|
+
"label": "Lightning",
|
|
1770
|
+
"disabled": true
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
]
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"title": "One clear tone and a glyph",
|
|
1647
1777
|
"note": "Three tones on three peer filters invent meaning that isn’t there: keep peers one tone.",
|
|
1648
1778
|
"example": [
|
|
1649
1779
|
{
|
|
@@ -1670,6 +1800,7 @@
|
|
|
1670
1800
|
]
|
|
1671
1801
|
},
|
|
1672
1802
|
{
|
|
1803
|
+
"title": "Keep chip text short",
|
|
1673
1804
|
"note": "A sentence in a chip defeats the point: a chip is a token, not a paragraph.",
|
|
1674
1805
|
"example": [
|
|
1675
1806
|
{
|
|
@@ -1743,6 +1874,7 @@
|
|
|
1743
1874
|
],
|
|
1744
1875
|
"do": [
|
|
1745
1876
|
{
|
|
1877
|
+
"title": "A short title and one line",
|
|
1746
1878
|
"note": "A short title and a one-line description. The card reads instantly.",
|
|
1747
1879
|
"example": [
|
|
1748
1880
|
{
|
|
@@ -1784,6 +1916,7 @@
|
|
|
1784
1916
|
]
|
|
1785
1917
|
},
|
|
1786
1918
|
{
|
|
1919
|
+
"title": "One visual style per group",
|
|
1787
1920
|
"note": "One visual style across the group: all icon cards, or all image cards.",
|
|
1788
1921
|
"example": [
|
|
1789
1922
|
{
|
|
@@ -1827,6 +1960,7 @@
|
|
|
1827
1960
|
],
|
|
1828
1961
|
"dont": [
|
|
1829
1962
|
{
|
|
1963
|
+
"title": "A short title and one line",
|
|
1830
1964
|
"note": "A paragraph stuffed into a card. If it needs this much text, it needs a different control.",
|
|
1831
1965
|
"example": [
|
|
1832
1966
|
{
|
|
@@ -1846,6 +1980,7 @@
|
|
|
1846
1980
|
]
|
|
1847
1981
|
},
|
|
1848
1982
|
{
|
|
1983
|
+
"title": "One visual style per group",
|
|
1849
1984
|
"note": "Mixing an icon card with an image card in one group makes the set feel broken.",
|
|
1850
1985
|
"example": [
|
|
1851
1986
|
{
|
|
@@ -1922,6 +2057,7 @@
|
|
|
1922
2057
|
],
|
|
1923
2058
|
"do": [
|
|
1924
2059
|
{
|
|
2060
|
+
"title": "A few short pills",
|
|
1925
2061
|
"note": "A few short, scannable pills; the user sees every option and toggles at a glance.",
|
|
1926
2062
|
"example": [
|
|
1927
2063
|
{
|
|
@@ -1947,6 +2083,7 @@
|
|
|
1947
2083
|
]
|
|
1948
2084
|
},
|
|
1949
2085
|
{
|
|
2086
|
+
"title": "Drive checked from state",
|
|
1950
2087
|
"note": "checked reflects real selection state that your onChange updates; a proper control.",
|
|
1951
2088
|
"example": [
|
|
1952
2089
|
{
|
|
@@ -1964,6 +2101,7 @@
|
|
|
1964
2101
|
],
|
|
1965
2102
|
"dont": [
|
|
1966
2103
|
{
|
|
2104
|
+
"title": "A few short pills",
|
|
1967
2105
|
"note": "A sentence crammed into a chip. Long labels belong in a select or a checkbox list.",
|
|
1968
2106
|
"example": [
|
|
1969
2107
|
{
|
|
@@ -1979,6 +2117,7 @@
|
|
|
1979
2117
|
]
|
|
1980
2118
|
},
|
|
1981
2119
|
{
|
|
2120
|
+
"title": "Drive checked from state",
|
|
1982
2121
|
"note": "A chip used to fire an action. Actions are buttons; a chip should hold a choice.",
|
|
1983
2122
|
"example": [
|
|
1984
2123
|
{
|
|
@@ -2055,6 +2194,7 @@
|
|
|
2055
2194
|
],
|
|
2056
2195
|
"do": [
|
|
2057
2196
|
{
|
|
2197
|
+
"title": "Say what the colour affects",
|
|
2058
2198
|
"note": "Says what the colour affects. A user picking blind cannot tell whether they are about to change one button or the whole portal.",
|
|
2059
2199
|
"example": [
|
|
2060
2200
|
{
|
|
@@ -2070,7 +2210,8 @@
|
|
|
2070
2210
|
],
|
|
2071
2211
|
"dont": [
|
|
2072
2212
|
{
|
|
2073
|
-
"
|
|
2213
|
+
"title": "Say what the colour affects",
|
|
2214
|
+
"note": "“Colour” of what? And with no helper text, the user has to save and go looking to find out what changed.",
|
|
2074
2215
|
"example": [
|
|
2075
2216
|
{
|
|
2076
2217
|
"component": "AppColorField",
|
|
@@ -2085,7 +2226,7 @@
|
|
|
2085
2226
|
"a11y": [
|
|
2086
2227
|
"The hex text box is the labelled control and the field that posts; the label points at it and the required mark follows the label.",
|
|
2087
2228
|
"The swatch has its own accessible name, the label followed by colour picker (or Colour when there is no label), and is skipped by the tab key.",
|
|
2088
|
-
"An error sets the text box invalid and describes it with the error text; without an error, the
|
|
2229
|
+
"An error sets the text box invalid and describes it with the error text; without an error, the helper text describes it."
|
|
2089
2230
|
]
|
|
2090
2231
|
}
|
|
2091
2232
|
},
|
|
@@ -2113,6 +2254,7 @@
|
|
|
2113
2254
|
],
|
|
2114
2255
|
"do": [
|
|
2115
2256
|
{
|
|
2257
|
+
"title": "One Columns button in the toolbar",
|
|
2116
2258
|
"note": "One Columns button in the toolbar actions, beside search and export.",
|
|
2117
2259
|
"example": [
|
|
2118
2260
|
{
|
|
@@ -2151,6 +2293,7 @@
|
|
|
2151
2293
|
],
|
|
2152
2294
|
"dont": [
|
|
2153
2295
|
{
|
|
2296
|
+
"title": "One Columns button in the toolbar",
|
|
2154
2297
|
"note": "A permanent row of checkboxes takes space above the table and pushes the data down.",
|
|
2155
2298
|
"example": [
|
|
2156
2299
|
{
|
|
@@ -2265,6 +2408,7 @@
|
|
|
2265
2408
|
],
|
|
2266
2409
|
"do": [
|
|
2267
2410
|
{
|
|
2411
|
+
"title": "Booleans as ticks, plain row labels",
|
|
2268
2412
|
"note": "Every row appears for every column, so the reader can read across. The row label names the capability in the customer’s words.",
|
|
2269
2413
|
"example": [
|
|
2270
2414
|
{
|
|
@@ -2300,6 +2444,7 @@
|
|
|
2300
2444
|
],
|
|
2301
2445
|
"dont": [
|
|
2302
2446
|
{
|
|
2447
|
+
"title": "Booleans as ticks, plain row labels",
|
|
2303
2448
|
"note": "Two highlighted columns both tint, so no option reads as the recommendation; internal jargon in the row label; and hand-typed dashes and Y instead of booleans lose the tick's shape cue.",
|
|
2304
2449
|
"example": [
|
|
2305
2450
|
{
|
|
@@ -2368,6 +2513,7 @@
|
|
|
2368
2513
|
],
|
|
2369
2514
|
"do": [
|
|
2370
2515
|
{
|
|
2516
|
+
"title": "Name the verb and use danger",
|
|
2371
2517
|
"note": "The danger tone + a verb-labelled button (\"Delete\") makes the weight and the outcome of the action clear.",
|
|
2372
2518
|
"example": [
|
|
2373
2519
|
{
|
|
@@ -2380,6 +2526,7 @@
|
|
|
2380
2526
|
]
|
|
2381
2527
|
},
|
|
2382
2528
|
{
|
|
2529
|
+
"title": "Typed name only for irreversible actions",
|
|
2383
2530
|
"note": "For an account-wide wipe, confirmPhrase forces the user to type the name, so there are no accidental clicks.",
|
|
2384
2531
|
"example": [
|
|
2385
2532
|
{
|
|
@@ -2394,6 +2541,7 @@
|
|
|
2394
2541
|
],
|
|
2395
2542
|
"dont": [
|
|
2396
2543
|
{
|
|
2544
|
+
"title": "Name the verb and use danger",
|
|
2397
2545
|
"note": "A neutral \"OK\" on a destructive confirm hides what pressing it actually does.",
|
|
2398
2546
|
"example": [
|
|
2399
2547
|
{
|
|
@@ -2403,6 +2551,7 @@
|
|
|
2403
2551
|
]
|
|
2404
2552
|
},
|
|
2405
2553
|
{
|
|
2554
|
+
"title": "Typed name only for irreversible actions",
|
|
2406
2555
|
"note": "Gating a reversible archive behind a typed phrase is friction with no payoff, so save it for the irreversible.",
|
|
2407
2556
|
"example": [
|
|
2408
2557
|
{
|
|
@@ -2553,7 +2702,7 @@
|
|
|
2553
2702
|
"dont": [],
|
|
2554
2703
|
"a11y": [
|
|
2555
2704
|
"The visible label is the control's accessible name, unless an aria-label or aria-labelledby is passed, and it is tied to the control through its id.",
|
|
2556
|
-
"An error sets aria-invalid on the control and is linked to it with aria-describedby; the
|
|
2705
|
+
"An error sets aria-invalid on the control and is linked to it with aria-describedby; the helper text is linked the same way when there is no error.",
|
|
2557
2706
|
"A required field marks the label with the required mark and sets required on the control."
|
|
2558
2707
|
]
|
|
2559
2708
|
}
|
|
@@ -2628,6 +2777,7 @@
|
|
|
2628
2777
|
],
|
|
2629
2778
|
"do": [
|
|
2630
2779
|
{
|
|
2780
|
+
"title": "Say when a table is empty",
|
|
2631
2781
|
"note": "An explicit empty message tells the user the list is genuinely empty, not broken.",
|
|
2632
2782
|
"example": [
|
|
2633
2783
|
{
|
|
@@ -2658,6 +2808,7 @@
|
|
|
2658
2808
|
],
|
|
2659
2809
|
"dont": [
|
|
2660
2810
|
{
|
|
2811
|
+
"title": "Say when a table is empty",
|
|
2661
2812
|
"note": "A blank table with no message reads as a bug, because the user cannot tell empty from failed.",
|
|
2662
2813
|
"example": [
|
|
2663
2814
|
{
|
|
@@ -2721,6 +2872,7 @@
|
|
|
2721
2872
|
],
|
|
2722
2873
|
"do": [
|
|
2723
2874
|
{
|
|
2875
|
+
"title": "Give the date a visible label",
|
|
2724
2876
|
"note": "A visible label above the field. The user knows what the date is for before opening it.",
|
|
2725
2877
|
"example": [
|
|
2726
2878
|
{
|
|
@@ -2734,6 +2886,7 @@
|
|
|
2734
2886
|
]
|
|
2735
2887
|
},
|
|
2736
2888
|
{
|
|
2889
|
+
"title": "Set min and max bounds",
|
|
2737
2890
|
"note": "min / max stop invalid dates at the source, so the user can only pick a real one.",
|
|
2738
2891
|
"example": [
|
|
2739
2892
|
{
|
|
@@ -2749,6 +2902,7 @@
|
|
|
2749
2902
|
],
|
|
2750
2903
|
"dont": [
|
|
2751
2904
|
{
|
|
2905
|
+
"title": "Give the date a visible label",
|
|
2752
2906
|
"note": "Only a placeholder as the label, which vanishes the moment a date is picked.",
|
|
2753
2907
|
"example": [
|
|
2754
2908
|
{
|
|
@@ -2761,6 +2915,7 @@
|
|
|
2761
2915
|
]
|
|
2762
2916
|
},
|
|
2763
2917
|
{
|
|
2918
|
+
"title": "Set min and max bounds",
|
|
2764
2919
|
"note": "No bounds, then reject the date after submit. Constrain up front instead.",
|
|
2765
2920
|
"example": [
|
|
2766
2921
|
{
|
|
@@ -2774,7 +2929,7 @@
|
|
|
2774
2929
|
],
|
|
2775
2930
|
"a11y": [
|
|
2776
2931
|
"The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
|
|
2777
|
-
"
|
|
2932
|
+
"Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
|
|
2778
2933
|
"Required and disabled are set as native attributes on the control."
|
|
2779
2934
|
]
|
|
2780
2935
|
}
|
|
@@ -2805,7 +2960,7 @@
|
|
|
2805
2960
|
"dont": [],
|
|
2806
2961
|
"a11y": [
|
|
2807
2962
|
"The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
|
|
2808
|
-
"
|
|
2963
|
+
"Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
|
|
2809
2964
|
"Required and disabled are set as native attributes on the control."
|
|
2810
2965
|
]
|
|
2811
2966
|
}
|
|
@@ -2835,6 +2990,7 @@
|
|
|
2835
2990
|
],
|
|
2836
2991
|
"do": [
|
|
2837
2992
|
{
|
|
2993
|
+
"title": "Name each value",
|
|
2838
2994
|
"note": "Specific, concise labels (no generic \"Info\") and clear values.",
|
|
2839
2995
|
"example": [
|
|
2840
2996
|
{
|
|
@@ -2857,6 +3013,7 @@
|
|
|
2857
3013
|
],
|
|
2858
3014
|
"dont": [
|
|
2859
3015
|
{
|
|
3016
|
+
"title": "Name each value",
|
|
2860
3017
|
"note": "Generic labels like \"Data 1\" and ellipsis placeholders carry no meaning.",
|
|
2861
3018
|
"example": [
|
|
2862
3019
|
{
|
|
@@ -2906,6 +3063,7 @@
|
|
|
2906
3063
|
],
|
|
2907
3064
|
"do": [
|
|
2908
3065
|
{
|
|
3066
|
+
"title": "Beside the list it details",
|
|
2909
3067
|
"note": "The pane sits beside the list it details. Escape inside it calls onClose.",
|
|
2910
3068
|
"example": [
|
|
2911
3069
|
{
|
|
@@ -2926,6 +3084,7 @@
|
|
|
2926
3084
|
],
|
|
2927
3085
|
"dont": [
|
|
2928
3086
|
{
|
|
3087
|
+
"title": "Beside the list it details",
|
|
2929
3088
|
"note": "Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.",
|
|
2930
3089
|
"example": [
|
|
2931
3090
|
{
|
|
@@ -3011,7 +3170,7 @@
|
|
|
3011
3170
|
"dont": [],
|
|
3012
3171
|
"a11y": [
|
|
3013
3172
|
"The zone is a label bound to a visually hidden native file input, so keyboard and screen reader users reach the same file chooser as a click.",
|
|
3014
|
-
"The input is described by the
|
|
3173
|
+
"The input is described by the helper text, or by the error when one shows, through aria-describedby.",
|
|
3015
3174
|
"A disabled zone sets aria-disabled, disables the input and ignores drops."
|
|
3016
3175
|
]
|
|
3017
3176
|
}
|
|
@@ -3044,6 +3203,7 @@
|
|
|
3044
3203
|
],
|
|
3045
3204
|
"do": [
|
|
3046
3205
|
{
|
|
3206
|
+
"title": "Put the destructive item last",
|
|
3047
3207
|
"note": "Overflow actions collapse into one trigger, with the destructive one marked danger and placed last.",
|
|
3048
3208
|
"example": [
|
|
3049
3209
|
{
|
|
@@ -3074,6 +3234,7 @@
|
|
|
3074
3234
|
]
|
|
3075
3235
|
},
|
|
3076
3236
|
{
|
|
3237
|
+
"title": "Keep the menu short and clear",
|
|
3077
3238
|
"note": "A short, scannable list of clearly worded actions.",
|
|
3078
3239
|
"example": [
|
|
3079
3240
|
{
|
|
@@ -3098,6 +3259,7 @@
|
|
|
3098
3259
|
],
|
|
3099
3260
|
"dont": [
|
|
3100
3261
|
{
|
|
3262
|
+
"title": "Put the destructive item last",
|
|
3101
3263
|
"note": "Delete sits first and unmarked, so it looks like every other item and is the easiest to hit by mistake.",
|
|
3102
3264
|
"example": [
|
|
3103
3265
|
{
|
|
@@ -3127,6 +3289,7 @@
|
|
|
3127
3289
|
]
|
|
3128
3290
|
},
|
|
3129
3291
|
{
|
|
3292
|
+
"title": "Keep the menu short and clear",
|
|
3130
3293
|
"note": "A menu with nine items becomes a wall to read. Group or split it, or promote the common ones out.",
|
|
3131
3294
|
"example": [
|
|
3132
3295
|
{
|
|
@@ -3235,6 +3398,7 @@
|
|
|
3235
3398
|
],
|
|
3236
3399
|
"do": [
|
|
3237
3400
|
{
|
|
3401
|
+
"title": "Offer a next step",
|
|
3238
3402
|
"note": "Names what's missing, explains why it matters, and offers the exact action to fix it.",
|
|
3239
3403
|
"example": [
|
|
3240
3404
|
{
|
|
@@ -3255,6 +3419,7 @@
|
|
|
3255
3419
|
]
|
|
3256
3420
|
},
|
|
3257
3421
|
{
|
|
3422
|
+
"title": "Explain a search with no matches",
|
|
3258
3423
|
"note": "A search-empty explains the specific query and suggests how to get results.",
|
|
3259
3424
|
"example": [
|
|
3260
3425
|
{
|
|
@@ -3266,10 +3431,25 @@
|
|
|
3266
3431
|
}
|
|
3267
3432
|
}
|
|
3268
3433
|
]
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
"title": "Keep the description specific",
|
|
3437
|
+
"note": "A description that says what the empty state means helps the user, where filler only pads the space.",
|
|
3438
|
+
"example": [
|
|
3439
|
+
{
|
|
3440
|
+
"component": "AppEmptyState",
|
|
3441
|
+
"props": {
|
|
3442
|
+
"icon": "inbox",
|
|
3443
|
+
"title": "No requests this week",
|
|
3444
|
+
"description": "Requests you raise appear here once they are submitted."
|
|
3445
|
+
}
|
|
3446
|
+
}
|
|
3447
|
+
]
|
|
3269
3448
|
}
|
|
3270
3449
|
],
|
|
3271
3450
|
"dont": [
|
|
3272
3451
|
{
|
|
3452
|
+
"title": "Offer a next step",
|
|
3273
3453
|
"note": "A bare \"Empty\" with no guidance and no action leaves the user stuck at a dead end.",
|
|
3274
3454
|
"example": [
|
|
3275
3455
|
{
|
|
@@ -3282,6 +3462,20 @@
|
|
|
3282
3462
|
]
|
|
3283
3463
|
},
|
|
3284
3464
|
{
|
|
3465
|
+
"title": "Explain a search with no matches",
|
|
3466
|
+
"note": "A bare \"No results\" with no reason and no way forward leaves the user unsure whether to change the search or the data.",
|
|
3467
|
+
"example": [
|
|
3468
|
+
{
|
|
3469
|
+
"component": "AppEmptyState",
|
|
3470
|
+
"props": {
|
|
3471
|
+
"icon": "search",
|
|
3472
|
+
"title": "No results"
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
]
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"title": "Keep the description specific",
|
|
3285
3479
|
"note": "Repetitive filler text pads the space without helping the user do anything.",
|
|
3286
3480
|
"example": [
|
|
3287
3481
|
{
|
|
@@ -3325,22 +3519,55 @@
|
|
|
3325
3519
|
],
|
|
3326
3520
|
"do": [
|
|
3327
3521
|
{
|
|
3522
|
+
"title": "Clear the error on navigation",
|
|
3328
3523
|
"note": "Pass resetKeys so moving to another page clears the error.",
|
|
3329
3524
|
"example": [
|
|
3330
3525
|
{
|
|
3331
3526
|
"component": "AppErrorBoundary",
|
|
3332
|
-
"props": {
|
|
3527
|
+
"props": {
|
|
3528
|
+
"resetKeys": [
|
|
3529
|
+
"/projects"
|
|
3530
|
+
]
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
]
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
"title": "Never show the error text",
|
|
3537
|
+
"note": "The default screen shows a plain sentence, so internal details stay private.",
|
|
3538
|
+
"example": [
|
|
3539
|
+
{
|
|
3540
|
+
"component": "AppErrorBoundary",
|
|
3541
|
+
"props": {
|
|
3542
|
+
"homeHref": "/dashboard"
|
|
3543
|
+
}
|
|
3333
3544
|
}
|
|
3334
3545
|
]
|
|
3335
3546
|
}
|
|
3336
3547
|
],
|
|
3337
3548
|
"dont": [
|
|
3338
3549
|
{
|
|
3339
|
-
"
|
|
3550
|
+
"title": "Clear the error on navigation",
|
|
3551
|
+
"note": "Without resetKeys, the error stays on screen after the person moves to another page.",
|
|
3552
|
+
"example": [
|
|
3553
|
+
{
|
|
3554
|
+
"component": "AppErrorBoundary",
|
|
3555
|
+
"props": {
|
|
3556
|
+
"brand": "Projects"
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
]
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"title": "Never show the error text",
|
|
3563
|
+
"note": "It can leak internal details to the person reading the page, so the fallback never shows the error text.",
|
|
3340
3564
|
"example": [
|
|
3341
3565
|
{
|
|
3342
|
-
"component": "
|
|
3343
|
-
"
|
|
3566
|
+
"component": "AppCodeBlock",
|
|
3567
|
+
"props": {
|
|
3568
|
+
"code": "TypeError: Cannot read properties of undefined (reading 'map')",
|
|
3569
|
+
"language": "text"
|
|
3570
|
+
}
|
|
3344
3571
|
}
|
|
3345
3572
|
]
|
|
3346
3573
|
}
|
|
@@ -3410,6 +3637,7 @@
|
|
|
3410
3637
|
],
|
|
3411
3638
|
"do": [
|
|
3412
3639
|
{
|
|
3640
|
+
"title": "Name the row and limit types",
|
|
3413
3641
|
"note": "Give the row a specific label and restrict the accepted types, so the user knows what belongs here and what is allowed before they pick.",
|
|
3414
3642
|
"example": [
|
|
3415
3643
|
{
|
|
@@ -3423,6 +3651,7 @@
|
|
|
3423
3651
|
]
|
|
3424
3652
|
},
|
|
3425
3653
|
{
|
|
3654
|
+
"title": "Make a required file's requirement visible",
|
|
3426
3655
|
"note": "Surface a submit-time requirement with a message below the row, in the field's error style.",
|
|
3427
3656
|
"example": [
|
|
3428
3657
|
{
|
|
@@ -3437,6 +3666,7 @@
|
|
|
3437
3666
|
],
|
|
3438
3667
|
"dont": [
|
|
3439
3668
|
{
|
|
3669
|
+
"title": "Name the row and limit types",
|
|
3440
3670
|
"note": "A bare \"Attach\" label with no constraints leaves the user unsure what belongs here or what the field accepts.",
|
|
3441
3671
|
"example": [
|
|
3442
3672
|
{
|
|
@@ -3448,6 +3678,7 @@
|
|
|
3448
3678
|
]
|
|
3449
3679
|
},
|
|
3450
3680
|
{
|
|
3681
|
+
"title": "Make a required file's requirement visible",
|
|
3451
3682
|
"note": "Marking a genuinely required attachment \"optional\" mis-signals that it can be skipped.",
|
|
3452
3683
|
"example": [
|
|
3453
3684
|
{
|
|
@@ -3495,6 +3726,7 @@
|
|
|
3495
3726
|
],
|
|
3496
3727
|
"do": [
|
|
3497
3728
|
{
|
|
3729
|
+
"title": "Give the field a specific label",
|
|
3498
3730
|
"note": "Give the field a specific label, \"Structure photo\" rather than \"Upload\", so the user knows what image belongs here.",
|
|
3499
3731
|
"example": [
|
|
3500
3732
|
{
|
|
@@ -3506,6 +3738,7 @@
|
|
|
3506
3738
|
]
|
|
3507
3739
|
},
|
|
3508
3740
|
{
|
|
3741
|
+
"title": "Show validation beside the field",
|
|
3509
3742
|
"note": "Surface validation with a message below the zone, in the field's own error style, so the eye lands on it next to the control.",
|
|
3510
3743
|
"example": [
|
|
3511
3744
|
{
|
|
@@ -3521,7 +3754,8 @@
|
|
|
3521
3754
|
],
|
|
3522
3755
|
"dont": [
|
|
3523
3756
|
{
|
|
3524
|
-
"
|
|
3757
|
+
"title": "Give the field a specific label",
|
|
3758
|
+
"note": "A vague \"File\" label leaves the user guessing what to drop, and mixes with the format line already in the zone.",
|
|
3525
3759
|
"example": [
|
|
3526
3760
|
{
|
|
3527
3761
|
"component": "AppFilePicker",
|
|
@@ -3532,6 +3766,7 @@
|
|
|
3532
3766
|
]
|
|
3533
3767
|
},
|
|
3534
3768
|
{
|
|
3769
|
+
"title": "Show validation beside the field",
|
|
3535
3770
|
"note": "A required field with no message on submit leaves the user unsure why the form will not save.",
|
|
3536
3771
|
"example": [
|
|
3537
3772
|
{
|
|
@@ -3546,7 +3781,7 @@
|
|
|
3546
3781
|
],
|
|
3547
3782
|
"a11y": [
|
|
3548
3783
|
"The label is tied to the file input, and the dropzone is a label for the same input, so the zone opens the picker by click or keyboard.",
|
|
3549
|
-
"A shown error or
|
|
3784
|
+
"A shown error or helper text is linked to the file input through aria-describedby.",
|
|
3550
3785
|
"While loading, the control is marked aria-busy and a spinner with the status role named Loading shows.",
|
|
3551
3786
|
"In single mode the preview has a button to change the file and a separate remove button, each with an accessible name."
|
|
3552
3787
|
]
|
|
@@ -3830,6 +4065,7 @@
|
|
|
3830
4065
|
],
|
|
3831
4066
|
"do": [
|
|
3832
4067
|
{
|
|
4068
|
+
"title": "Reinforce a text label",
|
|
3833
4069
|
"note": "The icon reinforces a clear text label: it supports the word and does not replace it.",
|
|
3834
4070
|
"example": [
|
|
3835
4071
|
{
|
|
@@ -3848,6 +4084,7 @@
|
|
|
3848
4084
|
]
|
|
3849
4085
|
},
|
|
3850
4086
|
{
|
|
4087
|
+
"title": "Match the text size",
|
|
3851
4088
|
"note": "AppIcon size matches the text it sits beside, so the baseline stays clean.",
|
|
3852
4089
|
"example": [
|
|
3853
4090
|
{
|
|
@@ -3873,6 +4110,7 @@
|
|
|
3873
4110
|
],
|
|
3874
4111
|
"dont": [
|
|
3875
4112
|
{
|
|
4113
|
+
"title": "Reinforce a text label",
|
|
3876
4114
|
"note": "Hand-written icon markup in app code bypasses the shared name map and drifts.",
|
|
3877
4115
|
"example": [
|
|
3878
4116
|
{
|
|
@@ -3894,6 +4132,7 @@
|
|
|
3894
4132
|
]
|
|
3895
4133
|
},
|
|
3896
4134
|
{
|
|
4135
|
+
"title": "Match the text size",
|
|
3897
4136
|
"note": "A glyph far larger than its label unbalances the row and pulls the eye away from the words.",
|
|
3898
4137
|
"example": [
|
|
3899
4138
|
{
|
|
@@ -3949,6 +4188,7 @@
|
|
|
3949
4188
|
],
|
|
3950
4189
|
"do": [
|
|
3951
4190
|
{
|
|
4191
|
+
"title": "Name the action the overlay performs",
|
|
3952
4192
|
"note": "Set an overlay label that names the thing, such as \"Change logo\", so the hover affordance says exactly what happens.",
|
|
3953
4193
|
"example": [
|
|
3954
4194
|
{
|
|
@@ -3961,6 +4201,7 @@
|
|
|
3961
4201
|
]
|
|
3962
4202
|
},
|
|
3963
4203
|
{
|
|
4204
|
+
"title": "Label and size the picker",
|
|
3964
4205
|
"note": "Say what a good photo is. People crop better when they know.",
|
|
3965
4206
|
"example": [
|
|
3966
4207
|
{
|
|
@@ -3977,6 +4218,7 @@
|
|
|
3977
4218
|
],
|
|
3978
4219
|
"dont": [
|
|
3979
4220
|
{
|
|
4221
|
+
"title": "Name the action the overlay performs",
|
|
3980
4222
|
"note": "A generic \"Click\" overlay tells the user how to interact but not what the action does.",
|
|
3981
4223
|
"example": [
|
|
3982
4224
|
{
|
|
@@ -3989,6 +4231,7 @@
|
|
|
3989
4231
|
]
|
|
3990
4232
|
},
|
|
3991
4233
|
{
|
|
4234
|
+
"title": "Label and size the picker",
|
|
3992
4235
|
"note": "A tiny, disabled avatar picker with no label. Nobody can tell it sets their photo.",
|
|
3993
4236
|
"example": [
|
|
3994
4237
|
{
|
|
@@ -4006,7 +4249,7 @@
|
|
|
4006
4249
|
"a11y": [
|
|
4007
4250
|
"The upload control is named by ariaLabel, else by Upload photo for the overlay and by the action's words (Choose or Change photo) for buttons. It is disabled and marked busy while loading.",
|
|
4008
4251
|
"The remove control is its own button named by removeLabel, and it stays hidden until there is an image to remove.",
|
|
4009
|
-
"The
|
|
4252
|
+
"The helper text or the error is tied to the upload control with aria-describedby, and an error wins over helper text.",
|
|
4010
4253
|
"The buttons look sits out of the tab order and the Upload button beside it is the keyboard path to the same action."
|
|
4011
4254
|
]
|
|
4012
4255
|
}
|
|
@@ -4025,8 +4268,8 @@
|
|
|
4025
4268
|
"instead": "AppAlert"
|
|
4026
4269
|
},
|
|
4027
4270
|
{
|
|
4028
|
-
"text": "It is a permanent
|
|
4029
|
-
"instead": "the
|
|
4271
|
+
"text": "It is a permanent helper text under a field the user should always read.",
|
|
4272
|
+
"instead": "the helperText prop on AppInput"
|
|
4030
4273
|
},
|
|
4031
4274
|
{
|
|
4032
4275
|
"text": "You would otherwise expose the text via a native title=\"\".",
|
|
@@ -4039,6 +4282,7 @@
|
|
|
4039
4282
|
],
|
|
4040
4283
|
"do": [
|
|
4041
4284
|
{
|
|
4285
|
+
"title": "Ask the question in the label",
|
|
4042
4286
|
"note": "Give the tip a descriptive label (a real question) so it’s clear what the “?” explains, and keep the body to a sentence.",
|
|
4043
4287
|
"example": [
|
|
4044
4288
|
{
|
|
@@ -4060,6 +4304,7 @@
|
|
|
4060
4304
|
]
|
|
4061
4305
|
},
|
|
4062
4306
|
{
|
|
4307
|
+
"title": "Attach the tip to its term",
|
|
4063
4308
|
"note": "Attach the tip to the exact term it explains, inline with the label, so the “?” sits where the question arises.",
|
|
4064
4309
|
"example": [
|
|
4065
4310
|
{
|
|
@@ -4083,6 +4328,7 @@
|
|
|
4083
4328
|
],
|
|
4084
4329
|
"dont": [
|
|
4085
4330
|
{
|
|
4331
|
+
"title": "Ask the question in the label",
|
|
4086
4332
|
"note": "A vague “info” label and a wall of text overload a tip: move long explanations into a linked doc.",
|
|
4087
4333
|
"example": [
|
|
4088
4334
|
{
|
|
@@ -4104,6 +4350,7 @@
|
|
|
4104
4350
|
]
|
|
4105
4351
|
},
|
|
4106
4352
|
{
|
|
4353
|
+
"title": "Attach the tip to its term",
|
|
4107
4354
|
"note": "Burying the explanation elsewhere (or omitting it) forces the user to leave the field to understand it.",
|
|
4108
4355
|
"example": [
|
|
4109
4356
|
{
|
|
@@ -4159,7 +4406,7 @@
|
|
|
4159
4406
|
"usage": {
|
|
4160
4407
|
"when": [
|
|
4161
4408
|
"The user enters a single line of text or a number: name, email, amount, reference.",
|
|
4162
|
-
"You want the shared field treatment: label,
|
|
4409
|
+
"You want the shared field treatment: label, helper text, error, and required marking.",
|
|
4163
4410
|
"A specific type (email, number, tel) should drive the keyboard and native validation."
|
|
4164
4411
|
],
|
|
4165
4412
|
"whenNot": [
|
|
@@ -4182,6 +4429,7 @@
|
|
|
4182
4429
|
],
|
|
4183
4430
|
"do": [
|
|
4184
4431
|
{
|
|
4432
|
+
"title": "A visible label, not a placeholder",
|
|
4185
4433
|
"note": "A visible label stays put while the user types and is read by screen readers.",
|
|
4186
4434
|
"example": [
|
|
4187
4435
|
{
|
|
@@ -4196,6 +4444,7 @@
|
|
|
4196
4444
|
]
|
|
4197
4445
|
},
|
|
4198
4446
|
{
|
|
4447
|
+
"title": "Use the right input type",
|
|
4199
4448
|
"note": "type=\"email\" brings the right keyboard and native validation for free.",
|
|
4200
4449
|
"example": [
|
|
4201
4450
|
{
|
|
@@ -4210,6 +4459,7 @@
|
|
|
4210
4459
|
]
|
|
4211
4460
|
},
|
|
4212
4461
|
{
|
|
4462
|
+
"title": "Say exactly what is wrong",
|
|
4213
4463
|
"note": "A specific error tells the user exactly what to change.",
|
|
4214
4464
|
"example": [
|
|
4215
4465
|
{
|
|
@@ -4226,6 +4476,7 @@
|
|
|
4226
4476
|
],
|
|
4227
4477
|
"dont": [
|
|
4228
4478
|
{
|
|
4479
|
+
"title": "A visible label, not a placeholder",
|
|
4229
4480
|
"note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
|
|
4230
4481
|
"example": [
|
|
4231
4482
|
{
|
|
@@ -4238,6 +4489,7 @@
|
|
|
4238
4489
|
]
|
|
4239
4490
|
},
|
|
4240
4491
|
{
|
|
4492
|
+
"title": "Use the right input type",
|
|
4241
4493
|
"note": "A plain text type misses the email keyboard and validation the browser could give.",
|
|
4242
4494
|
"example": [
|
|
4243
4495
|
{
|
|
@@ -4252,6 +4504,7 @@
|
|
|
4252
4504
|
]
|
|
4253
4505
|
},
|
|
4254
4506
|
{
|
|
4507
|
+
"title": "Say exactly what is wrong",
|
|
4255
4508
|
"note": "Invalid leaves them guessing what is actually wrong.",
|
|
4256
4509
|
"example": [
|
|
4257
4510
|
{
|
|
@@ -4267,7 +4520,7 @@
|
|
|
4267
4520
|
}
|
|
4268
4521
|
],
|
|
4269
4522
|
"a11y": [
|
|
4270
|
-
"The control carries aria-invalid, and aria-describedby points at the error or the
|
|
4523
|
+
"The control carries aria-invalid, and aria-describedby points at the error or the helper text.",
|
|
4271
4524
|
"The clear button is named Clear and is hidden while the field is empty.",
|
|
4272
4525
|
"The password reveal button is named Show password or Hide password, and the checklist sits in a polite live region.",
|
|
4273
4526
|
"The right-icon button is named by rightIconLabel, or by the icon name when none is given.",
|
|
@@ -4336,7 +4589,7 @@
|
|
|
4336
4589
|
"name": "AppKbd",
|
|
4337
4590
|
"usage": {
|
|
4338
4591
|
"when": [
|
|
4339
|
-
"Naming a key in help text, a
|
|
4592
|
+
"Naming a key in help text, in a field's helper text or in an empty state.",
|
|
4340
4593
|
"A legend or a guide that lists keys."
|
|
4341
4594
|
],
|
|
4342
4595
|
"whenNot": [
|
|
@@ -4385,6 +4638,7 @@
|
|
|
4385
4638
|
],
|
|
4386
4639
|
"do": [
|
|
4387
4640
|
{
|
|
4641
|
+
"title": "Name the measure and comparison",
|
|
4388
4642
|
"note": "Name what is measured and say what the delta compares against. “vs last week” is what makes 12 meaningful.",
|
|
4389
4643
|
"example": [
|
|
4390
4644
|
{
|
|
@@ -4401,6 +4655,7 @@
|
|
|
4401
4655
|
],
|
|
4402
4656
|
"dont": [
|
|
4403
4657
|
{
|
|
4658
|
+
"title": "Name the measure and comparison",
|
|
4404
4659
|
"note": "“Count” of what? “+4” since when? The reader cannot act on either without going to look somewhere else.",
|
|
4405
4660
|
"example": [
|
|
4406
4661
|
{
|
|
@@ -4504,6 +4759,7 @@
|
|
|
4504
4759
|
],
|
|
4505
4760
|
"do": [
|
|
4506
4761
|
{
|
|
4762
|
+
"title": "Name the destination",
|
|
4507
4763
|
"note": "One clear animation and a descriptive label. The link reads as a link and says where it goes.",
|
|
4508
4764
|
"example": [
|
|
4509
4765
|
{
|
|
@@ -4519,6 +4775,7 @@
|
|
|
4519
4775
|
],
|
|
4520
4776
|
"dont": [
|
|
4521
4777
|
{
|
|
4778
|
+
"title": "Name the destination",
|
|
4522
4779
|
"note": "“Click here” tells the reader nothing. Name the destination so the link explains where it goes.",
|
|
4523
4780
|
"example": [
|
|
4524
4781
|
{
|
|
@@ -4589,7 +4846,7 @@
|
|
|
4589
4846
|
"dont": [],
|
|
4590
4847
|
"a11y": [
|
|
4591
4848
|
"The label points at the text box, whose id is the element id plus -text, so the label names it.",
|
|
4592
|
-
"The
|
|
4849
|
+
"The helper text or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.",
|
|
4593
4850
|
"In the list, Up and Down choose, Enter or Tab mention and Escape closes it. Backspace just after a mention removes it whole."
|
|
4594
4851
|
]
|
|
4595
4852
|
}
|
|
@@ -4618,6 +4875,7 @@
|
|
|
4618
4875
|
],
|
|
4619
4876
|
"do": [
|
|
4620
4877
|
{
|
|
4878
|
+
"title": "Use meters for measurements, not tasks",
|
|
4621
4879
|
"note": "Real thresholds that mean something operationally, so the auto-tone is trustworthy.",
|
|
4622
4880
|
"example": [
|
|
4623
4881
|
{
|
|
@@ -4636,6 +4894,7 @@
|
|
|
4636
4894
|
],
|
|
4637
4895
|
"dont": [
|
|
4638
4896
|
{
|
|
4897
|
+
"title": "Use meters for measurements, not tasks",
|
|
4639
4898
|
"note": "A task advancing toward completion is not a measurement: that is AppProgress, not AppMeter.",
|
|
4640
4899
|
"example": [
|
|
4641
4900
|
{
|
|
@@ -4713,6 +4972,7 @@
|
|
|
4713
4972
|
],
|
|
4714
4973
|
"do": [
|
|
4715
4974
|
{
|
|
4975
|
+
"title": "One trigger, one dialog",
|
|
4716
4976
|
"note": "A clear trigger opens a single-purpose dialog; open/onClose stay controlled so Escape and the backdrop always work.",
|
|
4717
4977
|
"example": [
|
|
4718
4978
|
{
|
|
@@ -4722,6 +4982,7 @@
|
|
|
4722
4982
|
]
|
|
4723
4983
|
},
|
|
4724
4984
|
{
|
|
4985
|
+
"title": "One primary action in the footer",
|
|
4725
4986
|
"note": "A footer that pairs a secondary Cancel with one primary confirm: the eye knows the main action.",
|
|
4726
4987
|
"example": [
|
|
4727
4988
|
{
|
|
@@ -4748,6 +5009,7 @@
|
|
|
4748
5009
|
],
|
|
4749
5010
|
"dont": [
|
|
4750
5011
|
{
|
|
5012
|
+
"title": "One trigger, one dialog",
|
|
4751
5013
|
"note": "A modal with no onClose traps the user: the backdrop and Escape have nothing to call.",
|
|
4752
5014
|
"example": [
|
|
4753
5015
|
{
|
|
@@ -4760,6 +5022,7 @@
|
|
|
4760
5022
|
]
|
|
4761
5023
|
},
|
|
4762
5024
|
{
|
|
5025
|
+
"title": "One primary action in the footer",
|
|
4763
5026
|
"note": "Three competing primaries in the footer leave the user unsure which one commits.",
|
|
4764
5027
|
"example": [
|
|
4765
5028
|
{
|
|
@@ -4820,6 +5083,7 @@
|
|
|
4820
5083
|
],
|
|
4821
5084
|
"do": [
|
|
4822
5085
|
{
|
|
5086
|
+
"title": "Several picks as chips, not checkboxes",
|
|
4823
5087
|
"note": "Many related values in one compact control; the current picks read back as chips.",
|
|
4824
5088
|
"example": [
|
|
4825
5089
|
{
|
|
@@ -4872,6 +5136,7 @@
|
|
|
4872
5136
|
]
|
|
4873
5137
|
},
|
|
4874
5138
|
{
|
|
5139
|
+
"title": "Make long lists searchable",
|
|
4875
5140
|
"note": "A searchable checklist keeps a long list usable: the user filters instead of scrolling.",
|
|
4876
5141
|
"example": [
|
|
4877
5142
|
{
|
|
@@ -4918,10 +5183,59 @@
|
|
|
4918
5183
|
}
|
|
4919
5184
|
}
|
|
4920
5185
|
]
|
|
5186
|
+
},
|
|
5187
|
+
{
|
|
5188
|
+
"title": "Single values use single-select",
|
|
5189
|
+
"note": "One value can apply here, so a single-select dropdown says so; a multiselect invites over-picking.",
|
|
5190
|
+
"example": [
|
|
5191
|
+
{
|
|
5192
|
+
"component": "AppSelect",
|
|
5193
|
+
"props": {
|
|
5194
|
+
"label": "Primary standard",
|
|
5195
|
+
"name": "standard",
|
|
5196
|
+
"value": "iec-62305",
|
|
5197
|
+
"options": [
|
|
5198
|
+
{
|
|
5199
|
+
"value": "risk-assessment",
|
|
5200
|
+
"label": "Risk assessment"
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"value": "lightning-protection",
|
|
5204
|
+
"label": "Lightning protection"
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"value": "surge-protection",
|
|
5208
|
+
"label": "Surge protection"
|
|
5209
|
+
},
|
|
5210
|
+
{
|
|
5211
|
+
"value": "earthing",
|
|
5212
|
+
"label": "Earthing"
|
|
5213
|
+
},
|
|
5214
|
+
{
|
|
5215
|
+
"value": "bonding",
|
|
5216
|
+
"label": "Bonding"
|
|
5217
|
+
},
|
|
5218
|
+
{
|
|
5219
|
+
"value": "site-survey",
|
|
5220
|
+
"label": "Site survey"
|
|
5221
|
+
},
|
|
5222
|
+
{
|
|
5223
|
+
"value": "iec-62305",
|
|
5224
|
+
"label": "IEC 62305"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"value": "reporting",
|
|
5228
|
+
"label": "Reporting"
|
|
5229
|
+
}
|
|
5230
|
+
]
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
]
|
|
4921
5234
|
}
|
|
4922
5235
|
],
|
|
4923
5236
|
"dont": [
|
|
4924
5237
|
{
|
|
5238
|
+
"title": "Several picks as chips, not checkboxes",
|
|
4925
5239
|
"note": "A wall of checkboxes for the same multi-pick is slower to scan and hides the total selection.",
|
|
4926
5240
|
"example": [
|
|
4927
5241
|
{
|
|
@@ -4970,6 +5284,57 @@
|
|
|
4970
5284
|
]
|
|
4971
5285
|
},
|
|
4972
5286
|
{
|
|
5287
|
+
"title": "Make long lists searchable",
|
|
5288
|
+
"note": "With search off, the user scrolls the whole list to find one option, so a long list needs a search box.",
|
|
5289
|
+
"example": [
|
|
5290
|
+
{
|
|
5291
|
+
"component": "AppMultiSelect",
|
|
5292
|
+
"props": {
|
|
5293
|
+
"label": "Tags",
|
|
5294
|
+
"name": "tags-unsearchable",
|
|
5295
|
+
"searchable": false,
|
|
5296
|
+
"values": [],
|
|
5297
|
+
"placeholder": "Select tags…",
|
|
5298
|
+
"options": [
|
|
5299
|
+
{
|
|
5300
|
+
"value": "risk-assessment",
|
|
5301
|
+
"label": "Risk assessment"
|
|
5302
|
+
},
|
|
5303
|
+
{
|
|
5304
|
+
"value": "lightning-protection",
|
|
5305
|
+
"label": "Lightning protection"
|
|
5306
|
+
},
|
|
5307
|
+
{
|
|
5308
|
+
"value": "surge-protection",
|
|
5309
|
+
"label": "Surge protection"
|
|
5310
|
+
},
|
|
5311
|
+
{
|
|
5312
|
+
"value": "earthing",
|
|
5313
|
+
"label": "Earthing"
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
"value": "bonding",
|
|
5317
|
+
"label": "Bonding"
|
|
5318
|
+
},
|
|
5319
|
+
{
|
|
5320
|
+
"value": "site-survey",
|
|
5321
|
+
"label": "Site survey"
|
|
5322
|
+
},
|
|
5323
|
+
{
|
|
5324
|
+
"value": "iec-62305",
|
|
5325
|
+
"label": "IEC 62305"
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
"value": "reporting",
|
|
5329
|
+
"label": "Reporting"
|
|
5330
|
+
}
|
|
5331
|
+
]
|
|
5332
|
+
}
|
|
5333
|
+
}
|
|
5334
|
+
]
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
"title": "Single values use single-select",
|
|
4973
5338
|
"note": "Only one value can ever apply here: a single-select dropdown says so; a multiselect invites over-picking.",
|
|
4974
5339
|
"example": [
|
|
4975
5340
|
{
|
|
@@ -5020,7 +5385,7 @@
|
|
|
5020
5385
|
}
|
|
5021
5386
|
],
|
|
5022
5387
|
"a11y": [
|
|
5023
|
-
"The control takes its accessible name from a text label, is described by its
|
|
5388
|
+
"The control takes its accessible name from a text label, is described by its helper text or its error, and is marked invalid while it has an error.",
|
|
5024
5389
|
"A node label is read as its text: the option, the chip and the chip's remove button are named from it.",
|
|
5025
5390
|
"Each chosen value is a removable chip, so the selection is readable without opening the menu."
|
|
5026
5391
|
]
|
|
@@ -5190,6 +5555,7 @@
|
|
|
5190
5555
|
],
|
|
5191
5556
|
"do": [
|
|
5192
5557
|
{
|
|
5558
|
+
"title": "One field for the whole code",
|
|
5193
5559
|
"note": "One labelled field, six boxes drawn underneath. Autofill, paste and a screen reader all work.",
|
|
5194
5560
|
"example": [
|
|
5195
5561
|
{
|
|
@@ -5203,6 +5569,7 @@
|
|
|
5203
5569
|
],
|
|
5204
5570
|
"dont": [
|
|
5205
5571
|
{
|
|
5572
|
+
"title": "One field for the whole code",
|
|
5206
5573
|
"note": "Six inputs: the OS drops the whole SMS code into box one, and a screen reader announces six unlabelled boxes.",
|
|
5207
5574
|
"example": [
|
|
5208
5575
|
{
|
|
@@ -5291,6 +5658,7 @@
|
|
|
5291
5658
|
],
|
|
5292
5659
|
"do": [
|
|
5293
5660
|
{
|
|
5661
|
+
"title": "One primary page action",
|
|
5294
5662
|
"note": "One clear title, a context subtitle, and the single page-level action on the right.",
|
|
5295
5663
|
"example": [
|
|
5296
5664
|
{
|
|
@@ -5310,6 +5678,7 @@
|
|
|
5310
5678
|
]
|
|
5311
5679
|
},
|
|
5312
5680
|
{
|
|
5681
|
+
"title": "Keep the subtitle short and useful",
|
|
5313
5682
|
"note": "The subtitle carries useful state: what this is and when it changed.",
|
|
5314
5683
|
"example": [
|
|
5315
5684
|
{
|
|
@@ -5324,6 +5693,7 @@
|
|
|
5324
5693
|
],
|
|
5325
5694
|
"dont": [
|
|
5326
5695
|
{
|
|
5696
|
+
"title": "One primary page action",
|
|
5327
5697
|
"note": "A pile of equal-weight buttons hides the primary action. Keep secondary ones in a menu.",
|
|
5328
5698
|
"example": [
|
|
5329
5699
|
{
|
|
@@ -5371,6 +5741,7 @@
|
|
|
5371
5741
|
]
|
|
5372
5742
|
},
|
|
5373
5743
|
{
|
|
5744
|
+
"title": "Keep the subtitle short and useful",
|
|
5374
5745
|
"note": "A sentence-long subtitle reads as body copy, not a heading. Keep it to a phrase.",
|
|
5375
5746
|
"example": [
|
|
5376
5747
|
{
|
|
@@ -5418,6 +5789,7 @@
|
|
|
5418
5789
|
],
|
|
5419
5790
|
"do": [
|
|
5420
5791
|
{
|
|
5792
|
+
"title": "Default the country",
|
|
5421
5793
|
"note": "Default the country to the one most users will pick: fewer taps for the common case.",
|
|
5422
5794
|
"example": [
|
|
5423
5795
|
{
|
|
@@ -5431,6 +5803,7 @@
|
|
|
5431
5803
|
]
|
|
5432
5804
|
},
|
|
5433
5805
|
{
|
|
5806
|
+
"title": "Show the error under the field",
|
|
5434
5807
|
"note": "Surface validation inline with error, right under the field the user must fix.",
|
|
5435
5808
|
"example": [
|
|
5436
5809
|
{
|
|
@@ -5447,6 +5820,7 @@
|
|
|
5447
5820
|
],
|
|
5448
5821
|
"dont": [
|
|
5449
5822
|
{
|
|
5823
|
+
"title": "Default the country",
|
|
5450
5824
|
"note": "No label and no sensible default country: the user guesses what to enter and where.",
|
|
5451
5825
|
"example": [
|
|
5452
5826
|
{
|
|
@@ -5459,6 +5833,7 @@
|
|
|
5459
5833
|
]
|
|
5460
5834
|
},
|
|
5461
5835
|
{
|
|
5836
|
+
"title": "Show the error under the field",
|
|
5462
5837
|
"note": "Required with no error feedback: the user submits and is bounced with no clue why.",
|
|
5463
5838
|
"example": [
|
|
5464
5839
|
{
|
|
@@ -5474,7 +5849,7 @@
|
|
|
5474
5849
|
],
|
|
5475
5850
|
"a11y": [
|
|
5476
5851
|
"The label is a real label tied to the field by id, and a text label is also passed to the phone control as its accessible name.",
|
|
5477
|
-
"An error or
|
|
5852
|
+
"An error or helper text is linked to the field with aria-describedby, and the helper text gives way to the error while one shows.",
|
|
5478
5853
|
"An error sets aria-invalid on the control, and required adds the required mark and marks the control required."
|
|
5479
5854
|
]
|
|
5480
5855
|
}
|
|
@@ -5503,6 +5878,7 @@
|
|
|
5503
5878
|
],
|
|
5504
5879
|
"do": [
|
|
5505
5880
|
{
|
|
5881
|
+
"title": "Keep the panel short",
|
|
5506
5882
|
"note": "A short, scannable panel: a few lines the user can read without scrolling.",
|
|
5507
5883
|
"example": [
|
|
5508
5884
|
{
|
|
@@ -5538,6 +5914,7 @@
|
|
|
5538
5914
|
],
|
|
5539
5915
|
"dont": [
|
|
5540
5916
|
{
|
|
5917
|
+
"title": "Keep the panel short",
|
|
5541
5918
|
"note": "A multi-field form crammed into a popover has nowhere to show validation and no backdrop to hold focus. Use AppModal instead.",
|
|
5542
5919
|
"example": [
|
|
5543
5920
|
{
|
|
@@ -5626,6 +6003,7 @@
|
|
|
5626
6003
|
],
|
|
5627
6004
|
"do": [
|
|
5628
6005
|
{
|
|
6006
|
+
"title": "Unit, audience and every feature listed",
|
|
5629
6007
|
"note": "A unit so the price is unambiguous, a tagline saying who it is for, excluded features kept in the list, and a CTA naming the tier.",
|
|
5630
6008
|
"example": [
|
|
5631
6009
|
{
|
|
@@ -5658,6 +6036,7 @@
|
|
|
5658
6036
|
],
|
|
5659
6037
|
"dont": [
|
|
5660
6038
|
{
|
|
6039
|
+
"title": "Unit, audience and every feature listed",
|
|
5661
6040
|
"note": "“1499”: of what, per what? No tagline, the excluded feature dropped so rows no longer align, and “Click here” tells the reader nothing about what they are committing to.",
|
|
5662
6041
|
"example": [
|
|
5663
6042
|
{
|
|
@@ -5712,6 +6091,7 @@
|
|
|
5712
6091
|
],
|
|
5713
6092
|
"do": [
|
|
5714
6093
|
{
|
|
6094
|
+
"title": "Real amounts, not fake progress",
|
|
5715
6095
|
"note": "A real value with a label that states the actual amount, not just a bare percentage.",
|
|
5716
6096
|
"example": [
|
|
5717
6097
|
{
|
|
@@ -5729,6 +6109,7 @@
|
|
|
5729
6109
|
],
|
|
5730
6110
|
"dont": [
|
|
5731
6111
|
{
|
|
6112
|
+
"title": "Real amounts, not fake progress",
|
|
5732
6113
|
"note": "A progress bar pinned at 100% (or any fixed value) to fake a spinner. That is AppSpinner's job.",
|
|
5733
6114
|
"example": [
|
|
5734
6115
|
{
|
|
@@ -5770,6 +6151,7 @@
|
|
|
5770
6151
|
],
|
|
5771
6152
|
"do": [
|
|
5772
6153
|
{
|
|
6154
|
+
"title": "Clear title and room to scan",
|
|
5773
6155
|
"note": "Enough room around it, and a title that says what scanning does.",
|
|
5774
6156
|
"example": [
|
|
5775
6157
|
{
|
|
@@ -5785,6 +6167,7 @@
|
|
|
5785
6167
|
],
|
|
5786
6168
|
"dont": [
|
|
5787
6169
|
{
|
|
6170
|
+
"title": "Clear title and room to scan",
|
|
5788
6171
|
"note": "A long value squeezed into a small box. The squares are too small to scan, and part of the code is cut off.",
|
|
5789
6172
|
"example": [
|
|
5790
6173
|
{
|
|
@@ -5832,6 +6215,7 @@
|
|
|
5832
6215
|
],
|
|
5833
6216
|
"do": [
|
|
5834
6217
|
{
|
|
6218
|
+
"title": "Two to five options, all visible",
|
|
5835
6219
|
"note": "2 to 5 exclusive options, all on screen. The user compares every choice without opening anything.",
|
|
5836
6220
|
"example": [
|
|
5837
6221
|
{
|
|
@@ -5859,6 +6243,7 @@
|
|
|
5859
6243
|
]
|
|
5860
6244
|
},
|
|
5861
6245
|
{
|
|
6246
|
+
"title": "Radios for one answer, not checkboxes",
|
|
5862
6247
|
"note": "Radios enforce a single answer. Exactly one can ever be selected.",
|
|
5863
6248
|
"example": [
|
|
5864
6249
|
{
|
|
@@ -5888,6 +6273,7 @@
|
|
|
5888
6273
|
],
|
|
5889
6274
|
"dont": [
|
|
5890
6275
|
{
|
|
6276
|
+
"title": "Two to five options, all visible",
|
|
5891
6277
|
"note": "Past about five options a radio list sprawls and is hard to scan. A dropdown holds it in one line.",
|
|
5892
6278
|
"example": [
|
|
5893
6279
|
{
|
|
@@ -5950,6 +6336,7 @@
|
|
|
5950
6336
|
]
|
|
5951
6337
|
},
|
|
5952
6338
|
{
|
|
6339
|
+
"title": "Radios for one answer, not checkboxes",
|
|
5953
6340
|
"note": "Checkboxes let the user tick several, the wrong control for a single exclusive choice.",
|
|
5954
6341
|
"example": [
|
|
5955
6342
|
{
|
|
@@ -5988,7 +6375,7 @@
|
|
|
5988
6375
|
"when": [
|
|
5989
6376
|
"Two to five exclusive options, and the reader should see all of them before choosing.",
|
|
5990
6377
|
"The choice is a field in a form that sits in the same grid as the other fields.",
|
|
5991
|
-
"You need
|
|
6378
|
+
"You need helper text, an error or a required mark on the group as a whole."
|
|
5992
6379
|
],
|
|
5993
6380
|
"whenNot": [
|
|
5994
6381
|
{
|
|
@@ -6013,7 +6400,7 @@
|
|
|
6013
6400
|
"a11y": [
|
|
6014
6401
|
"The group is a radiogroup named by its label, so a screen reader announces the label as the group's name.",
|
|
6015
6402
|
"Each option's label is bound to its radio through htmlFor, so a click on the text selects it.",
|
|
6016
|
-
"
|
|
6403
|
+
"Helper text or an error is linked to the group through aria-describedby."
|
|
6017
6404
|
]
|
|
6018
6405
|
}
|
|
6019
6406
|
},
|
|
@@ -6118,6 +6505,7 @@
|
|
|
6118
6505
|
],
|
|
6119
6506
|
"do": [
|
|
6120
6507
|
{
|
|
6508
|
+
"title": "Name the actions and number rows",
|
|
6121
6509
|
"note": "Specific add and remove labels (\"Add contact\"), a minimum so the form cannot reach an unsubmittable state, and numbered rows validation can point at.",
|
|
6122
6510
|
"example": [
|
|
6123
6511
|
{
|
|
@@ -6139,6 +6527,7 @@
|
|
|
6139
6527
|
],
|
|
6140
6528
|
"dont": [
|
|
6141
6529
|
{
|
|
6530
|
+
"title": "Name the actions and number rows",
|
|
6142
6531
|
"note": "A generic \"Add another\", no remove control at all, and no numbering, so \"Row 2 email is invalid\" has nothing to point at.",
|
|
6143
6532
|
"example": [
|
|
6144
6533
|
{
|
|
@@ -6184,6 +6573,7 @@
|
|
|
6184
6573
|
],
|
|
6185
6574
|
"do": [
|
|
6186
6575
|
{
|
|
6576
|
+
"title": "One mark beside the label",
|
|
6187
6577
|
"note": "One asterisk flush against its label, using the shared mark.",
|
|
6188
6578
|
"example": [
|
|
6189
6579
|
{
|
|
@@ -6201,6 +6591,7 @@
|
|
|
6201
6591
|
]
|
|
6202
6592
|
},
|
|
6203
6593
|
{
|
|
6594
|
+
"title": "Let the field own the mark",
|
|
6204
6595
|
"note": "Let the field own the mark via required.",
|
|
6205
6596
|
"example": [
|
|
6206
6597
|
{
|
|
@@ -6215,6 +6606,7 @@
|
|
|
6215
6606
|
],
|
|
6216
6607
|
"dont": [
|
|
6217
6608
|
{
|
|
6609
|
+
"title": "One mark beside the label",
|
|
6218
6610
|
"note": "A hand-rolled star drifts in colour and spacing from every library field.",
|
|
6219
6611
|
"example": [
|
|
6220
6612
|
{
|
|
@@ -6236,6 +6628,7 @@
|
|
|
6236
6628
|
]
|
|
6237
6629
|
},
|
|
6238
6630
|
{
|
|
6631
|
+
"title": "Let the field own the mark",
|
|
6239
6632
|
"note": "A star typed into the label of a required field doubles the mark: the field already draws one.",
|
|
6240
6633
|
"example": [
|
|
6241
6634
|
{
|
|
@@ -6346,6 +6739,7 @@
|
|
|
6346
6739
|
],
|
|
6347
6740
|
"do": [
|
|
6348
6741
|
{
|
|
6742
|
+
"title": "Link text that names the resource",
|
|
6349
6743
|
"note": "The title names the resource, the text says the format and what to do with it, and the icon matches the action (a download).",
|
|
6350
6744
|
"example": [
|
|
6351
6745
|
{
|
|
@@ -6362,6 +6756,7 @@
|
|
|
6362
6756
|
],
|
|
6363
6757
|
"dont": [
|
|
6364
6758
|
{
|
|
6759
|
+
"title": "Link text that names the resource",
|
|
6365
6760
|
"note": "\"Click here\" twice tells the reader nothing about the destination, and it is what a screen reader announces as the link name.",
|
|
6366
6761
|
"example": [
|
|
6367
6762
|
{
|
|
@@ -6439,6 +6834,7 @@
|
|
|
6439
6834
|
],
|
|
6440
6835
|
"do": [
|
|
6441
6836
|
{
|
|
6837
|
+
"title": "Keep a visible label",
|
|
6442
6838
|
"note": "A visible label stays put while the user types and is read by screen readers.",
|
|
6443
6839
|
"example": [
|
|
6444
6840
|
{
|
|
@@ -6454,6 +6850,7 @@
|
|
|
6454
6850
|
],
|
|
6455
6851
|
"dont": [
|
|
6456
6852
|
{
|
|
6853
|
+
"title": "Keep a visible label",
|
|
6457
6854
|
"note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
|
|
6458
6855
|
"example": [
|
|
6459
6856
|
{
|
|
@@ -6526,6 +6923,7 @@
|
|
|
6526
6923
|
],
|
|
6527
6924
|
"do": [
|
|
6528
6925
|
{
|
|
6926
|
+
"title": "Plain sentence, not the raw error",
|
|
6529
6927
|
"note": "A plain sentence and a way forward. The error details go to the logs.",
|
|
6530
6928
|
"example": [
|
|
6531
6929
|
{
|
|
@@ -6540,11 +6938,15 @@
|
|
|
6540
6938
|
],
|
|
6541
6939
|
"dont": [
|
|
6542
6940
|
{
|
|
6941
|
+
"title": "Plain sentence, not the raw error",
|
|
6543
6942
|
"note": "The raw error tells the person nothing they can act on, and can leak internal details.",
|
|
6544
6943
|
"example": [
|
|
6545
6944
|
{
|
|
6546
|
-
"component": "
|
|
6547
|
-
"
|
|
6945
|
+
"component": "AppCodeBlock",
|
|
6946
|
+
"props": {
|
|
6947
|
+
"code": "TypeError: Cannot read properties of undefined (reading 'map')",
|
|
6948
|
+
"language": "text"
|
|
6949
|
+
}
|
|
6548
6950
|
}
|
|
6549
6951
|
]
|
|
6550
6952
|
}
|
|
@@ -6579,6 +6981,7 @@
|
|
|
6579
6981
|
],
|
|
6580
6982
|
"do": [
|
|
6581
6983
|
{
|
|
6984
|
+
"title": "Wait for the save before flipping",
|
|
6582
6985
|
"note": "The row keeps its saved state. The switch shows the next state only after the save resolves.",
|
|
6583
6986
|
"example": [
|
|
6584
6987
|
{
|
|
@@ -6596,6 +6999,7 @@
|
|
|
6596
6999
|
],
|
|
6597
7000
|
"dont": [
|
|
6598
7001
|
{
|
|
7002
|
+
"title": "Wait for the save before flipping",
|
|
6599
7003
|
"note": "A page-level switch in a row has no busy state, so a second flip can race the first save.",
|
|
6600
7004
|
"example": [
|
|
6601
7005
|
{
|
|
@@ -6641,7 +7045,7 @@
|
|
|
6641
7045
|
"a11y": [
|
|
6642
7046
|
"The scale is a radio group named by its label, or named Score when there is no label.",
|
|
6643
7047
|
"Each value is a native radio sharing one name, so the arrow keys move and choose and the group posts with its form.",
|
|
6644
|
-
"
|
|
7048
|
+
"Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid."
|
|
6645
7049
|
]
|
|
6646
7050
|
}
|
|
6647
7051
|
},
|
|
@@ -6694,6 +7098,7 @@
|
|
|
6694
7098
|
],
|
|
6695
7099
|
"do": [
|
|
6696
7100
|
{
|
|
7101
|
+
"title": "Name what the search covers",
|
|
6697
7102
|
"note": "A placeholder that names what is being searched sets the right expectation.",
|
|
6698
7103
|
"example": [
|
|
6699
7104
|
{
|
|
@@ -6710,6 +7115,7 @@
|
|
|
6710
7115
|
]
|
|
6711
7116
|
},
|
|
6712
7117
|
{
|
|
7118
|
+
"title": "Clear to reset the list",
|
|
6713
7119
|
"note": "With a value present, the clear (×) lets the user reset to the full list in one click.",
|
|
6714
7120
|
"example": [
|
|
6715
7121
|
{
|
|
@@ -6728,6 +7134,7 @@
|
|
|
6728
7134
|
],
|
|
6729
7135
|
"dont": [
|
|
6730
7136
|
{
|
|
7137
|
+
"title": "Name what the search covers",
|
|
6731
7138
|
"note": "A vague 'Type here' doesn't say what the box searches.",
|
|
6732
7139
|
"example": [
|
|
6733
7140
|
{
|
|
@@ -6744,6 +7151,7 @@
|
|
|
6744
7151
|
]
|
|
6745
7152
|
},
|
|
6746
7153
|
{
|
|
7154
|
+
"title": "Clear to reset the list",
|
|
6747
7155
|
"note": "A raw input with a magnifier drawn on top has no clear control and drifts from the theme.",
|
|
6748
7156
|
"example": [
|
|
6749
7157
|
{
|
|
@@ -6973,6 +7381,7 @@
|
|
|
6973
7381
|
],
|
|
6974
7382
|
"do": [
|
|
6975
7383
|
{
|
|
7384
|
+
"title": "Short, parallel labels",
|
|
6976
7385
|
"note": "Short, parallel labels of similar length, so the pills are balanced and the row reads as one control.",
|
|
6977
7386
|
"example": [
|
|
6978
7387
|
{
|
|
@@ -7004,6 +7413,7 @@
|
|
|
7004
7413
|
],
|
|
7005
7414
|
"dont": [
|
|
7006
7415
|
{
|
|
7416
|
+
"title": "Short, parallel labels",
|
|
7007
7417
|
"note": "Wildly uneven labels make one pill swamp the other and push the control past its container. If a label needs a sentence, the choice needs radios.",
|
|
7008
7418
|
"example": [
|
|
7009
7419
|
{
|
|
@@ -7058,6 +7468,7 @@
|
|
|
7058
7468
|
],
|
|
7059
7469
|
"do": [
|
|
7060
7470
|
{
|
|
7471
|
+
"title": "Searchable past ten options",
|
|
7061
7472
|
"note": "Past ~10 options, searchable turns a long scroll into a quick type-to-find.",
|
|
7062
7473
|
"example": [
|
|
7063
7474
|
{
|
|
@@ -7091,6 +7502,7 @@
|
|
|
7091
7502
|
]
|
|
7092
7503
|
},
|
|
7093
7504
|
{
|
|
7505
|
+
"title": "A label and a placeholder",
|
|
7094
7506
|
"note": "A label names the field and the placeholder tells the user what to pick.",
|
|
7095
7507
|
"example": [
|
|
7096
7508
|
{
|
|
@@ -7122,6 +7534,7 @@
|
|
|
7122
7534
|
]
|
|
7123
7535
|
},
|
|
7124
7536
|
{
|
|
7537
|
+
"title": "A specific error",
|
|
7125
7538
|
"note": "A specific error says which choice is missing and why it matters.",
|
|
7126
7539
|
"example": [
|
|
7127
7540
|
{
|
|
@@ -7156,6 +7569,7 @@
|
|
|
7156
7569
|
],
|
|
7157
7570
|
"dont": [
|
|
7158
7571
|
{
|
|
7572
|
+
"title": "Searchable past ten options",
|
|
7159
7573
|
"note": "A long, unsearchable list forces the user to scroll and scan every time.",
|
|
7160
7574
|
"example": [
|
|
7161
7575
|
{
|
|
@@ -7187,6 +7601,7 @@
|
|
|
7187
7601
|
]
|
|
7188
7602
|
},
|
|
7189
7603
|
{
|
|
7604
|
+
"title": "A label and a placeholder",
|
|
7190
7605
|
"note": "No label and a bare 'Select' leave the field's purpose unclear.",
|
|
7191
7606
|
"example": [
|
|
7192
7607
|
{
|
|
@@ -7217,6 +7632,7 @@
|
|
|
7217
7632
|
]
|
|
7218
7633
|
},
|
|
7219
7634
|
{
|
|
7635
|
+
"title": "A specific error",
|
|
7220
7636
|
"note": "'Required' just repeats the asterisk without helping.",
|
|
7221
7637
|
"example": [
|
|
7222
7638
|
{
|
|
@@ -7251,7 +7667,7 @@
|
|
|
7251
7667
|
],
|
|
7252
7668
|
"a11y": [
|
|
7253
7669
|
"The visible label is the control's accessible name; a select with no visible label takes aria-label or aria-labelledby from the caller.",
|
|
7254
|
-
"An error sets aria-invalid on the control and is linked by aria-describedby, as is the
|
|
7670
|
+
"An error sets aria-invalid on the control and is linked by aria-describedby, as is the helper text when there is no error.",
|
|
7255
7671
|
"required and disabled are passed to the control, and required also draws a required mark in the label."
|
|
7256
7672
|
]
|
|
7257
7673
|
}
|
|
@@ -7389,6 +7805,7 @@
|
|
|
7389
7805
|
],
|
|
7390
7806
|
"do": [
|
|
7391
7807
|
{
|
|
7808
|
+
"title": "Echo the layout that is loading",
|
|
7392
7809
|
"note": "A few bars that echo the real layout, a heading over two body lines. The eye reads it as \"content, loading\".",
|
|
7393
7810
|
"example": [
|
|
7394
7811
|
{
|
|
@@ -7420,6 +7837,7 @@
|
|
|
7420
7837
|
]
|
|
7421
7838
|
},
|
|
7422
7839
|
{
|
|
7840
|
+
"title": "Match table columns while loading",
|
|
7423
7841
|
"note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
|
|
7424
7842
|
"example": [
|
|
7425
7843
|
{
|
|
@@ -7444,6 +7862,7 @@
|
|
|
7444
7862
|
],
|
|
7445
7863
|
"dont": [
|
|
7446
7864
|
{
|
|
7865
|
+
"title": "Echo the layout that is loading",
|
|
7447
7866
|
"note": "One giant block tells the user nothing about what's coming and reflows hard when the real, smaller content lands.",
|
|
7448
7867
|
"example": [
|
|
7449
7868
|
{
|
|
@@ -7456,6 +7875,7 @@
|
|
|
7456
7875
|
]
|
|
7457
7876
|
},
|
|
7458
7877
|
{
|
|
7878
|
+
"title": "Match table columns while loading",
|
|
7459
7879
|
"note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
|
|
7460
7880
|
"example": [
|
|
7461
7881
|
{
|
|
@@ -7538,6 +7958,7 @@
|
|
|
7538
7958
|
],
|
|
7539
7959
|
"do": [
|
|
7540
7960
|
{
|
|
7961
|
+
"title": "Match skeleton columns to the table",
|
|
7541
7962
|
"note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
|
|
7542
7963
|
"example": [
|
|
7543
7964
|
{
|
|
@@ -7562,6 +7983,7 @@
|
|
|
7562
7983
|
],
|
|
7563
7984
|
"dont": [
|
|
7564
7985
|
{
|
|
7986
|
+
"title": "Match skeleton columns to the table",
|
|
7565
7987
|
"note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
|
|
7566
7988
|
"example": [
|
|
7567
7989
|
{
|
|
@@ -7621,7 +8043,7 @@
|
|
|
7621
8043
|
"dont": [],
|
|
7622
8044
|
"a11y": [
|
|
7623
8045
|
"The visible label is tied to the control by id, and the control takes its accessible name from a text label or from ariaLabel.",
|
|
7624
|
-
"aria-describedby points at the error text, or at the
|
|
8046
|
+
"aria-describedby points at the error text, or at the helper text when there is no error, and an error also sets aria-invalid.",
|
|
7625
8047
|
"A required slider shows a required mark beside its label and carries the required attribute."
|
|
7626
8048
|
]
|
|
7627
8049
|
}
|
|
@@ -7710,6 +8132,7 @@
|
|
|
7710
8132
|
],
|
|
7711
8133
|
"do": [
|
|
7712
8134
|
{
|
|
8135
|
+
"title": "Name what is loading",
|
|
7713
8136
|
"note": "A label that says what is happening, sized to sit inline with the thing it belongs to.",
|
|
7714
8137
|
"example": [
|
|
7715
8138
|
{
|
|
@@ -7724,6 +8147,7 @@
|
|
|
7724
8147
|
],
|
|
7725
8148
|
"dont": [
|
|
7726
8149
|
{
|
|
8150
|
+
"title": "Name what is loading",
|
|
7727
8151
|
"note": "A lone spinner filling a content area: no indication of what is loading, no idea how long, and the layout will jump when the real content arrives.",
|
|
7728
8152
|
"example": [
|
|
7729
8153
|
{
|
|
@@ -7827,6 +8251,7 @@
|
|
|
7827
8251
|
],
|
|
7828
8252
|
"do": [
|
|
7829
8253
|
{
|
|
8254
|
+
"title": "Mark the open list item",
|
|
7830
8255
|
"note": "One item is open and marked in the list, so it is clear what the pane shows.",
|
|
7831
8256
|
"example": [
|
|
7832
8257
|
{
|
|
@@ -7863,6 +8288,7 @@
|
|
|
7863
8288
|
]
|
|
7864
8289
|
},
|
|
7865
8290
|
{
|
|
8291
|
+
"title": "One line of context per item",
|
|
7866
8292
|
"note": "Items carry a title and one line of context; the detail waits in the pane.",
|
|
7867
8293
|
"example": [
|
|
7868
8294
|
{
|
|
@@ -7902,6 +8328,7 @@
|
|
|
7902
8328
|
],
|
|
7903
8329
|
"dont": [
|
|
7904
8330
|
{
|
|
8331
|
+
"title": "Mark the open list item",
|
|
7905
8332
|
"note": "A pane with content but no open item: nothing in the list says which item it belongs to.",
|
|
7906
8333
|
"example": [
|
|
7907
8334
|
{
|
|
@@ -7938,6 +8365,7 @@
|
|
|
7938
8365
|
]
|
|
7939
8366
|
},
|
|
7940
8367
|
{
|
|
8368
|
+
"title": "One line of context per item",
|
|
7941
8369
|
"note": "Packing the detail into the list makes every item tall and the queue slow to scan.",
|
|
7942
8370
|
"example": [
|
|
7943
8371
|
{
|
|
@@ -8006,6 +8434,7 @@
|
|
|
8006
8434
|
],
|
|
8007
8435
|
"do": [
|
|
8008
8436
|
{
|
|
8437
|
+
"title": "One consistent tone per status",
|
|
8009
8438
|
"note": "Each status maps to a consistent, meaningful tone: the colour reinforces the word.",
|
|
8010
8439
|
"example": [
|
|
8011
8440
|
{
|
|
@@ -8032,6 +8461,7 @@
|
|
|
8032
8461
|
]
|
|
8033
8462
|
},
|
|
8034
8463
|
{
|
|
8464
|
+
"title": "Pill holds one or two words",
|
|
8035
8465
|
"note": "A single, concise status word, instantly scannable.",
|
|
8036
8466
|
"example": [
|
|
8037
8467
|
{
|
|
@@ -8046,6 +8476,7 @@
|
|
|
8046
8476
|
],
|
|
8047
8477
|
"dont": [
|
|
8048
8478
|
{
|
|
8479
|
+
"title": "One consistent tone per status",
|
|
8049
8480
|
"note": "One tone for every status throws away the signal: the colour tells the user nothing.",
|
|
8050
8481
|
"example": [
|
|
8051
8482
|
{
|
|
@@ -8072,6 +8503,7 @@
|
|
|
8072
8503
|
]
|
|
8073
8504
|
},
|
|
8074
8505
|
{
|
|
8506
|
+
"title": "Pill holds one or two words",
|
|
8075
8507
|
"note": "A pill is not a place for a sentence: keep the status to a word or two and explain elsewhere.",
|
|
8076
8508
|
"example": [
|
|
8077
8509
|
{
|
|
@@ -8119,6 +8551,7 @@
|
|
|
8119
8551
|
],
|
|
8120
8552
|
"do": [
|
|
8121
8553
|
{
|
|
8554
|
+
"title": "Name each step by its action",
|
|
8122
8555
|
"note": "Label each step with the action it performs, and mark exactly one step active. Three to five steps is the readable range.",
|
|
8123
8556
|
"example": [
|
|
8124
8557
|
{
|
|
@@ -8147,6 +8580,7 @@
|
|
|
8147
8580
|
],
|
|
8148
8581
|
"dont": [
|
|
8149
8582
|
{
|
|
8583
|
+
"title": "Name each step by its action",
|
|
8150
8584
|
"note": "The label \"Step 2\" adds nothing: the circle already says 2. The label is the only place that can tell the user what the step is for.",
|
|
8151
8585
|
"example": [
|
|
8152
8586
|
{
|
|
@@ -8208,6 +8642,7 @@
|
|
|
8208
8642
|
],
|
|
8209
8643
|
"do": [
|
|
8210
8644
|
{
|
|
8645
|
+
"title": "Use a switch for instant settings",
|
|
8211
8646
|
"note": "An on/off setting that applies right away. The switch reads as a live control.",
|
|
8212
8647
|
"example": [
|
|
8213
8648
|
{
|
|
@@ -8223,6 +8658,7 @@
|
|
|
8223
8658
|
]
|
|
8224
8659
|
},
|
|
8225
8660
|
{
|
|
8661
|
+
"title": "Caption every switch",
|
|
8226
8662
|
"note": "Each switch is captioned, so the user knows exactly what it controls and its current state.",
|
|
8227
8663
|
"example": [
|
|
8228
8664
|
{
|
|
@@ -8243,6 +8679,7 @@
|
|
|
8243
8679
|
],
|
|
8244
8680
|
"dont": [
|
|
8245
8681
|
{
|
|
8682
|
+
"title": "Use a switch for instant settings",
|
|
8246
8683
|
"note": "A checkbox reads as a form field to submit later, the wrong signal for an instant toggle.",
|
|
8247
8684
|
"example": [
|
|
8248
8685
|
{
|
|
@@ -8255,6 +8692,7 @@
|
|
|
8255
8692
|
]
|
|
8256
8693
|
},
|
|
8257
8694
|
{
|
|
8695
|
+
"title": "Caption every switch",
|
|
8258
8696
|
"note": "A bare switch with no caption leaves the user guessing what it turns on.",
|
|
8259
8697
|
"example": [
|
|
8260
8698
|
{
|
|
@@ -8298,6 +8736,7 @@
|
|
|
8298
8736
|
],
|
|
8299
8737
|
"do": [
|
|
8300
8738
|
{
|
|
8739
|
+
"title": "Show the page and the total",
|
|
8301
8740
|
"note": "The page buttons show the current page and how many there are, so the user always knows where they are in the list.",
|
|
8302
8741
|
"example": [
|
|
8303
8742
|
{
|
|
@@ -8311,6 +8750,7 @@
|
|
|
8311
8750
|
]
|
|
8312
8751
|
},
|
|
8313
8752
|
{
|
|
8753
|
+
"title": "Sit the pager under its table",
|
|
8314
8754
|
"note": "The pager sits flush under the table it controls, so the two read as one visual unit.",
|
|
8315
8755
|
"example": [
|
|
8316
8756
|
{
|
|
@@ -8373,6 +8813,7 @@
|
|
|
8373
8813
|
],
|
|
8374
8814
|
"dont": [
|
|
8375
8815
|
{
|
|
8816
|
+
"title": "Show the page and the total",
|
|
8376
8817
|
"note": "Bare prev/next buttons with no page readout hide how big the list is or where the user stands.",
|
|
8377
8818
|
"example": [
|
|
8378
8819
|
{
|
|
@@ -8402,6 +8843,7 @@
|
|
|
8402
8843
|
]
|
|
8403
8844
|
},
|
|
8404
8845
|
{
|
|
8846
|
+
"title": "Sit the pager under its table",
|
|
8405
8847
|
"note": "A pager floating above its table breaks the expected footer placement and reads as disconnected.",
|
|
8406
8848
|
"example": [
|
|
8407
8849
|
{
|
|
@@ -8484,6 +8926,7 @@
|
|
|
8484
8926
|
],
|
|
8485
8927
|
"do": [
|
|
8486
8928
|
{
|
|
8929
|
+
"title": "Show bulk actions only when selected",
|
|
8487
8930
|
"note": "Bulk actions appear only while rows are selected, with the count and a way out.",
|
|
8488
8931
|
"example": [
|
|
8489
8932
|
{
|
|
@@ -8504,6 +8947,7 @@
|
|
|
8504
8947
|
]
|
|
8505
8948
|
},
|
|
8506
8949
|
{
|
|
8950
|
+
"title": "Filters left, search and actions right",
|
|
8507
8951
|
"note": "Filters narrow the rows on the left; search and actions sit on the right.",
|
|
8508
8952
|
"example": [
|
|
8509
8953
|
{
|
|
@@ -8567,6 +9011,7 @@
|
|
|
8567
9011
|
],
|
|
8568
9012
|
"dont": [
|
|
8569
9013
|
{
|
|
9014
|
+
"title": "Show bulk actions only when selected",
|
|
8570
9015
|
"note": "A row of always-visible, disabled bulk buttons takes space and explains nothing until something is selected.",
|
|
8571
9016
|
"example": [
|
|
8572
9017
|
{
|
|
@@ -8598,6 +9043,7 @@
|
|
|
8598
9043
|
]
|
|
8599
9044
|
},
|
|
8600
9045
|
{
|
|
9046
|
+
"title": "Filters left, search and actions right",
|
|
8601
9047
|
"note": "Search first and filters last, scattered with no shared strip: the eye has no fixed place to look.",
|
|
8602
9048
|
"example": [
|
|
8603
9049
|
{
|
|
@@ -8682,6 +9128,7 @@
|
|
|
8682
9128
|
],
|
|
8683
9129
|
"do": [
|
|
8684
9130
|
{
|
|
9131
|
+
"title": "Short labels for peer views",
|
|
8685
9132
|
"note": "A few short, peer labels: the user sees every view at a glance.",
|
|
8686
9133
|
"example": [
|
|
8687
9134
|
{
|
|
@@ -8708,6 +9155,7 @@
|
|
|
8708
9155
|
]
|
|
8709
9156
|
},
|
|
8710
9157
|
{
|
|
9158
|
+
"title": "Tabs switch views, never steps",
|
|
8711
9159
|
"note": "A count on a filter tab tells the user how much is behind it before they click.",
|
|
8712
9160
|
"example": [
|
|
8713
9161
|
{
|
|
@@ -8734,6 +9182,7 @@
|
|
|
8734
9182
|
],
|
|
8735
9183
|
"dont": [
|
|
8736
9184
|
{
|
|
9185
|
+
"title": "Short labels for peer views",
|
|
8737
9186
|
"note": "Sentence-long labels break the scannable rhythm a tab strip depends on.",
|
|
8738
9187
|
"example": [
|
|
8739
9188
|
{
|
|
@@ -8760,6 +9209,7 @@
|
|
|
8760
9209
|
]
|
|
8761
9210
|
},
|
|
8762
9211
|
{
|
|
9212
|
+
"title": "Tabs switch views, never steps",
|
|
8763
9213
|
"note": "Fitted pills read as a segmented control. Do not use them for sequential steps; that is a stepper.",
|
|
8764
9214
|
"example": [
|
|
8765
9215
|
{
|
|
@@ -8826,6 +9276,7 @@
|
|
|
8826
9276
|
],
|
|
8827
9277
|
"do": [
|
|
8828
9278
|
{
|
|
9279
|
+
"title": "Name the keys in helper text",
|
|
8829
9280
|
"note": "Helper text that names the commit keys (Enter and comma) tells the user how to add a tag without trial and error.",
|
|
8830
9281
|
"example": [
|
|
8831
9282
|
{
|
|
@@ -8842,6 +9293,26 @@
|
|
|
8842
9293
|
]
|
|
8843
9294
|
},
|
|
8844
9295
|
{
|
|
9296
|
+
"title": "Free text, not a fixed list",
|
|
9297
|
+
"note": "Use AppSelect or AppMultiSelect when the choices are a fixed set.",
|
|
9298
|
+
"example": [
|
|
9299
|
+
{
|
|
9300
|
+
"component": "AppMultiSelect",
|
|
9301
|
+
"props": {
|
|
9302
|
+
"label": "Categories",
|
|
9303
|
+
"name": "categories",
|
|
9304
|
+
"options": [
|
|
9305
|
+
{
|
|
9306
|
+
"value": "css",
|
|
9307
|
+
"label": "CSS"
|
|
9308
|
+
}
|
|
9309
|
+
]
|
|
9310
|
+
}
|
|
9311
|
+
}
|
|
9312
|
+
]
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
"title": "Placeholder that names paste",
|
|
8845
9316
|
"note": "A placeholder that mentions paste tells the user they can drop a whole list in at once.",
|
|
8846
9317
|
"example": [
|
|
8847
9318
|
{
|
|
@@ -8856,6 +9327,7 @@
|
|
|
8856
9327
|
],
|
|
8857
9328
|
"dont": [
|
|
8858
9329
|
{
|
|
9330
|
+
"title": "Name the keys in helper text",
|
|
8859
9331
|
"note": "No helper text at all: a first-time user may not discover that Enter or comma commits a tag.",
|
|
8860
9332
|
"example": [
|
|
8861
9333
|
{
|
|
@@ -8871,6 +9343,7 @@
|
|
|
8871
9343
|
]
|
|
8872
9344
|
},
|
|
8873
9345
|
{
|
|
9346
|
+
"title": "Free text, not a fixed list",
|
|
8874
9347
|
"note": "A fixed, known set of options belongs in AppSelect or AppMultiSelect: a tag input invites free text where a picker would be faster and less error-prone.",
|
|
8875
9348
|
"example": [
|
|
8876
9349
|
{
|
|
@@ -8890,6 +9363,19 @@
|
|
|
8890
9363
|
}
|
|
8891
9364
|
}
|
|
8892
9365
|
]
|
|
9366
|
+
},
|
|
9367
|
+
{
|
|
9368
|
+
"title": "Placeholder that names paste",
|
|
9369
|
+
"note": "A placeholder that only says what to type hides that a whole pasted list splits into tags.",
|
|
9370
|
+
"example": [
|
|
9371
|
+
{
|
|
9372
|
+
"component": "AppTagInput",
|
|
9373
|
+
"props": {
|
|
9374
|
+
"label": "Recipients",
|
|
9375
|
+
"placeholder": "Add a recipient"
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
9378
|
+
]
|
|
8893
9379
|
}
|
|
8894
9380
|
],
|
|
8895
9381
|
"a11y": [
|
|
@@ -8905,7 +9391,7 @@
|
|
|
8905
9391
|
"usage": {
|
|
8906
9392
|
"when": [
|
|
8907
9393
|
"The value is free-form text that can run past a single line: a note, description, comment, or address block.",
|
|
8908
|
-
"You want the same labelled treatment (
|
|
9394
|
+
"You want the same labelled treatment (helper text, error, required) as the rest of the form, for a longer answer.",
|
|
8909
9395
|
"The user might write a few words or a few paragraphs and you can't predict which."
|
|
8910
9396
|
],
|
|
8911
9397
|
"whenNot": [
|
|
@@ -8924,6 +9410,7 @@
|
|
|
8924
9410
|
],
|
|
8925
9411
|
"do": [
|
|
8926
9412
|
{
|
|
9413
|
+
"title": "Keep a visible label",
|
|
8927
9414
|
"note": "A visible label stays put while the user types and is read by screen readers.",
|
|
8928
9415
|
"example": [
|
|
8929
9416
|
{
|
|
@@ -8937,6 +9424,7 @@
|
|
|
8937
9424
|
]
|
|
8938
9425
|
},
|
|
8939
9426
|
{
|
|
9427
|
+
"title": "Match the height to the answer",
|
|
8940
9428
|
"note": "A height that matches the expected answer keeps the form compact and scannable.",
|
|
8941
9429
|
"example": [
|
|
8942
9430
|
{
|
|
@@ -8951,6 +9439,7 @@
|
|
|
8951
9439
|
]
|
|
8952
9440
|
},
|
|
8953
9441
|
{
|
|
9442
|
+
"title": "Say exactly what to change",
|
|
8954
9443
|
"note": "A specific error tells the user exactly what to change.",
|
|
8955
9444
|
"example": [
|
|
8956
9445
|
{
|
|
@@ -8967,6 +9456,7 @@
|
|
|
8967
9456
|
],
|
|
8968
9457
|
"dont": [
|
|
8969
9458
|
{
|
|
9459
|
+
"title": "Keep a visible label",
|
|
8970
9460
|
"note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
|
|
8971
9461
|
"example": [
|
|
8972
9462
|
{
|
|
@@ -8979,6 +9469,7 @@
|
|
|
8979
9469
|
]
|
|
8980
9470
|
},
|
|
8981
9471
|
{
|
|
9472
|
+
"title": "Match the height to the answer",
|
|
8982
9473
|
"note": "An oversized box wastes space and signals 'write an essay' when you wanted a sentence.",
|
|
8983
9474
|
"example": [
|
|
8984
9475
|
{
|
|
@@ -8993,6 +9484,7 @@
|
|
|
8993
9484
|
]
|
|
8994
9485
|
},
|
|
8995
9486
|
{
|
|
9487
|
+
"title": "Say exactly what to change",
|
|
8996
9488
|
"note": "'Invalid' leaves them guessing what is actually wrong.",
|
|
8997
9489
|
"example": [
|
|
8998
9490
|
{
|
|
@@ -9010,7 +9502,7 @@
|
|
|
9010
9502
|
"a11y": [
|
|
9011
9503
|
"The label is tied to the field with a for and id pair, and a generated id is used when none is given.",
|
|
9012
9504
|
"The field carries the native required attribute as well as the visible required mark.",
|
|
9013
|
-
"aria-invalid is set from error, and aria-describedby points at the error text, or at the
|
|
9505
|
+
"aria-invalid is set from error, and aria-describedby points at the error text, or at the helper text when there is no error.",
|
|
9014
9506
|
"The info tip beside the label is named by helpLabel."
|
|
9015
9507
|
]
|
|
9016
9508
|
}
|
|
@@ -9100,6 +9592,7 @@
|
|
|
9100
9592
|
],
|
|
9101
9593
|
"do": [
|
|
9102
9594
|
{
|
|
9595
|
+
"title": "Record what happened, by whom, when",
|
|
9103
9596
|
"note": "Title in the past tense saying what happened, plus the actor and an absolute timestamp: the three things an audit reader is looking for.",
|
|
9104
9597
|
"example": [
|
|
9105
9598
|
{
|
|
@@ -9123,6 +9616,7 @@
|
|
|
9123
9616
|
],
|
|
9124
9617
|
"dont": [
|
|
9125
9618
|
{
|
|
9619
|
+
"title": "Record what happened, by whom, when",
|
|
9126
9620
|
"note": "'Status changed' to what, by whom? And '2 days ago' cannot be cross-referenced against anything, so an audit trail needs absolute times.",
|
|
9127
9621
|
"example": [
|
|
9128
9622
|
{
|
|
@@ -9342,6 +9836,7 @@
|
|
|
9342
9836
|
],
|
|
9343
9837
|
"do": [
|
|
9344
9838
|
{
|
|
9839
|
+
"title": "Let people choose when to reload",
|
|
9345
9840
|
"note": "Tell the person and let them choose when to reload.",
|
|
9346
9841
|
"example": [
|
|
9347
9842
|
{
|
|
@@ -9353,6 +9848,7 @@
|
|
|
9353
9848
|
],
|
|
9354
9849
|
"dont": [
|
|
9355
9850
|
{
|
|
9851
|
+
"title": "Let people choose when to reload",
|
|
9356
9852
|
"note": "A forced reload throws away what the person was typing.",
|
|
9357
9853
|
"example": [
|
|
9358
9854
|
{
|
|
@@ -9457,6 +9953,7 @@
|
|
|
9457
9953
|
],
|
|
9458
9954
|
"do": [
|
|
9459
9955
|
{
|
|
9956
|
+
"title": "Name the current workspace",
|
|
9460
9957
|
"note": "The current workspace is named on the trigger, ticked in the list, and settings are one row away.",
|
|
9461
9958
|
"example": [
|
|
9462
9959
|
{
|
|
@@ -9501,6 +9998,7 @@
|
|
|
9501
9998
|
]
|
|
9502
9999
|
},
|
|
9503
10000
|
{
|
|
10001
|
+
"title": "Filter only a long list",
|
|
9504
10002
|
"note": "Eight workspaces get a filter box, so finding one is typing rather than scrolling.",
|
|
9505
10003
|
"example": [
|
|
9506
10004
|
{
|
|
@@ -9550,6 +10048,7 @@
|
|
|
9550
10048
|
],
|
|
9551
10049
|
"dont": [
|
|
9552
10050
|
{
|
|
10051
|
+
"title": "Name the current workspace",
|
|
9553
10052
|
"note": "A compact trigger in a full-width sidebar hides the workspace name, the one thing the control exists to show. Save it for a collapsed rail.",
|
|
9554
10053
|
"example": [
|
|
9555
10054
|
{
|
|
@@ -9577,6 +10076,7 @@
|
|
|
9577
10076
|
]
|
|
9578
10077
|
},
|
|
9579
10078
|
{
|
|
10079
|
+
"title": "Filter only a long list",
|
|
9580
10080
|
"note": "Three workspaces behind a search box: a control to skip past on the way to something already visible.",
|
|
9581
10081
|
"example": [
|
|
9582
10082
|
{
|