@valiify/dashboard-ui 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +456 -1
- package/COMPONENTS.md +2117 -704
- package/README.md +40 -7
- package/class-manifest.json +263 -2
- package/dist/dashboard-ui.css +4249 -1469
- package/dist/index.css +4056 -1453
- package/package.json +9 -8
- package/src/components/add-funds-form.css +69 -0
- package/src/components/alert.css +33 -56
- package/src/components/avatar.css +38 -2
- package/src/components/button.css +52 -29
- package/src/components/card.css +1 -1
- package/src/components/checklist-group.css +116 -0
- package/src/components/checklist-task.css +125 -0
- package/src/components/chip.css +145 -0
- package/src/components/comment-date.css +36 -0
- package/src/components/comment-item.css +59 -0
- package/src/components/content-row.css +133 -0
- package/src/components/data-list.css +91 -0
- package/src/components/data-row.css +84 -19
- package/src/components/dropdown-field.css +9 -0
- package/src/components/dropdown-menu.css +6 -2
- package/src/components/entity-header.css +61 -0
- package/src/components/field-verification.css +118 -38
- package/src/components/final-decision.css +51 -0
- package/src/components/finding-card.css +157 -0
- package/src/components/finding-option.css +45 -0
- package/src/components/finding-row.css +45 -0
- package/src/components/funding-status.css +61 -0
- package/src/components/funding-total.css +57 -0
- package/src/components/funding-transaction.css +108 -0
- package/src/components/index.css +36 -0
- package/src/components/inline-confirm.css +42 -0
- package/src/components/input.css +19 -0
- package/src/components/keycap.css +27 -0
- package/src/components/menu-item.css +38 -10
- package/src/components/modal.css +29 -2
- package/src/components/navigation-rail.css +322 -2
- package/src/components/overlay-scrim.css +26 -0
- package/src/components/owner-row.css +170 -0
- package/src/components/owner-table-header.css +57 -0
- package/src/components/ownership.css +73 -0
- package/src/components/panel-section-header.css +56 -0
- package/src/components/panel-status.css +23 -0
- package/src/components/panel-strip-button.css +31 -0
- package/src/components/progress-circle.css +89 -0
- package/src/components/radio-select.css +5 -2
- package/src/components/record.css +56 -0
- package/src/components/resize-handle.css +131 -0
- package/src/components/resolved-row.css +50 -0
- package/src/components/scoring-details.css +79 -0
- package/src/components/scrollbar.css +47 -0
- package/src/components/section-edit.css +109 -0
- package/src/components/severity-count.css +63 -0
- package/src/components/severity-marker.css +66 -0
- package/src/components/snapshot-metric.css +72 -0
- package/src/components/step.css +1 -1
- package/src/components/summary-panel.css +250 -0
- package/src/components/summary-preview.css +76 -0
- package/src/components/switch.css +10 -1
- package/src/components/tabs.css +3 -2
- package/src/components/tag.css +24 -2
- package/src/components/textarea.css +4 -0
- package/src/components/toast.css +10 -6
- package/src/components/tooltip.css +14 -8
- package/src/themes/valiify-tokens.css +241 -7
- package/src/themes/valiify.css +244 -7
- package/types/components.d.ts +386 -9
package/COMPONENTS.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Component Reference
|
|
2
2
|
|
|
3
|
-
Markup examples for every component in @valiify/dashboard-ui **0.
|
|
3
|
+
Markup examples for every component in @valiify/dashboard-ui **0.6.0**: the classes, sizes and ARIA each one expects. Every example uses classes that exist in the built bundle.
|
|
4
4
|
|
|
5
5
|
> **Technical detail** — what Figma specifies per component, where the library deliberately differs, and why — lives in the repository's [CLAUDE.md](https://github.com/BubbaCoop/Valiify-dashboard-ui/blob/main/CLAUDE.md) (not part of the npm package). Upgrading? The [CHANGELOG](CHANGELOG.md) lists every 0.5.0 rename with a codemod.
|
|
6
6
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
9
|
+
- [Themes](#themes)
|
|
9
10
|
- [Form Controls](#form-controls)
|
|
10
11
|
- [Button](#button)
|
|
11
12
|
- [IconButton](#iconbutton)
|
|
@@ -29,6 +30,7 @@ Markup examples for every component in @valiify/dashboard-ui **0.5.0**: the clas
|
|
|
29
30
|
- [Skeleton](#skeleton)
|
|
30
31
|
- [Navigation](#navigation)
|
|
31
32
|
- [NavigationRail](#navigationrail)
|
|
33
|
+
- [ResizeHandle](#resizehandle)
|
|
32
34
|
- [Tabs](#tabs)
|
|
33
35
|
- [SegmentSelector](#segmentselector)
|
|
34
36
|
- [FilterSegment](#filtersegment)
|
|
@@ -46,6 +48,9 @@ Markup examples for every component in @valiify/dashboard-ui **0.5.0**: the clas
|
|
|
46
48
|
- [LoadingInline](#loadinginline)
|
|
47
49
|
- [ProgressBar](#progressbar)
|
|
48
50
|
- [Stepper](#stepper)
|
|
51
|
+
- [Findings Panel](#findings-panel)
|
|
52
|
+
- [Funding](#funding)
|
|
53
|
+
- [Recipes](#recipes)
|
|
49
54
|
- [Review Components](#review-components)
|
|
50
55
|
- [FieldVerification](#fieldverification)
|
|
51
56
|
- [SectionMarker](#sectionmarker)
|
|
@@ -53,6 +58,24 @@ Markup examples for every component in @valiify/dashboard-ui **0.5.0**: the clas
|
|
|
53
58
|
|
|
54
59
|
---
|
|
55
60
|
|
|
61
|
+
## Themes
|
|
62
|
+
|
|
63
|
+
Every component works in both themes. **Light** is the default and needs nothing; **Onyx** is the dark theme:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<html data-theme="onyx">
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
No class changes — the same markup renders in either theme, because every colour comes from a token and Onyx overrides the tokens. To theme one region only, put the attribute on that element and give it a background and text colour of its own:
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<aside data-theme="onyx" class="bg-surface-frame text-content-primary">…</aside>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
(On the prebuilt `./styles.css` those two utilities are spelled `vd:bg-surface-frame vd:text-content-primary`.)
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
56
79
|
## Form Controls
|
|
57
80
|
|
|
58
81
|
### Button
|
|
@@ -80,6 +103,14 @@ Four displays — `-primary`, `-outline`, `-empty`, and `-critical` (a destructi
|
|
|
80
103
|
<button class="vd-btn vd-btn-outline" disabled>Disabled</button>
|
|
81
104
|
<button class="vd-btn vd-btn-outline" aria-pressed="true">Selected</button>
|
|
82
105
|
|
|
106
|
+
<!-- 0.7.0: aria-disabled="true" is styled as disabled on every display. Use it for
|
|
107
|
+
an action that is unavailable but must stay focusable, so the reason can be
|
|
108
|
+
read. .vd-btn-blocked is the neutral "cannot run yet" look. Ignoring the click
|
|
109
|
+
is your JavaScript. -->
|
|
110
|
+
<button class="vd-btn vd-btn-blocked" aria-disabled="true" aria-describedby="why-blocked">
|
|
111
|
+
Approve <span class="vd-badge vd-badge-neutral">5</span>
|
|
112
|
+
</button>
|
|
113
|
+
|
|
83
114
|
<!-- With icons (match icon size to button size) -->
|
|
84
115
|
<button class="vd-btn vd-btn-primary vd-btn-sm">
|
|
85
116
|
<svg class="vd-icon vd-icon-size-13" aria-hidden="true">
|
|
@@ -188,6 +219,8 @@ Text-only button for inline or cell actions. Three types: cell / text / primary.
|
|
|
188
219
|
|
|
189
220
|
**Structure:** `.vd-input-container` › `.vd-input-label` › `.vd-input-field` › `.vd-input`
|
|
190
221
|
|
|
222
|
+
**Focus (0.6.0):** a focused field draws a soft 3px halo around itself, as do Textarea and an open DropdownField. It is a `box-shadow`, so an ancestor with `overflow: hidden` clips it — leave 3px of room.
|
|
223
|
+
|
|
191
224
|
Five sizes on the control ladder: xs=20, sm=24, md=28 (default), lg=32, xl=40. `.vd-input-search` is the Search Field variant.
|
|
192
225
|
|
|
193
226
|
```html
|
|
@@ -379,7 +412,7 @@ Native checkbox with label, optional subtitle, and trailing action.
|
|
|
379
412
|
|
|
380
413
|
### RadioSelect
|
|
381
414
|
|
|
382
|
-
Native radio button with label.
|
|
415
|
+
Native radio button with label. The row is 22px tall since 0.7.0 (it was 18): 2px above and below the label line, as Figma draws it.
|
|
383
416
|
|
|
384
417
|
```html
|
|
385
418
|
<label class="vd-radio-select">
|
|
@@ -613,7 +646,7 @@ Circular initials indicator. Five sizes: `-xs` 12, `-sm` 16, `-md` 20 (default),
|
|
|
613
646
|
<span class="vd-avatar vd-avatar-lg">NC</span>
|
|
614
647
|
<span class="vd-avatar vd-avatar-xl">NC</span>
|
|
615
648
|
|
|
616
|
-
<!-- Disabled —
|
|
649
|
+
<!-- Disabled — a grey fill with dimmed initials (0.6.0; was a pale primary fill) -->
|
|
617
650
|
<span class="vd-avatar vd-avatar-md vd-avatar-disabled">NC</span>
|
|
618
651
|
|
|
619
652
|
<!-- With ring (2px, outside the circle) -->
|
|
@@ -622,6 +655,13 @@ Circular initials indicator. Five sizes: `-xs` 12, `-sm` 16, `-md` 20 (default),
|
|
|
622
655
|
|
|
623
656
|
Which size a host nests: `-sm` in Tag (md/lg), Menu Item (sm/md) and Dropdown Field (xs–lg); `-md` in Menu Item lg and Dropdown Field xl; `-xs` in an xs recipient Tag.
|
|
624
657
|
|
|
658
|
+
**Shape (0.6.0):** add `vd-avatar-square` for a rounded square — use it for applicants and owners, and keep staff round. The corner radius steps with the size.
|
|
659
|
+
|
|
660
|
+
```html
|
|
661
|
+
<span class="vd-avatar vd-avatar-md vd-avatar-square">NF</span>
|
|
662
|
+
<span class="vd-avatar vd-avatar-xl vd-avatar-square">NF</span>
|
|
663
|
+
```
|
|
664
|
+
|
|
625
665
|
---
|
|
626
666
|
|
|
627
667
|
### Chip / Badge / Dot
|
|
@@ -677,12 +717,40 @@ Status indicator system with three presentation modes.
|
|
|
677
717
|
<span class="vd-dot vd-dot-critical vd-with-ring"></span>
|
|
678
718
|
```
|
|
679
719
|
|
|
720
|
+
**Misc palette (0.6.0)** — 18 hues for categorical colour (a group, a source, a channel). Not for status: keep warning / critical / success / neutral for that. Add `-misc` to the component and one hue class:
|
|
721
|
+
|
|
722
|
+
```html
|
|
723
|
+
<span class="vd-chip vd-chip-misc vd-misc-teal">
|
|
724
|
+
<span class="vd-chip-dot"></span>
|
|
725
|
+
<span>Middesk</span>
|
|
726
|
+
</span>
|
|
727
|
+
<span class="vd-badge vd-badge-misc vd-misc-indigo">3</span>
|
|
728
|
+
<span class="vd-dot vd-dot-sm vd-dot-misc vd-misc-purple"></span>
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
Hues: `vd-misc-blue`, `-indigo`, `-violet`, `-purple`, `-pink`, `-rose`, `-red`, `-orange`, `-amber`, `-yellow`, `-lime`, `-green`, `-emerald`, `-teal`, `-cyan`, `-sky`, `-slate`, `-stone`. The chip fill is the hue's soft tint, the label its text step, the dot its dot step. There is also `vd-dot-info` for an info-coloured dot.
|
|
732
|
+
|
|
680
733
|
---
|
|
681
734
|
|
|
682
735
|
### Tag
|
|
683
736
|
|
|
684
737
|
Clickable label for categories and filtering. Sizes: `-xs` 20 (denser padding), `-sm` 20 (default), `-md` 24, `-lg` 32; kinds `-recipient` / `-empty`; the `-external` state (a Warning/Soft fill, a globe icon and a nested XS status chip — the tag grows to 24 when it carries the chip). Slots: an avatar (`.vd-avatar-sm`, 16; `-xs` 12 in an xs recipient tag), a count (`.vd-tag-count`), a status dot (`.vd-dot vd-dot-sm`, 6px).
|
|
685
738
|
|
|
739
|
+
**Label kind (0.6.0):** `vd-tag-label` is a boxed tag (white fill, 1px border, 6px corners) with a coloured group dot before the text. One size, 22px tall. The dot is a Dot — colour it by group:
|
|
740
|
+
|
|
741
|
+
| Group | Dot classes |
|
|
742
|
+
| ------- | ------------------------------------------- |
|
|
743
|
+
| channel | `vd-dot vd-dot-sm vd-dot-info` |
|
|
744
|
+
| entity | `vd-dot vd-dot-sm vd-dot-misc vd-misc-purple` |
|
|
745
|
+
| source | `vd-dot vd-dot-sm vd-dot-misc vd-misc-teal` |
|
|
746
|
+
| status | `vd-dot vd-dot-sm vd-dot-neutral` |
|
|
747
|
+
|
|
748
|
+
```html
|
|
749
|
+
<button class="vd-tag vd-tag-label">
|
|
750
|
+
<span class="vd-dot vd-dot-sm vd-dot-misc vd-misc-teal"></span>Middesk
|
|
751
|
+
</button>
|
|
752
|
+
```
|
|
753
|
+
|
|
686
754
|
```html
|
|
687
755
|
<!-- Simple tag -->
|
|
688
756
|
<button class="vd-tag" aria-pressed="false">Design</button>
|
|
@@ -729,7 +797,11 @@ Compact filter toggle or dropdown trigger. Height: 17px.
|
|
|
729
797
|
|
|
730
798
|
### DataRow
|
|
731
799
|
|
|
732
|
-
One labelled field in a review panel. Three columns: field name (200px), value (
|
|
800
|
+
One labelled field in a review panel. Three columns: field name (200px), value (320px), status (flex-1), then an optional group of hover-revealed actions.
|
|
801
|
+
|
|
802
|
+
> **Resized in 0.6.0.** The row is **44px** (46 when the value is a SensitiveData); it was 38. The value column is 320px (was 400) and its text is 14px. The status takes the **compact** FieldVerification (`vd-field-verification-compact`, the marker alone); the full inline row with its label makes the DataRow 46. Wrap trailing actions in `.vd-data-row-actions`.
|
|
803
|
+
|
|
804
|
+
**Linked:** add `vd-data-row-linked` to the row tied to an open finding — a 2px primary stroke down its left edge. It takes no space, so linked and unlinked rows line up.
|
|
733
805
|
|
|
734
806
|
```html
|
|
735
807
|
<div class="vd-data-row">
|
|
@@ -737,7 +809,7 @@ One labelled field in a review panel. Three columns: field name (200px), value (
|
|
|
737
809
|
<span class="vd-data-row-value">John</span>
|
|
738
810
|
|
|
739
811
|
<!-- Status column with field verification -->
|
|
740
|
-
<span class="vd-field-verification vd-field-verification-verified vd-data-row-status">
|
|
812
|
+
<span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact vd-data-row-status">
|
|
741
813
|
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Verified">
|
|
742
814
|
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
743
815
|
<use href="#check" />
|
|
@@ -746,14 +818,19 @@ One labelled field in a review panel. Three columns: field name (200px), value (
|
|
|
746
818
|
<span class="vd-field-verification-label">Matches Plaid KYC</span>
|
|
747
819
|
</span>
|
|
748
820
|
|
|
749
|
-
<!-- Hover-revealed
|
|
750
|
-
<
|
|
751
|
-
<
|
|
752
|
-
<
|
|
753
|
-
|
|
754
|
-
|
|
821
|
+
<!-- Hover-revealed actions, right-aligned -->
|
|
822
|
+
<span class="vd-data-row-actions">
|
|
823
|
+
<button class="vd-icon-button vd-icon-button-inline vd-data-row-action" aria-label="Help">
|
|
824
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
825
|
+
<use href="#circle-question-mark" />
|
|
826
|
+
</svg>
|
|
827
|
+
</button>
|
|
828
|
+
</span>
|
|
755
829
|
</div>
|
|
756
830
|
|
|
831
|
+
<!-- Linked to the open finding -->
|
|
832
|
+
<div class="vd-data-row vd-data-row-linked">…</div>
|
|
833
|
+
|
|
757
834
|
<!-- With sensitive data value -->
|
|
758
835
|
<div class="vd-data-row">
|
|
759
836
|
<span class="vd-data-row-field">SSN</span>
|
|
@@ -777,6 +854,14 @@ One labelled field in a review panel. Three columns: field name (200px), value (
|
|
|
777
854
|
</div>
|
|
778
855
|
```
|
|
779
856
|
|
|
857
|
+
**Previous value (0.7.0).** After an edit, show what the field held before with `.vd-data-row-previous` inside the value: struck through, quieter, 8px after the current value. Use an `<s>` and a visually hidden "was", because few screen readers announce a strike.
|
|
858
|
+
|
|
859
|
+
```html
|
|
860
|
+
<span class="vd-data-row-value">Corporation<s class="vd-data-row-previous"><span class="sr-only">was </span>LLC</s></span>
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
Inside a [Record](#record) the value column gives way on a narrow page.
|
|
864
|
+
|
|
780
865
|
---
|
|
781
866
|
|
|
782
867
|
### Divider
|
|
@@ -871,921 +956,2249 @@ Loading placeholder. Requires both a shape class and a size class.
|
|
|
871
956
|
|
|
872
957
|
---
|
|
873
958
|
|
|
874
|
-
|
|
959
|
+
### SeverityMarker
|
|
875
960
|
|
|
876
|
-
|
|
961
|
+
The severity shape for a finding: a **diamond** (critical), a **dot** (review) or a **ring** (info). The shape carries the meaning, so it reads without colour. A fixed 16px box. New in 0.6.0.
|
|
877
962
|
|
|
878
|
-
|
|
963
|
+
```html
|
|
964
|
+
<span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
|
|
965
|
+
<span class="vd-severity-marker vd-severity-marker-review" role="img" aria-label="Needs review"></span>
|
|
966
|
+
<span class="vd-severity-marker vd-severity-marker-info" role="img" aria-label="Info"></span>
|
|
967
|
+
```
|
|
879
968
|
|
|
880
|
-
|
|
969
|
+
**ARIA:** it has no text, so give it `role="img"` and an `aria-label` — or `aria-hidden="true"` when a label right beside it already says the severity.
|
|
970
|
+
|
|
971
|
+
---
|
|
972
|
+
|
|
973
|
+
### SeverityCount
|
|
974
|
+
|
|
975
|
+
A count of open items with its severity marker — a button that opens the finding. 24px tall. New in 0.6.0.
|
|
881
976
|
|
|
882
977
|
```html
|
|
883
|
-
|
|
884
|
-
<
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
<span class="vd-nav-title-details">
|
|
889
|
-
<span class="vd-nav-title-name">Central Williamette</span>
|
|
890
|
-
<span class="vd-nav-title-subtitle">Main st branch</span>
|
|
891
|
-
</span>
|
|
892
|
-
<span class="vd-nav-title-action">
|
|
893
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
894
|
-
<use href="#chevron-down" />
|
|
895
|
-
</svg>
|
|
896
|
-
</span>
|
|
897
|
-
</a>
|
|
978
|
+
<button class="vd-severity-count" aria-label="3 items to review">
|
|
979
|
+
<span class="vd-severity-marker vd-severity-marker-review" aria-hidden="true"></span>
|
|
980
|
+
3
|
|
981
|
+
</button>
|
|
982
|
+
```
|
|
898
983
|
|
|
899
|
-
|
|
900
|
-
<a href="#" class="vd-nav-item" aria-current="page">
|
|
901
|
-
<svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
902
|
-
<use href="#inbox" />
|
|
903
|
-
</svg>
|
|
904
|
-
<span class="vd-nav-item-label">Inbox</span>
|
|
905
|
-
<span class="vd-nav-item-count">41</span>
|
|
906
|
-
</a>
|
|
984
|
+
Pick the severity by choosing the marker. **ARIA:** the marker is hidden and the button's `aria-label` carries both the count and what it counts.
|
|
907
985
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
986
|
+
**In a row's status column** add `vd-severity-count-flush` (0.7.0). It drops the left padding, so the marker starts at the column's edge and lines up with the checks in the rows around it. Use it in a [ContentRow](#contentrow)'s status slot and in an [OwnerRow](#ownerrow)'s status cells:
|
|
987
|
+
|
|
988
|
+
```html
|
|
989
|
+
<span class="vd-content-row-status">
|
|
990
|
+
<button class="vd-severity-count vd-severity-count-flush" aria-label="Registration: 1 critical finding">
|
|
991
|
+
<span class="vd-severity-marker vd-severity-marker-critical" aria-hidden="true"></span>
|
|
992
|
+
1
|
|
914
993
|
</button>
|
|
994
|
+
</span>
|
|
995
|
+
```
|
|
915
996
|
|
|
916
|
-
|
|
917
|
-
<div id="analyze-items" class="vd-nav-rail-items">
|
|
918
|
-
<a href="#" class="vd-nav-item vd-nav-item-active">
|
|
919
|
-
<svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
920
|
-
<use href="#users" />
|
|
921
|
-
</svg>
|
|
922
|
-
<span class="vd-nav-item-label">Businesses</span>
|
|
923
|
-
<span class="vd-nav-badge">Beta</span>
|
|
924
|
-
</a>
|
|
925
|
-
</div>
|
|
926
|
-
</nav>
|
|
997
|
+
---
|
|
927
998
|
|
|
928
|
-
|
|
929
|
-
<nav class="vd-nav-rail">
|
|
930
|
-
<a href="#" class="vd-nav-title vd-nav-title-collapsed">
|
|
931
|
-
<span class="vd-nav-title-logo"><img src="/logo.svg" alt="" /></span>
|
|
932
|
-
<span class="vd-nav-title-details">
|
|
933
|
-
<span class="vd-nav-title-name">Central Williamette</span>
|
|
934
|
-
<span class="vd-nav-title-subtitle">Main st branch</span>
|
|
935
|
-
</span>
|
|
936
|
-
</a>
|
|
999
|
+
### ProgressCircle
|
|
937
1000
|
|
|
938
|
-
|
|
939
|
-
<span class="vd-nav-group-rule"></span>
|
|
940
|
-
</div>
|
|
1001
|
+
A small determinate progress ring. Sizes: `-xs` 12 (default), `-sm` 16, `-md` 24, `-lg` 32. Set the value with the `--progress` custom property (0–100). New in 0.6.0.
|
|
941
1002
|
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
1003
|
+
```html
|
|
1004
|
+
<span class="vd-progress-circle vd-progress-circle-md" style="--progress: 50"
|
|
1005
|
+
role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"
|
|
1006
|
+
aria-label="Review progress"></span>
|
|
1007
|
+
|
|
1008
|
+
<!-- Complete: a filled circle with a check -->
|
|
1009
|
+
<span class="vd-progress-circle vd-progress-circle-md vd-progress-circle-complete"
|
|
1010
|
+
role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
|
|
1011
|
+
aria-label="Review progress">
|
|
1012
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>
|
|
1013
|
+
</span>
|
|
950
1014
|
```
|
|
951
1015
|
|
|
1016
|
+
Keep `--progress` and `aria-valuenow` in step. At 100, switch to `vd-progress-circle-complete` and add the check (icon size 10 / 11 / 16 / 22 for xs / sm / md / lg).
|
|
1017
|
+
|
|
952
1018
|
---
|
|
953
1019
|
|
|
954
|
-
###
|
|
1020
|
+
### Keycap
|
|
955
1021
|
|
|
956
|
-
|
|
1022
|
+
A keyboard-shortcut hint. 16px tall, hugs its keys. New in 0.6.0.
|
|
957
1023
|
|
|
958
|
-
|
|
1024
|
+
```html
|
|
1025
|
+
<kbd class="vd-keycap">⌘K</kbd>
|
|
1026
|
+
```
|
|
959
1027
|
|
|
960
|
-
|
|
1028
|
+
---
|
|
961
1029
|
|
|
962
|
-
|
|
1030
|
+
### Scrollbar
|
|
1031
|
+
|
|
1032
|
+
A thin, subtle scrollbar for any scroll container: add `vd-scrollbar` to the element that scrolls. New in 0.6.0.
|
|
963
1033
|
|
|
964
1034
|
```html
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="true" aria-controls="p1">
|
|
968
|
-
Overview
|
|
969
|
-
<span class="vd-badge vd-badge-neutral">3</span>
|
|
970
|
-
</button>
|
|
971
|
-
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2" tabindex="-1">
|
|
972
|
-
Documents
|
|
973
|
-
</button>
|
|
974
|
-
</div>
|
|
975
|
-
<div id="p1" role="tabpanel">Panel 1</div>
|
|
976
|
-
<div id="p2" role="tabpanel" hidden>Panel 2</div>
|
|
1035
|
+
<div class="vd-scrollbar" tabindex="0" role="region" aria-label="Activity" style="overflow: auto; max-height: 240px">…</div>
|
|
1036
|
+
```
|
|
977
1037
|
|
|
978
|
-
|
|
979
|
-
<button class="vd-tab vd-tab-underline vd-tab-sm" role="tab" aria-selected="true">
|
|
980
|
-
<span class="vd-tab-label" data-label="Overview">Overview</span>
|
|
981
|
-
</button>
|
|
1038
|
+
The thumb is exactly 6px in Chrome and Safari; Firefox draws its own thin scrollbar in the same colour.
|
|
982
1039
|
|
|
983
|
-
|
|
984
|
-
<div style="height: 40px; display: flex; align-items: center">
|
|
985
|
-
<div class="vd-tabs" role="tablist" aria-label="Panel view" style="height: 100%">
|
|
986
|
-
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="true">
|
|
987
|
-
<span class="vd-tab-label" data-label="Summary">Summary</span>
|
|
988
|
-
</button>
|
|
989
|
-
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="false" tabindex="-1">
|
|
990
|
-
<span class="vd-tab-label" data-label="Activity">Activity</span>
|
|
991
|
-
</button>
|
|
992
|
-
</div>
|
|
993
|
-
</div>
|
|
1040
|
+
**Keyboard:** a scroll container with nothing focusable inside cannot be scrolled from the keyboard. Give it `tabindex="0"` and a name (`role="region"` + `aria-label`), as above.
|
|
994
1041
|
|
|
995
|
-
|
|
996
|
-
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="true">
|
|
997
|
-
<span>
|
|
998
|
-
Overview
|
|
999
|
-
<span class="vd-tab-subtitle">APPLICANT</span>
|
|
1000
|
-
</span>
|
|
1001
|
-
</button>
|
|
1042
|
+
---
|
|
1002
1043
|
|
|
1003
|
-
|
|
1004
|
-
<div class="vd-tabs vd-tabs-chip" role="tablist" aria-label="Status">
|
|
1005
|
-
<button class="vd-tab vd-tab-chip" role="tab" aria-selected="true">
|
|
1006
|
-
<span class="vd-tab-label" data-label="All">All</span>
|
|
1007
|
-
</button>
|
|
1008
|
-
<button class="vd-tab vd-tab-chip" role="tab" aria-selected="false" tabindex="-1">
|
|
1009
|
-
<span class="vd-tab-label" data-label="Active">Active</span>
|
|
1010
|
-
</button>
|
|
1011
|
-
</div>
|
|
1044
|
+
### OverlayScrim
|
|
1012
1045
|
|
|
1013
|
-
|
|
1046
|
+
The dimmed backdrop behind a peeking rail or a custom overlay. Covers the viewport; toggle it with the `hidden` attribute. New in 0.6.0.
|
|
1047
|
+
|
|
1048
|
+
```html
|
|
1049
|
+
<div class="vd-overlay-scrim" hidden></div>
|
|
1014
1050
|
```
|
|
1015
1051
|
|
|
1052
|
+
A native `<dialog class="vd-modal">` already has its own backdrop and does not need this.
|
|
1053
|
+
|
|
1016
1054
|
---
|
|
1017
1055
|
|
|
1018
|
-
###
|
|
1056
|
+
### ContentRow
|
|
1019
1057
|
|
|
1020
|
-
|
|
1058
|
+
A collapsed section line: a title and summary, a status, tools that appear on hover, and a chevron that expands the row into its fields (which are [DataRow](#datarow)s). 48px tall. New in 0.6.0.
|
|
1059
|
+
|
|
1060
|
+
⚠️ **Expanding requires JavaScript** — toggle `aria-expanded` on the chevron's button and show or hide the rows beneath.
|
|
1021
1061
|
|
|
1022
1062
|
```html
|
|
1023
|
-
|
|
1024
|
-
<
|
|
1025
|
-
|
|
1026
|
-
<span class="vd-
|
|
1027
|
-
</
|
|
1028
|
-
<
|
|
1029
|
-
<span class="vd-
|
|
1030
|
-
|
|
1063
|
+
<div class="vd-content-row">
|
|
1064
|
+
<p class="vd-content-row-text">
|
|
1065
|
+
<span class="vd-content-row-title">John Smith</span>
|
|
1066
|
+
<span class="vd-content-row-summary">· Jan 1, 1990 · jsmith@gmail.com</span>
|
|
1067
|
+
</p>
|
|
1068
|
+
<span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact vd-content-row-status">
|
|
1069
|
+
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Verified">
|
|
1070
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
|
|
1071
|
+
</span>
|
|
1072
|
+
<span class="vd-field-verification-label">Verified</span>
|
|
1073
|
+
</span>
|
|
1074
|
+
<span class="vd-content-row-actions">
|
|
1075
|
+
<button class="vd-icon-button vd-icon-button-inline vd-content-row-action" aria-label="Edit John Smith">
|
|
1076
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#pencil-line" /></svg>
|
|
1077
|
+
</button>
|
|
1078
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="John Smith details">
|
|
1079
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
1080
|
+
</button>
|
|
1081
|
+
</span>
|
|
1031
1082
|
</div>
|
|
1083
|
+
```
|
|
1032
1084
|
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1085
|
+
Add `vd-content-row-action` to any tool that should only appear on hover or keyboard focus. The chevron turns when its button is `aria-expanded="true"`.
|
|
1086
|
+
|
|
1087
|
+
Since 0.7.0:
|
|
1088
|
+
|
|
1089
|
+
- **The text wraps.** A long summary runs to a second line and the row grows to 64px; it no longer truncates.
|
|
1090
|
+
- **An expanded row keeps its hover tools visible.**
|
|
1091
|
+
- **`.vd-content-row-linked`** marks the collapsed row a finding points at: a 2px blue stroke on the left edge, the same mark as `.vd-data-row-linked`.
|
|
1092
|
+
- **A row with an open finding** shows a [SeverityCount](#severitycount) in place of the check: put `vd-content-row-status` on a wrapper `<span>` and the count inside it, with `vd-severity-count-flush`.
|
|
1093
|
+
- Inside a [Record](#record) the 536px text column gives way on a narrow page.
|
|
1094
|
+
|
|
1095
|
+
---
|
|
1096
|
+
|
|
1097
|
+
### SummaryPreview
|
|
1098
|
+
|
|
1099
|
+
The label in the gutter beside a section, with a count of its comments. 140px wide; set `--vd-summary-preview-width` (0.7.0) on it or on its gutter for another width — the Application page uses 112px. New in 0.6.0.
|
|
1100
|
+
|
|
1101
|
+
```html
|
|
1102
|
+
<div class="vd-summary-preview">
|
|
1103
|
+
<p class="vd-summary-preview-label">Business</p>
|
|
1104
|
+
<button class="vd-summary-preview-count" aria-label="2 comments on Business">
|
|
1105
|
+
<svg class="vd-icon vd-icon-size-10" aria-hidden="true"><use href="#message-circle" /></svg>
|
|
1106
|
+
2
|
|
1040
1107
|
</button>
|
|
1041
1108
|
</div>
|
|
1042
1109
|
```
|
|
1043
1110
|
|
|
1111
|
+
Optional: a 13px icon inside the label, a `.vd-summary-preview-subtitle` line, and a [Pill](#pill) selector between the label and the count. **ARIA:** the count shows only a number, so name the button.
|
|
1112
|
+
|
|
1044
1113
|
---
|
|
1045
1114
|
|
|
1046
|
-
###
|
|
1115
|
+
### SnapshotMetric
|
|
1047
1116
|
|
|
1048
|
-
|
|
1117
|
+
One headline figure: a small label over a large value, with optional detail text, a download button, status dots or a unit after it. New in 0.6.0.
|
|
1049
1118
|
|
|
1050
1119
|
```html
|
|
1051
|
-
<div class="vd-
|
|
1052
|
-
<
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
</button>
|
|
1058
|
-
<button class="vd-filter-segment vd-filter-segment-md">
|
|
1059
|
-
Deposit Account
|
|
1060
|
-
</button>
|
|
1061
|
-
<span class="vd-filter-segment vd-filter-segment-last vd-filter-segment-md">
|
|
1062
|
-
<button class="vd-icon-button vd-icon-button-inline" aria-label="Remove filter">
|
|
1063
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1064
|
-
<use href="#x" />
|
|
1065
|
-
</svg>
|
|
1066
|
-
</button>
|
|
1067
|
-
</span>
|
|
1120
|
+
<div class="vd-snapshot-metric">
|
|
1121
|
+
<p class="vd-snapshot-metric-label">KYB</p>
|
|
1122
|
+
<p class="vd-snapshot-metric-values">
|
|
1123
|
+
<span class="vd-snapshot-metric-value">Pass</span>
|
|
1124
|
+
<span class="vd-snapshot-metric-detail">14/16</span>
|
|
1125
|
+
</p>
|
|
1068
1126
|
</div>
|
|
1069
1127
|
|
|
1070
|
-
<!--
|
|
1071
|
-
<div class="vd-
|
|
1072
|
-
<
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
None
|
|
1080
|
-
</button>
|
|
1128
|
+
<!-- A count with status dots: centre the row, and name the group -->
|
|
1129
|
+
<div class="vd-snapshot-metric">
|
|
1130
|
+
<p class="vd-snapshot-metric-label">Owners</p>
|
|
1131
|
+
<p class="vd-snapshot-metric-values vd-snapshot-metric-values-center" role="img" aria-label="3 owners, 2 verified">
|
|
1132
|
+
<span class="vd-snapshot-metric-value">3</span>
|
|
1133
|
+
<span class="vd-snapshot-metric-dot"></span>
|
|
1134
|
+
<span class="vd-snapshot-metric-dot"></span>
|
|
1135
|
+
<span class="vd-snapshot-metric-dot vd-snapshot-metric-dot-open"></span>
|
|
1136
|
+
</p>
|
|
1081
1137
|
</div>
|
|
1082
1138
|
```
|
|
1083
1139
|
|
|
1140
|
+
Use `vd-snapshot-metric-values-center` when a control or dots follow the value; plain text after the value sits on its baseline without it.
|
|
1141
|
+
|
|
1084
1142
|
---
|
|
1085
1143
|
|
|
1086
|
-
###
|
|
1144
|
+
### EntityHeader
|
|
1087
1145
|
|
|
1088
|
-
|
|
1146
|
+
The identity block at the top of a record: icon tile, name, an entity chip and a line of facts. New in 0.6.0.
|
|
1089
1147
|
|
|
1090
1148
|
```html
|
|
1091
|
-
|
|
1092
|
-
<
|
|
1093
|
-
|
|
1094
|
-
<use href="#home" />
|
|
1095
|
-
</svg>
|
|
1096
|
-
<span class="vd-breadcrumb-separator" aria-hidden="true">></span>
|
|
1097
|
-
<a class="vd-breadcrumb" href="/applications">Applications</a>
|
|
1098
|
-
<span class="vd-breadcrumb-separator" aria-hidden="true">></span>
|
|
1099
|
-
<span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">
|
|
1100
|
-
#BA-204417
|
|
1101
|
-
</span>
|
|
1102
|
-
</nav>
|
|
1103
|
-
|
|
1104
|
-
<!-- Slash separator with middot joining two current items -->
|
|
1105
|
-
<nav class="vd-breadcrumbs" aria-label="Breadcrumb">
|
|
1106
|
-
<a class="vd-breadcrumb" href="/queue">Queue</a>
|
|
1107
|
-
<span class="vd-breadcrumb-separator" aria-hidden="true">/</span>
|
|
1108
|
-
<span class="vd-breadcrumb vd-breadcrumb-current">#BA-204417</span>
|
|
1109
|
-
<span class="vd-breadcrumb-separator vd-breadcrumb-separator-dot" aria-hidden="true">
|
|
1110
|
-
·
|
|
1111
|
-
</span>
|
|
1112
|
-
<span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">
|
|
1113
|
-
Northwind Freight LLC
|
|
1149
|
+
<header class="vd-entity-header">
|
|
1150
|
+
<span class="vd-entity-header-tile">
|
|
1151
|
+
<svg class="vd-icon vd-icon-size-18" aria-hidden="true"><use href="#building-2" /></svg>
|
|
1114
1152
|
</span>
|
|
1115
|
-
|
|
1153
|
+
<div class="vd-entity-header-info">
|
|
1154
|
+
<h1 class="vd-entity-header-name">Northgate Logistics, Inc.</h1>
|
|
1155
|
+
<div class="vd-entity-header-meta">
|
|
1156
|
+
<span class="vd-tag vd-tag-sm">INC</span>
|
|
1157
|
+
<p class="vd-entity-header-facts">
|
|
1158
|
+
<span>DBA Northgate Trucking</span><span aria-hidden="true">·</span><span>Delaware</span>
|
|
1159
|
+
</p>
|
|
1160
|
+
</div>
|
|
1161
|
+
</div>
|
|
1162
|
+
</header>
|
|
1116
1163
|
```
|
|
1117
1164
|
|
|
1165
|
+
Use whichever heading level fits the page; the class sets the type, not the element.
|
|
1166
|
+
|
|
1118
1167
|
---
|
|
1119
1168
|
|
|
1120
|
-
###
|
|
1169
|
+
### Ownership
|
|
1121
1170
|
|
|
1122
|
-
|
|
1171
|
+
How much ownership is declared: a summary line, a thin bar and a legend. It is [ProgressBar](#progressbar) with `vd-ownership` added. New in 0.6.0.
|
|
1123
1172
|
|
|
1124
1173
|
```html
|
|
1125
|
-
|
|
1126
|
-
<
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1174
|
+
<div class="vd-progress-bar vd-ownership">
|
|
1175
|
+
<p class="vd-ownership-summary">
|
|
1176
|
+
<span class="vd-ownership-summary-lead">92% of ownership declared</span> · 3 owners · 8% unaccounted
|
|
1177
|
+
</p>
|
|
1178
|
+
<div class="vd-progress-bar-track" role="progressbar" aria-valuenow="92" aria-valuemin="0"
|
|
1179
|
+
aria-valuemax="100" aria-label="Ownership declared">
|
|
1180
|
+
<div class="vd-progress-bar-fill" style="width: 92%"></div>
|
|
1181
|
+
</div>
|
|
1182
|
+
<div class="vd-progress-bar-legend">
|
|
1183
|
+
<span class="vd-progress-bar-legend-item">
|
|
1184
|
+
<span class="vd-progress-bar-legend-swatch"></span>
|
|
1185
|
+
<span class="vd-progress-bar-legend-label">92% · 3 owners</span>
|
|
1186
|
+
</span>
|
|
1187
|
+
<span class="vd-progress-bar-legend-item">
|
|
1188
|
+
<span class="vd-progress-bar-legend-swatch vd-progress-bar-legend-swatch-neutral"></span>
|
|
1189
|
+
<span class="vd-progress-bar-legend-label">8% · unaccounted</span>
|
|
1139
1190
|
</span>
|
|
1140
|
-
<button class="vd-pagination-item">18</button>
|
|
1141
|
-
<button class="vd-pagination-item vd-pagination-item-nav" aria-label="Next">
|
|
1142
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1143
|
-
<use href="#chevron-right" />
|
|
1144
|
-
</svg>
|
|
1145
|
-
</button>
|
|
1146
1191
|
</div>
|
|
1147
|
-
|
|
1148
|
-
</nav>
|
|
1149
|
-
|
|
1150
|
-
<!-- Simple pagination -->
|
|
1151
|
-
<nav class="vd-pagination" aria-label="Pagination">
|
|
1152
|
-
<button class="vd-btn vd-btn-outline vd-btn-sm">
|
|
1153
|
-
<svg class="vd-icon vd-icon-size-13" aria-hidden="true">
|
|
1154
|
-
<use href="#arrow-left" />
|
|
1155
|
-
</svg>
|
|
1156
|
-
Prev
|
|
1157
|
-
</button>
|
|
1158
|
-
<p class="vd-pagination-status">
|
|
1159
|
-
Page <span class="vd-pagination-status-current">7</span> of 18
|
|
1160
|
-
</p>
|
|
1161
|
-
<button class="vd-btn vd-btn-outline vd-btn-sm">
|
|
1162
|
-
Next
|
|
1163
|
-
<svg class="vd-icon vd-icon-size-13" aria-hidden="true">
|
|
1164
|
-
<use href="#arrow-right" />
|
|
1165
|
-
</svg>
|
|
1166
|
-
</button>
|
|
1167
|
-
</nav>
|
|
1192
|
+
</div>
|
|
1168
1193
|
```
|
|
1169
1194
|
|
|
1170
1195
|
---
|
|
1171
1196
|
|
|
1172
|
-
###
|
|
1173
|
-
|
|
1174
|
-
Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (default), `-lg` 32 — a subtitle grows the row. Titles are 12px at sm and 13px at md/lg; the subtitle is 12px at every size. Tone: `.vd-menu-item-critical` recolours the title.
|
|
1197
|
+
### OwnerTableHeader
|
|
1175
1198
|
|
|
1176
|
-
|
|
1199
|
+
Column labels above a list of owners. It shares [OwnerRow](#ownerrow)'s columns, so a label always starts where its column does: the Owner label takes the free width, then three 78⅔px status labels, then 36px of padding where the rows have their chevron. New in 0.6.0; on the shared columns since 0.7.0 (the cells were a fixed 536px and three of 94px, which ran 46px past the Application page's 828px row).
|
|
1177
1200
|
|
|
1178
|
-
|
|
1201
|
+
```html
|
|
1202
|
+
<div role="table" aria-label="Owners">
|
|
1203
|
+
<div class="vd-owner-table-header" role="row">
|
|
1204
|
+
<span class="vd-owner-table-header-cell vd-owner-table-header-cell-main" role="columnheader">Owner</span>
|
|
1205
|
+
<span class="vd-owner-table-header-cell" role="columnheader">Identity</span>
|
|
1206
|
+
<span class="vd-owner-table-header-cell" role="columnheader">Application</span>
|
|
1207
|
+
<span class="vd-owner-table-header-cell" role="columnheader">Documents</span>
|
|
1208
|
+
</div>
|
|
1209
|
+
<!-- .vd-owner-row rows -->
|
|
1210
|
+
</div>
|
|
1211
|
+
```
|
|
1179
1212
|
|
|
1180
|
-
|
|
1213
|
+
**ARIA:** `role="row"` and `role="columnheader"` are only valid inside a `role="table"` (or put the classes on a real `<tr>` and `<th>`). Without a table around them, leave the roles off.
|
|
1181
1214
|
|
|
1182
|
-
|
|
1183
|
-
<!-- Simple row -->
|
|
1184
|
-
<button class="vd-menu-item" role="menuitem">
|
|
1185
|
-
<span class="vd-menu-item-text">
|
|
1186
|
-
<span class="vd-menu-item-title">Daily</span>
|
|
1187
|
-
</span>
|
|
1188
|
-
</button>
|
|
1215
|
+
---
|
|
1189
1216
|
|
|
1190
|
-
|
|
1191
|
-
<button class="vd-menu-item" role="menuitemradio" aria-checked="true">
|
|
1192
|
-
<span class="vd-menu-item-text">
|
|
1193
|
-
<span class="vd-menu-item-title">Weekly</span>
|
|
1194
|
-
</span>
|
|
1195
|
-
<svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1196
|
-
<use href="#check" />
|
|
1197
|
-
</svg>
|
|
1198
|
-
</button>
|
|
1217
|
+
### OwnerRow
|
|
1199
1218
|
|
|
1200
|
-
|
|
1201
|
-
<button class="vd-menu-item" role="menuitem">
|
|
1202
|
-
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1203
|
-
<use href="#settings" />
|
|
1204
|
-
</svg>
|
|
1205
|
-
<span class="vd-menu-item-text">
|
|
1206
|
-
<span class="vd-menu-item-title">Preferences</span>
|
|
1207
|
-
</span>
|
|
1208
|
-
<span class="vd-menu-item-shortcut">⌘,</span>
|
|
1209
|
-
</button>
|
|
1219
|
+
One owner: who they are, their share and role, a status per check, and a chevron that expands the row. 64px tall. New in 0.7.0.
|
|
1210
1220
|
|
|
1211
|
-
|
|
1212
|
-
<button class="vd-menu-item vd-menu-item-lg" role="menuitem">
|
|
1213
|
-
<span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-md">NC</span></span>
|
|
1214
|
-
<span class="vd-menu-item-text">
|
|
1215
|
-
<span class="vd-menu-item-title">Nicholas Cooper</span>
|
|
1216
|
-
<span class="vd-menu-item-subtitle">Primary applicant</span>
|
|
1217
|
-
</span>
|
|
1218
|
-
</button>
|
|
1221
|
+
⚠️ **Expanding requires JavaScript** — toggle `aria-expanded` on the chevron's button and show or hide the fields beneath.
|
|
1219
1222
|
|
|
1220
|
-
|
|
1221
|
-
<
|
|
1222
|
-
<
|
|
1223
|
-
<
|
|
1224
|
-
|
|
1225
|
-
|
|
1223
|
+
```html
|
|
1224
|
+
<div class="vd-owner-row" role="row">
|
|
1225
|
+
<div class="vd-owner-row-main" role="cell">
|
|
1226
|
+
<span class="vd-avatar vd-avatar-md vd-avatar-square">JS</span>
|
|
1227
|
+
<span class="vd-owner-row-text">
|
|
1228
|
+
<span class="vd-owner-row-name">John Smith</span>
|
|
1229
|
+
<span class="vd-owner-row-meta">40% · Authorized Signer · Beneficial Owner</span>
|
|
1230
|
+
</span>
|
|
1231
|
+
</div>
|
|
1232
|
+
<span class="vd-owner-row-status" role="cell">
|
|
1233
|
+
<span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact">
|
|
1234
|
+
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Identity: verified">
|
|
1235
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
|
|
1236
|
+
</span>
|
|
1237
|
+
<span class="vd-field-verification-label">Identity: verified</span>
|
|
1238
|
+
</span>
|
|
1226
1239
|
</span>
|
|
1227
|
-
<span class="vd-
|
|
1228
|
-
<
|
|
1229
|
-
|
|
1240
|
+
<span class="vd-owner-row-status" role="cell">
|
|
1241
|
+
<button class="vd-severity-count vd-severity-count-flush" aria-label="Application: 1 finding needs review">
|
|
1242
|
+
<span class="vd-severity-marker vd-severity-marker-review" aria-hidden="true"></span>1
|
|
1243
|
+
</button>
|
|
1230
1244
|
</span>
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1236
|
-
<use href="#trash-2" />
|
|
1237
|
-
</svg>
|
|
1238
|
-
<span class="vd-menu-item-text">
|
|
1239
|
-
<span class="vd-menu-item-title">Delete</span>
|
|
1245
|
+
<span class="vd-owner-row-status" role="cell">
|
|
1246
|
+
<span class="vd-field-verification vd-field-verification-none vd-field-verification-compact" role="img" aria-label="Documents: no status">
|
|
1247
|
+
<span class="vd-section-marker"><svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#minus" /></svg></span>
|
|
1248
|
+
</span>
|
|
1240
1249
|
</span>
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
<span class="vd-menu-item-text">
|
|
1246
|
-
<span class="vd-menu-item-title">Archived</span>
|
|
1250
|
+
<span class="vd-owner-row-actions" role="cell">
|
|
1251
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="John Smith details">
|
|
1252
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
1253
|
+
</button>
|
|
1247
1254
|
</span>
|
|
1248
|
-
</
|
|
1255
|
+
</div>
|
|
1249
1256
|
```
|
|
1250
1257
|
|
|
1251
|
-
|
|
1258
|
+
- **The leading mark** is a square [Avatar](#avatar) (`vd-avatar-md vd-avatar-square`) for a person — owners and applicants are square, staff are round. For a company use the tile:
|
|
1259
|
+
`<span class="vd-owner-row-tile"><svg class="vd-icon vd-icon-size-11" aria-hidden="true"><use href="#building" /></svg></span>`
|
|
1260
|
+
- **Status cells** hold a compact [FieldVerification](#fieldverification) or a [SeverityCount](#severitycount). There are three columns, each a third of a fixed 236px; set `--vd-owner-columns` on the table to split the same 236px into another number.
|
|
1261
|
+
- **A count in a status cell** takes `vd-severity-count-flush`, so its marker starts at the column's edge like the checks around it.
|
|
1262
|
+
- **The owner column is the one that flexes.** The statuses and the chevron keep a fixed 268px at the right edge of the row at any width. In the Application page's 828px row that puts the first status on the same line as the other rows' status column. It is still its own layout, not [Record](#record)'s: on a narrower page the owner list keeps its columns under its own header, and no longer lines up with the rows above it.
|
|
1263
|
+
- **The chevron is the row's only control.** It has its own slot, `vd-owner-row-actions`, 14px after the last status, and turns when its button is `aria-expanded="true"`. An owner row has no Edit or Comment tool: ownership is edited from the Ownership section's own line.
|
|
1264
|
+
- **`.vd-owner-row-linked`** marks the owner a finding points at.
|
|
1265
|
+
- **ARIA:** inside a `role="table"` the row is `role="row"` and each direct child `role="cell"`. Without a table, leave the roles off.
|
|
1252
1266
|
|
|
1253
|
-
|
|
1267
|
+
---
|
|
1254
1268
|
|
|
1255
|
-
|
|
1269
|
+
### Record
|
|
1256
1270
|
|
|
1257
|
-
|
|
1271
|
+
The column grid a record's rows share. Put `vd-record` on the element that holds the rows, and on a narrow page the text column gives way while every row's status stays in line. Without it each row keeps its fixed 536px column. New in 0.7.0.
|
|
1258
1272
|
|
|
1259
1273
|
```html
|
|
1260
|
-
|
|
1261
|
-
<div class="vd-
|
|
1262
|
-
<
|
|
1263
|
-
|
|
1264
|
-
<span class="vd-menu-item-title">Weekly</span>
|
|
1265
|
-
</span>
|
|
1266
|
-
<svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1267
|
-
<use href="#check" />
|
|
1268
|
-
</svg>
|
|
1269
|
-
</button>
|
|
1270
|
-
<button class="vd-menu-item" role="menuitemradio" aria-checked="false">
|
|
1271
|
-
<span class="vd-menu-item-text">
|
|
1272
|
-
<span class="vd-menu-item-title">Daily</span>
|
|
1273
|
-
</span>
|
|
1274
|
-
</button>
|
|
1275
|
-
<button class="vd-menu-item" role="menuitemradio" aria-checked="false">
|
|
1276
|
-
<span class="vd-menu-item-text">
|
|
1277
|
-
<span class="vd-menu-item-title">Monthly</span>
|
|
1278
|
-
</span>
|
|
1279
|
-
</button>
|
|
1274
|
+
<div class="vd-record">
|
|
1275
|
+
<div class="vd-content-row">…</div>
|
|
1276
|
+
<div class="vd-data-row">…</div>
|
|
1277
|
+
<div class="vd-funding-transaction">…</div>
|
|
1280
1278
|
</div>
|
|
1279
|
+
```
|
|
1281
1280
|
|
|
1282
|
-
|
|
1283
|
-
<div class="vd-dropdown-menu" role="menu" aria-label="Actions">
|
|
1284
|
-
<div class="vd-dropdown-menu-search">
|
|
1285
|
-
<div class="vd-input-field vd-input-search vd-input-sm">
|
|
1286
|
-
<svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true"><use href="#search" /></svg>
|
|
1287
|
-
<input type="search" class="vd-input" placeholder="Search" aria-label="Search actions" />
|
|
1288
|
-
</div>
|
|
1289
|
-
</div>
|
|
1290
|
-
<div class="vd-dropdown-menu-header">
|
|
1291
|
-
<span class="vd-dropdown-menu-header-label">Record</span>
|
|
1292
|
-
</div>
|
|
1293
|
-
<button class="vd-menu-item" role="menuitem">
|
|
1294
|
-
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1295
|
-
<use href="#pencil" />
|
|
1296
|
-
</svg>
|
|
1297
|
-
<span class="vd-menu-item-text">
|
|
1298
|
-
<span class="vd-menu-item-title">Edit</span>
|
|
1299
|
-
</span>
|
|
1300
|
-
</button>
|
|
1281
|
+
It works for [ContentRow](#contentrow), [DataRow](#datarow), [FundingTransaction](#fundingtransaction) and [FundingTotal](#fundingtotal). [OwnerTableHeader](#ownertableheader) and [OwnerRow](#ownerrow) are not on this grid: they keep their status columns fixed and flex the owner column instead. The status column shrinks first, to 88px; below a 742px container the text column shrinks, to no less than 280px. Give the page a minimum width so it scrolls sideways before that.
|
|
1301
1282
|
|
|
1302
|
-
|
|
1283
|
+
The element becomes a size container (`container-type: inline-size`), so it needs a width of its own: a block or a flex item that fills, not something that shrink-wraps its content.
|
|
1303
1284
|
|
|
1304
|
-
|
|
1305
|
-
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1306
|
-
<use href="#trash-2" />
|
|
1307
|
-
</svg>
|
|
1308
|
-
<span class="vd-menu-item-text">
|
|
1309
|
-
<span class="vd-menu-item-title">Delete</span>
|
|
1310
|
-
</span>
|
|
1311
|
-
</button>
|
|
1312
|
-
<div class="vd-dropdown-menu-footer"><a class="vd-link" href="/actions">All actions</a></div>
|
|
1313
|
-
</div>
|
|
1285
|
+
---
|
|
1314
1286
|
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
<
|
|
1325
|
-
|
|
1326
|
-
|
|
1287
|
+
### DataList
|
|
1288
|
+
|
|
1289
|
+
The fields under an expanded row, with two kinds of heading. New in 0.7.0.
|
|
1290
|
+
|
|
1291
|
+
```html
|
|
1292
|
+
<div class="vd-data-list">
|
|
1293
|
+
<!-- What the list is, with one action -->
|
|
1294
|
+
<div class="vd-data-list-header">
|
|
1295
|
+
<h4 class="vd-data-list-header-title">Submitted Details</h4>
|
|
1296
|
+
<button class="vd-btn vd-btn-outline vd-btn-sm vd-data-list-header-action">
|
|
1297
|
+
View KYC Checks
|
|
1298
|
+
<svg class="vd-icon vd-icon-size-13" aria-hidden="true"><use href="#arrow-right" /></svg>
|
|
1299
|
+
</button>
|
|
1300
|
+
</div>
|
|
1301
|
+
<div class="vd-data-row">…</div>
|
|
1302
|
+
|
|
1303
|
+
<!-- A named group of fields -->
|
|
1304
|
+
<div class="vd-data-list-heading">
|
|
1305
|
+
<svg class="vd-data-list-heading-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#user" /></svg>
|
|
1306
|
+
<h5 class="vd-data-list-heading-title">Contact Details</h5>
|
|
1327
1307
|
</div>
|
|
1308
|
+
<div class="vd-data-row">…</div>
|
|
1328
1309
|
</div>
|
|
1329
1310
|
```
|
|
1330
1311
|
|
|
1312
|
+
The header is 32px with a rule under it; `vd-data-list-header-action` turns the button's label blue. A heading is 36px and draws a rule above itself unless it is the first thing in the list. Use heading elements at the level your page's outline needs.
|
|
1313
|
+
|
|
1331
1314
|
---
|
|
1332
1315
|
|
|
1333
|
-
|
|
1316
|
+
## Navigation
|
|
1334
1317
|
|
|
1335
|
-
|
|
1318
|
+
### NavigationRail
|
|
1319
|
+
|
|
1320
|
+
⚠️ **Group disclosure requires JavaScript** - Toggle `aria-expanded` on `.vd-nav-group`.
|
|
1321
|
+
|
|
1322
|
+
Sidebar with title, groups, and items. Use `-collapsed` variants for a collapsed state.
|
|
1323
|
+
|
|
1324
|
+
**Sidebar parts (0.6.0)** — in the rail's 224px column:
|
|
1336
1325
|
|
|
1337
1326
|
```html
|
|
1338
|
-
<!--
|
|
1339
|
-
<
|
|
1327
|
+
<!-- New Split: a split button — the label starts the default object, the chevron opens the menu -->
|
|
1328
|
+
<div class="vd-nav-split">
|
|
1329
|
+
<button class="vd-nav-split-main">
|
|
1330
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#plus" /></svg>New application
|
|
1331
|
+
</button>
|
|
1332
|
+
<button class="vd-nav-split-toggle" aria-haspopup="menu" aria-expanded="false" aria-label="Create something else">
|
|
1333
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
1334
|
+
</button>
|
|
1335
|
+
</div>
|
|
1340
1336
|
|
|
1341
|
-
<!--
|
|
1342
|
-
<
|
|
1337
|
+
<!-- Jump To -->
|
|
1338
|
+
<button class="vd-nav-jump">
|
|
1339
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#search" /></svg>
|
|
1340
|
+
<span class="vd-nav-jump-label">Jump to</span>
|
|
1341
|
+
<kbd class="vd-keycap">/</kbd>
|
|
1342
|
+
</button>
|
|
1343
1343
|
|
|
1344
|
-
<!--
|
|
1345
|
-
<a class="vd-
|
|
1344
|
+
<!-- Session Row: a square tile, a title, a status led by a Dot -->
|
|
1345
|
+
<a href="/applications/853081" class="vd-nav-session">
|
|
1346
|
+
<span class="vd-nav-session-tile" aria-hidden="true">NL</span>
|
|
1347
|
+
<span class="vd-nav-session-text">
|
|
1348
|
+
<span class="vd-nav-session-title">Northgate Logistics, Inc.</span>
|
|
1349
|
+
<span class="vd-nav-session-status"><span class="vd-dot vd-dot-sm vd-dot-critical"></span>2 decisions open</span>
|
|
1350
|
+
</span>
|
|
1351
|
+
</a>
|
|
1346
1352
|
|
|
1347
|
-
<!--
|
|
1348
|
-
<a class="vd-
|
|
1349
|
-
<
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
+
<!-- The same session in a collapsed rail: keep the text, it is hidden visually -->
|
|
1354
|
+
<a href="/applications/853081" class="vd-nav-session vd-nav-session-collapsed">
|
|
1355
|
+
<span class="vd-nav-session-tile" aria-hidden="true">NL<span class="vd-dot vd-dot-critical vd-nav-session-dot"></span></span>
|
|
1356
|
+
<span class="vd-nav-session-text">
|
|
1357
|
+
<span class="vd-nav-session-title">Northgate Logistics, Inc.</span>
|
|
1358
|
+
<span class="vd-nav-session-status">2 decisions open</span>
|
|
1359
|
+
</span>
|
|
1353
1360
|
</a>
|
|
1354
1361
|
|
|
1355
|
-
<!--
|
|
1356
|
-
<
|
|
1357
|
-
|
|
1358
|
-
|
|
1362
|
+
<!-- User Row: at the foot of the rail; opens the account menu -->
|
|
1363
|
+
<button class="vd-nav-user" aria-haspopup="menu" aria-expanded="false">
|
|
1364
|
+
<span class="vd-avatar vd-avatar-md" aria-hidden="true">AR</span>
|
|
1365
|
+
<span class="vd-nav-user-text">
|
|
1366
|
+
<span class="vd-nav-user-name">Alex Reyes</span>
|
|
1367
|
+
<span class="vd-nav-user-role">Underwriter</span>
|
|
1368
|
+
</span>
|
|
1369
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#chevrons-up-down" /></svg>
|
|
1370
|
+
</button>
|
|
1359
1371
|
```
|
|
1360
1372
|
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
## Feedback
|
|
1364
|
-
|
|
1365
|
-
### Alert
|
|
1366
|
-
|
|
1367
|
-
Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required** — a bare `.vd-alert` is transparent.
|
|
1368
|
-
|
|
1369
|
-
**The role follows the type.** Critical and warning take `role="alert"` (assertive); success, info and neutral take `role="status"` (polite). Either announces only when the banner is **inserted** into the page; one already present at load needs no live role.
|
|
1373
|
+
**Added in 0.7.0**
|
|
1370
1374
|
|
|
1371
1375
|
```html
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1376
|
+
<!-- Nav Sidebar layout: 8px above each group instead of 20px between them -->
|
|
1377
|
+
<nav class="vd-nav-rail vd-nav-rail-sidebar" aria-label="Main">
|
|
1378
|
+
<div class="vd-nav-rail-content">
|
|
1379
|
+
<!-- Top actions: Jump To over New Split -->
|
|
1380
|
+
<div class="vd-nav-rail-actions">…</div>
|
|
1381
|
+
|
|
1382
|
+
<div class="vd-nav-rail-section">
|
|
1383
|
+
<!-- Section header: a group label with an action at the far end -->
|
|
1384
|
+
<div class="vd-nav-section-header">
|
|
1385
|
+
<div class="vd-nav-group"><span class="vd-nav-group-label">Pinned</span></div>
|
|
1386
|
+
<button class="vd-nav-section-header-action">Edit</button>
|
|
1387
|
+
</div>
|
|
1388
|
+
<!-- nav items -->
|
|
1389
|
+
</div>
|
|
1390
|
+
|
|
1391
|
+
<div class="vd-nav-rail-section">
|
|
1392
|
+
<div class="vd-nav-section-header">
|
|
1393
|
+
<div class="vd-nav-group"><span class="vd-nav-group-label">Continue</span></div>
|
|
1394
|
+
</div>
|
|
1395
|
+
<!-- The session that is open: aria-current -->
|
|
1396
|
+
<a href="/applications/853081" class="vd-nav-session" aria-current="true">
|
|
1397
|
+
<span class="vd-nav-session-tile" aria-hidden="true">NL</span>
|
|
1398
|
+
<span class="vd-nav-session-text">
|
|
1399
|
+
<span class="vd-nav-session-title">Northgate Logistics, Inc.</span>
|
|
1400
|
+
<span class="vd-nav-session-status"><span class="vd-dot vd-dot-sm vd-dot-critical"></span>2 decisions open</span>
|
|
1401
|
+
</span>
|
|
1402
|
+
</a>
|
|
1383
1403
|
</div>
|
|
1384
|
-
<button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
|
|
1385
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1386
|
-
<use href="#x" />
|
|
1387
|
-
</svg>
|
|
1388
|
-
</button>
|
|
1389
1404
|
</div>
|
|
1390
|
-
</div>
|
|
1391
1405
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
<
|
|
1406
|
+
<button class="vd-nav-user" aria-haspopup="menu" aria-expanded="false">…</button>
|
|
1407
|
+
</nav>
|
|
1408
|
+
|
|
1409
|
+
<!-- The account control in a collapsed rail: the avatar alone. Keep the text; it is hidden visually. -->
|
|
1410
|
+
<button class="vd-nav-user vd-nav-user-collapsed" aria-haspopup="menu" aria-expanded="false">
|
|
1411
|
+
<span class="vd-avatar vd-avatar-md" aria-hidden="true">AR</span>
|
|
1412
|
+
<span class="vd-nav-user-text">
|
|
1413
|
+
<span class="vd-nav-user-name">Alex Reyes</span>
|
|
1414
|
+
<span class="vd-nav-user-role">Underwriter</span>
|
|
1415
|
+
</span>
|
|
1416
|
+
</button>
|
|
1397
1417
|
```
|
|
1398
1418
|
|
|
1399
|
-
|
|
1419
|
+
- `vd-nav-rail-sidebar` is the spacing Figma's Nav Sidebar draws. Without it the rail keeps the older 20px between sections.
|
|
1420
|
+
- A long session status now truncates with an ellipsis and its dot keeps its size.
|
|
1400
1421
|
|
|
1401
|
-
|
|
1422
|
+
**Added in 0.6.0**
|
|
1402
1423
|
|
|
1403
|
-
|
|
1424
|
+
- **Peek:** `vd-nav-rail-peek` floats the expanded rail over the page (frame fill, shadow to the right) while the sidebar is hidden. It is absolutely positioned on the left edge of its nearest positioned ancestor. Showing it when the pointer reaches the screen edge is your JavaScript.
|
|
1425
|
+
- **Hidden:** use the native `hidden` attribute on `.vd-nav-rail`.
|
|
1426
|
+
- **Critical status dot:** `vd-nav-item-status vd-nav-item-status-critical` (red), alongside the default, `-warning` and `-primary`.
|
|
1427
|
+
- **Resizing:** put a [ResizeHandle](#resizehandle) on the rail's edge.
|
|
1404
1428
|
|
|
1405
1429
|
```html
|
|
1406
|
-
|
|
1407
|
-
<
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
</
|
|
1419
|
-
|
|
1420
|
-
|
|
1430
|
+
<div style="position: relative">
|
|
1431
|
+
<nav class="vd-nav-rail vd-nav-rail-peek" aria-label="Main">…</nav>
|
|
1432
|
+
</div>
|
|
1433
|
+
```
|
|
1434
|
+
|
|
1435
|
+
```html
|
|
1436
|
+
<!-- Expanded rail -->
|
|
1437
|
+
<nav class="vd-nav-rail">
|
|
1438
|
+
<!-- Title -->
|
|
1439
|
+
<a href="#" class="vd-nav-title">
|
|
1440
|
+
<span class="vd-nav-title-logo"><img src="/logo.svg" alt="" /></span>
|
|
1441
|
+
<span class="vd-nav-title-details">
|
|
1442
|
+
<span class="vd-nav-title-name">Central Williamette</span>
|
|
1443
|
+
<span class="vd-nav-title-subtitle">Main st branch</span>
|
|
1444
|
+
</span>
|
|
1445
|
+
<span class="vd-nav-title-action">
|
|
1421
1446
|
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1422
|
-
<use href="#
|
|
1447
|
+
<use href="#chevron-down" />
|
|
1423
1448
|
</svg>
|
|
1424
|
-
</
|
|
1449
|
+
</span>
|
|
1450
|
+
</a>
|
|
1451
|
+
|
|
1452
|
+
<!-- Current page -->
|
|
1453
|
+
<a href="#" class="vd-nav-item" aria-current="page">
|
|
1454
|
+
<svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1455
|
+
<use href="#inbox" />
|
|
1456
|
+
</svg>
|
|
1457
|
+
<span class="vd-nav-item-label">Inbox</span>
|
|
1458
|
+
<span class="vd-nav-item-count">41</span>
|
|
1459
|
+
</a>
|
|
1460
|
+
|
|
1461
|
+
<!-- Group (with disclosure) -->
|
|
1462
|
+
<button class="vd-nav-group" aria-expanded="true" aria-controls="analyze-items">
|
|
1463
|
+
<span class="vd-nav-group-label">Analyze</span>
|
|
1464
|
+
<svg class="vd-nav-group-chevron vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1465
|
+
<use href="#chevron-down" />
|
|
1466
|
+
</svg>
|
|
1467
|
+
</button>
|
|
1468
|
+
|
|
1469
|
+
<!-- Items in group -->
|
|
1470
|
+
<div id="analyze-items" class="vd-nav-rail-items">
|
|
1471
|
+
<a href="#" class="vd-nav-item vd-nav-item-active">
|
|
1472
|
+
<svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1473
|
+
<use href="#users" />
|
|
1474
|
+
</svg>
|
|
1475
|
+
<span class="vd-nav-item-label">Businesses</span>
|
|
1476
|
+
<span class="vd-nav-badge">Beta</span>
|
|
1477
|
+
</a>
|
|
1425
1478
|
</div>
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1479
|
+
</nav>
|
|
1480
|
+
|
|
1481
|
+
<!-- Collapsed rail -->
|
|
1482
|
+
<nav class="vd-nav-rail">
|
|
1483
|
+
<a href="#" class="vd-nav-title vd-nav-title-collapsed">
|
|
1484
|
+
<span class="vd-nav-title-logo"><img src="/logo.svg" alt="" /></span>
|
|
1485
|
+
<span class="vd-nav-title-details">
|
|
1486
|
+
<span class="vd-nav-title-name">Central Williamette</span>
|
|
1487
|
+
<span class="vd-nav-title-subtitle">Main st branch</span>
|
|
1488
|
+
</span>
|
|
1489
|
+
</a>
|
|
1490
|
+
|
|
1491
|
+
<div class="vd-nav-group vd-nav-group-collapsed">
|
|
1492
|
+
<span class="vd-nav-group-rule"></span>
|
|
1429
1493
|
</div>
|
|
1430
|
-
</div>
|
|
1431
1494
|
|
|
1432
|
-
|
|
1433
|
-
<
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
</
|
|
1495
|
+
<a href="#" class="vd-nav-item vd-nav-item-collapsed">
|
|
1496
|
+
<svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1497
|
+
<use href="#bell" />
|
|
1498
|
+
</svg>
|
|
1499
|
+
<span class="vd-nav-item-label">Alerts</span>
|
|
1500
|
+
<span class="vd-nav-item-status"></span>
|
|
1501
|
+
</a>
|
|
1502
|
+
</nav>
|
|
1439
1503
|
```
|
|
1440
1504
|
|
|
1441
1505
|
---
|
|
1442
1506
|
|
|
1443
|
-
###
|
|
1507
|
+
### ResizeHandle
|
|
1444
1508
|
|
|
1445
|
-
⚠️ **
|
|
1509
|
+
⚠️ **Dragging requires JavaScript** — the library draws the grip; you move the panel.
|
|
1446
1510
|
|
|
1447
|
-
|
|
1511
|
+
The grip on a resizable panel's edge. A 12px-wide strip that shows a small knob on hover or focus, and the panel's width while dragging. New in 0.6.0.
|
|
1448
1512
|
|
|
1449
1513
|
```html
|
|
1450
|
-
<
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1514
|
+
<aside style="position: relative; width: 240px">
|
|
1515
|
+
…
|
|
1516
|
+
<div style="position: absolute; top: 0; bottom: 0; right: -6px; display: flex">
|
|
1517
|
+
<div class="vd-resize-handle" role="separator" aria-orientation="vertical"
|
|
1518
|
+
aria-label="Resize sidebar" tabindex="0"
|
|
1519
|
+
aria-valuenow="240" aria-valuemin="60" aria-valuemax="480">
|
|
1520
|
+
<span class="vd-resize-handle-knob">
|
|
1521
|
+
<span class="vd-resize-handle-readout">240</span>
|
|
1457
1522
|
</span>
|
|
1458
|
-
<h2 class="vd-modal-title" id="modal-title">
|
|
1459
|
-
Decline this application?
|
|
1460
|
-
</h2>
|
|
1461
1523
|
</div>
|
|
1462
|
-
<button class="vd-icon-button vd-icon-button-md" aria-label="Close">
|
|
1463
|
-
<svg class="vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1464
|
-
<use href="#x" />
|
|
1465
|
-
</svg>
|
|
1466
|
-
</button>
|
|
1467
1524
|
</div>
|
|
1525
|
+
</aside>
|
|
1526
|
+
```
|
|
1468
1527
|
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
</p>
|
|
1473
|
-
<p class="vd-modal-description">
|
|
1474
|
-
Two blocking items remain unresolved.
|
|
1475
|
-
</p>
|
|
1476
|
-
</div>
|
|
1528
|
+
- **States:** hover and keyboard focus show the knob; add `vd-resize-handle-dragging` while the pointer is down to swap the grip bars for the width readout.
|
|
1529
|
+
- **Your JavaScript:** on pointerdown add the class and capture the pointer; on pointermove set the panel's width and write it into both `.vd-resize-handle-readout` and `aria-valuenow`; on pointerup remove the class.
|
|
1530
|
+
- **Keyboard:** it is a `role="separator"` with a value, so handle Left / Right (resize) and Home / End (jump to the limits).
|
|
1477
1531
|
|
|
1478
|
-
|
|
1479
|
-
<p class="vd-modal-context-text">#BA-204417 · Northwind Freight LLC</p>
|
|
1480
|
-
</div>
|
|
1532
|
+
---
|
|
1481
1533
|
|
|
1482
|
-
|
|
1483
|
-
<button class="vd-btn vd-btn-empty vd-btn-lg">Cancel</button>
|
|
1484
|
-
<button class="vd-btn vd-btn-critical vd-btn-lg">Decline application</button>
|
|
1485
|
-
</div>
|
|
1486
|
-
</dialog>
|
|
1534
|
+
### Tabs
|
|
1487
1535
|
|
|
1488
|
-
|
|
1489
|
-
const modal = document.querySelector("dialog");
|
|
1490
|
-
modal.showModal(); // Opens with backdrop, Escape handling, focus trap
|
|
1491
|
-
</script>
|
|
1492
|
-
```
|
|
1536
|
+
⚠️ **Tab switching requires JavaScript** — manage `aria-selected`, panel visibility and the keyboard: `role="tab"` promises Left/Right/Home/End with a roving `tabindex` (inactive tabs `tabindex="-1"`). Without that script, use plain buttons or links with no tab roles.
|
|
1493
1537
|
|
|
1494
|
-
|
|
1538
|
+
**A count after a tab label** is the badge slot: put `<span class="vd-badge vd-badge-neutral">3</span>` after the label text, inside the tab.
|
|
1495
1539
|
|
|
1496
|
-
|
|
1540
|
+
Three types — `-underline` (32), `-chip` (24), `-segment` (24) — and `-sm` (24, underline only). **A type class is required.**
|
|
1497
1541
|
|
|
1498
|
-
|
|
1542
|
+
**`.vd-tab-stretch` (0.5.1)** fills a fixed-height header row instead of the pinned 24 / 32, so the active underline sits on the row's bottom edge, as Figma draws a tab stretched to a panel header. Give the row its height (e.g. `.vd-tabs` at `height: 100%` inside a 40px header).
|
|
1499
1543
|
|
|
1500
|
-
|
|
1544
|
+
**Wrap the label in `.vd-tab-label` with a matching `data-label`** on every sm-height tab (underline `-sm`, chip, segment). Those step from weight 500 to 600 when active, and without the wrapper selection widens the tab and shifts its neighbours; the wrapper reserves the active width. Underline lg keeps one weight, so it doesn't need it.
|
|
1501
1545
|
|
|
1502
1546
|
```html
|
|
1503
|
-
<!--
|
|
1504
|
-
<div class="vd-
|
|
1505
|
-
<
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
</
|
|
1509
|
-
<
|
|
1510
|
-
|
|
1547
|
+
<!-- Underline tabs (navigator) -->
|
|
1548
|
+
<div class="vd-tabs" role="tablist" aria-label="Sections">
|
|
1549
|
+
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="true" aria-controls="p1">
|
|
1550
|
+
Overview
|
|
1551
|
+
<span class="vd-badge vd-badge-neutral">3</span>
|
|
1552
|
+
</button>
|
|
1553
|
+
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2" tabindex="-1">
|
|
1554
|
+
Documents
|
|
1555
|
+
</button>
|
|
1511
1556
|
</div>
|
|
1557
|
+
<div id="p1" role="tabpanel">Panel 1</div>
|
|
1558
|
+
<div id="p2" role="tabpanel" hidden>Panel 2</div>
|
|
1512
1559
|
|
|
1513
|
-
<!--
|
|
1514
|
-
<
|
|
1515
|
-
<
|
|
1516
|
-
|
|
1517
|
-
|
|
1560
|
+
<!-- Small underline -->
|
|
1561
|
+
<button class="vd-tab vd-tab-underline vd-tab-sm" role="tab" aria-selected="true">
|
|
1562
|
+
<span class="vd-tab-label" data-label="Overview">Overview</span>
|
|
1563
|
+
</button>
|
|
1564
|
+
|
|
1565
|
+
<!-- Full-height tabs in a 40px header row (0.5.1); the row is given its height -->
|
|
1566
|
+
<div style="height: 40px; display: flex; align-items: center">
|
|
1567
|
+
<div class="vd-tabs" role="tablist" aria-label="Panel view" style="height: 100%">
|
|
1568
|
+
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="true">
|
|
1569
|
+
<span class="vd-tab-label" data-label="Summary">Summary</span>
|
|
1570
|
+
</button>
|
|
1571
|
+
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="false" tabindex="-1">
|
|
1572
|
+
<span class="vd-tab-label" data-label="Activity">Activity</span>
|
|
1573
|
+
</button>
|
|
1574
|
+
</div>
|
|
1518
1575
|
</div>
|
|
1519
1576
|
|
|
1520
|
-
<!--
|
|
1521
|
-
<
|
|
1522
|
-
<
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
aria-label="What is NAICS?"
|
|
1526
|
-
>
|
|
1527
|
-
<svg class="vd-icon vd-icon-size-12" aria-hidden="true">
|
|
1528
|
-
<use href="#custom-help" />
|
|
1529
|
-
</svg>
|
|
1530
|
-
</button>
|
|
1531
|
-
<span style="position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;">
|
|
1532
|
-
<!-- .tooltip -->
|
|
1577
|
+
<!-- With subtitle -->
|
|
1578
|
+
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="true">
|
|
1579
|
+
<span>
|
|
1580
|
+
Overview
|
|
1581
|
+
<span class="vd-tab-subtitle">APPLICANT</span>
|
|
1533
1582
|
</span>
|
|
1534
|
-
</
|
|
1535
|
-
|
|
1583
|
+
</button>
|
|
1584
|
+
|
|
1585
|
+
<!-- Chip tabs -->
|
|
1586
|
+
<div class="vd-tabs vd-tabs-chip" role="tablist" aria-label="Status">
|
|
1587
|
+
<button class="vd-tab vd-tab-chip" role="tab" aria-selected="true">
|
|
1588
|
+
<span class="vd-tab-label" data-label="All">All</span>
|
|
1589
|
+
</button>
|
|
1590
|
+
<button class="vd-tab vd-tab-chip" role="tab" aria-selected="false" tabindex="-1">
|
|
1591
|
+
<span class="vd-tab-label" data-label="Active">Active</span>
|
|
1592
|
+
</button>
|
|
1593
|
+
</div>
|
|
1594
|
+
|
|
1595
|
+
<!-- Segment tabs: see SegmentSelector below -->
|
|
1596
|
+
```
|
|
1597
|
+
|
|
1598
|
+
---
|
|
1599
|
+
|
|
1600
|
+
### SegmentSelector
|
|
1601
|
+
|
|
1602
|
+
Framed container for segment tabs — a selector (`role="radiogroup"` › `role="radio"` + `aria-checked`), not a navigator. 28 tall with a 2px inset.
|
|
1603
|
+
|
|
1604
|
+
```html
|
|
1605
|
+
<!-- Basic selector -->
|
|
1606
|
+
<div class="vd-segment-selector" role="radiogroup" aria-label="Density">
|
|
1607
|
+
<button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
|
|
1608
|
+
<span class="vd-tab-label" data-label="Compact">Compact</span>
|
|
1609
|
+
</button>
|
|
1610
|
+
<button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
|
|
1611
|
+
<span class="vd-tab-label" data-label="Comfortable">Comfortable</span>
|
|
1612
|
+
</button>
|
|
1613
|
+
</div>
|
|
1614
|
+
|
|
1615
|
+
<!-- Equal-width variant (a library extension, not from Figma) -->
|
|
1616
|
+
<div class="vd-segment-selector vd-segment-selector-fill" role="radiogroup" aria-label="View">
|
|
1617
|
+
<button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
|
|
1618
|
+
<span class="vd-tab-label" data-label="All">All</span>
|
|
1619
|
+
</button>
|
|
1620
|
+
<button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
|
|
1621
|
+
<span class="vd-tab-label" data-label="Needs review">Needs review</span>
|
|
1622
|
+
</button>
|
|
1623
|
+
</div>
|
|
1624
|
+
```
|
|
1625
|
+
|
|
1626
|
+
---
|
|
1627
|
+
|
|
1628
|
+
### FilterSegment
|
|
1629
|
+
|
|
1630
|
+
Individual segment within a filter control. Three positions: first / middle (default) / last.
|
|
1631
|
+
|
|
1632
|
+
```html
|
|
1633
|
+
<div class="vd-filter-segments">
|
|
1634
|
+
<button class="vd-filter-segment vd-filter-segment-first vd-filter-segment-md">
|
|
1635
|
+
Product
|
|
1636
|
+
</button>
|
|
1637
|
+
<button class="vd-filter-segment vd-filter-segment-md">
|
|
1638
|
+
Is any of
|
|
1639
|
+
</button>
|
|
1640
|
+
<button class="vd-filter-segment vd-filter-segment-md">
|
|
1641
|
+
Deposit Account
|
|
1642
|
+
</button>
|
|
1643
|
+
<span class="vd-filter-segment vd-filter-segment-last vd-filter-segment-md">
|
|
1644
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-label="Remove filter">
|
|
1645
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1646
|
+
<use href="#x" />
|
|
1647
|
+
</svg>
|
|
1648
|
+
</button>
|
|
1649
|
+
</span>
|
|
1650
|
+
</div>
|
|
1651
|
+
|
|
1652
|
+
<!-- As a toggle group -->
|
|
1653
|
+
<div class="vd-filter-segments" role="group" aria-label="Match mode">
|
|
1654
|
+
<button class="vd-filter-segment vd-filter-segment-first" aria-pressed="true">
|
|
1655
|
+
All
|
|
1656
|
+
</button>
|
|
1657
|
+
<button class="vd-filter-segment" aria-pressed="false">
|
|
1658
|
+
Any
|
|
1659
|
+
</button>
|
|
1660
|
+
<button class="vd-filter-segment vd-filter-segment-last" aria-pressed="false">
|
|
1661
|
+
None
|
|
1662
|
+
</button>
|
|
1663
|
+
</div>
|
|
1664
|
+
```
|
|
1665
|
+
|
|
1666
|
+
---
|
|
1667
|
+
|
|
1668
|
+
### Breadcrumbs
|
|
1669
|
+
|
|
1670
|
+
Hierarchical navigation path. Separator glyphs need `aria-hidden="true"`.
|
|
1671
|
+
|
|
1672
|
+
```html
|
|
1673
|
+
<!-- Chevron separator -->
|
|
1674
|
+
<nav class="vd-breadcrumbs" aria-label="Breadcrumb">
|
|
1675
|
+
<svg class="vd-breadcrumb-home vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1676
|
+
<use href="#home" />
|
|
1677
|
+
</svg>
|
|
1678
|
+
<span class="vd-breadcrumb-separator" aria-hidden="true">></span>
|
|
1679
|
+
<a class="vd-breadcrumb" href="/applications">Applications</a>
|
|
1680
|
+
<span class="vd-breadcrumb-separator" aria-hidden="true">></span>
|
|
1681
|
+
<span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">
|
|
1682
|
+
#BA-204417
|
|
1683
|
+
</span>
|
|
1684
|
+
</nav>
|
|
1685
|
+
|
|
1686
|
+
<!-- Slash separator with middot joining two current items -->
|
|
1687
|
+
<nav class="vd-breadcrumbs" aria-label="Breadcrumb">
|
|
1688
|
+
<a class="vd-breadcrumb" href="/queue">Queue</a>
|
|
1689
|
+
<span class="vd-breadcrumb-separator" aria-hidden="true">/</span>
|
|
1690
|
+
<span class="vd-breadcrumb vd-breadcrumb-current">#BA-204417</span>
|
|
1691
|
+
<span class="vd-breadcrumb-separator vd-breadcrumb-separator-dot" aria-hidden="true">
|
|
1692
|
+
·
|
|
1693
|
+
</span>
|
|
1694
|
+
<span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">
|
|
1695
|
+
Northwind Freight LLC
|
|
1696
|
+
</span>
|
|
1697
|
+
</nav>
|
|
1698
|
+
```
|
|
1699
|
+
|
|
1700
|
+
---
|
|
1701
|
+
|
|
1702
|
+
### Pagination
|
|
1703
|
+
|
|
1704
|
+
Two types: numbered (with PaginationItem cells), simple (with text and buttons).
|
|
1705
|
+
|
|
1706
|
+
```html
|
|
1707
|
+
<!-- Numbered pagination -->
|
|
1708
|
+
<nav class="vd-pagination" aria-label="Pagination">
|
|
1709
|
+
<div class="vd-pagination-pages">
|
|
1710
|
+
<button class="vd-pagination-item vd-pagination-item-nav" aria-label="Previous">
|
|
1711
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1712
|
+
<use href="#chevron-left" />
|
|
1713
|
+
</svg>
|
|
1714
|
+
</button>
|
|
1715
|
+
<button class="vd-pagination-item vd-pagination-item-active" aria-current="page">
|
|
1716
|
+
1
|
|
1717
|
+
</button>
|
|
1718
|
+
<button class="vd-pagination-item">2</button>
|
|
1719
|
+
<span class="vd-pagination-item vd-pagination-item-ellipsis" aria-hidden="true">
|
|
1720
|
+
...
|
|
1721
|
+
</span>
|
|
1722
|
+
<button class="vd-pagination-item">18</button>
|
|
1723
|
+
<button class="vd-pagination-item vd-pagination-item-nav" aria-label="Next">
|
|
1724
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1725
|
+
<use href="#chevron-right" />
|
|
1726
|
+
</svg>
|
|
1727
|
+
</button>
|
|
1728
|
+
</div>
|
|
1729
|
+
<p class="vd-pagination-summary">1-20 of 352</p>
|
|
1730
|
+
</nav>
|
|
1731
|
+
|
|
1732
|
+
<!-- Simple pagination -->
|
|
1733
|
+
<nav class="vd-pagination" aria-label="Pagination">
|
|
1734
|
+
<button class="vd-btn vd-btn-outline vd-btn-sm">
|
|
1735
|
+
<svg class="vd-icon vd-icon-size-13" aria-hidden="true">
|
|
1736
|
+
<use href="#arrow-left" />
|
|
1737
|
+
</svg>
|
|
1738
|
+
Prev
|
|
1739
|
+
</button>
|
|
1740
|
+
<p class="vd-pagination-status">
|
|
1741
|
+
Page <span class="vd-pagination-status-current">7</span> of 18
|
|
1742
|
+
</p>
|
|
1743
|
+
<button class="vd-btn vd-btn-outline vd-btn-sm">
|
|
1744
|
+
Next
|
|
1745
|
+
<svg class="vd-icon vd-icon-size-13" aria-hidden="true">
|
|
1746
|
+
<use href="#arrow-right" />
|
|
1747
|
+
</svg>
|
|
1748
|
+
</button>
|
|
1749
|
+
</nav>
|
|
1750
|
+
```
|
|
1751
|
+
|
|
1752
|
+
---
|
|
1753
|
+
|
|
1754
|
+
### MenuItem
|
|
1755
|
+
|
|
1756
|
+
Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (default), `-lg` 32 — a subtitle grows the row. Titles are 12px at sm and 13px at md/lg; the subtitle is 12px at every size. Tone: `.vd-menu-item-critical` recolours the title.
|
|
1757
|
+
|
|
1758
|
+
**Trailing switch (0.6.0):** put a Switch in `.vd-menu-item-switch`. Make the row a `<label>` (not a `<button>`) so the whole row toggles the switch, and give the input `role="menuitemcheckbox"` inside a `role="menu"`.
|
|
1759
|
+
|
|
1760
|
+
```html
|
|
1761
|
+
<label class="vd-menu-item">
|
|
1762
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Dark mode</span></span>
|
|
1763
|
+
<span class="vd-menu-item-switch">
|
|
1764
|
+
<span class="vd-switch"><input type="checkbox" class="vd-switch-input" role="menuitemcheckbox" checked /></span>
|
|
1765
|
+
</span>
|
|
1766
|
+
</label>
|
|
1767
|
+
```
|
|
1768
|
+
|
|
1769
|
+
**Slots.** Leading: `.vd-menu-item-icon` (a 16px glyph), `.vd-menu-item-tile` (a 20px tinted tile; `-tile-lg` 28), `.vd-menu-item-avatar` (holds `.vd-avatar-sm`, or `.vd-avatar-md` at lg), `.vd-menu-item-checkbox`. Trailing: `.vd-menu-item-check` and `.vd-menu-item-chevron` (14px), `.vd-menu-item-right-text`, `.vd-menu-item-shortcut`, `.vd-menu-item-meta`, `.vd-menu-item-action` (holds an inline Icon Button — then the row must be a `<div role="menuitem">`, not a `<button>`). Leading icons are 16 and trailing 14 at every size.
|
|
1770
|
+
|
|
1771
|
+
**ARIA.** A plain `role="menuitem"` supports no selection state. A one-of-N choice is `role="menuitemradio"` + `aria-checked` inside `role="menu"`; a multi-select is `role="menuitemcheckbox"` + `aria-checked`; in a listbox (a Dropdown Field's panel) rows are `role="option"` + `aria-selected`. **Since 0.7.0 a selected row is marked by its check alone**: the row keeps its normal ink and `.vd-menu-item-check` is blue by itself (through 0.6.0 the whole row turned blue). A selected row therefore needs a check. A row that opens a submenu takes `aria-haspopup="menu"` and `aria-expanded`; while the submenu is open (`aria-expanded="true"`) the row keeps its hover fill. `.vd-menu-item-right-text` is the normal ink, not blue, since 0.7.0.
|
|
1772
|
+
|
|
1773
|
+
> **Removed in 0.5.0:** `.vd-menu-item-badge` (use `.vd-menu-item-tile`; the codemod renames it) and `.vd-menu-item-combined` (use a tile plus a subtitle at default tone; the codemod reports it).
|
|
1774
|
+
|
|
1775
|
+
```html
|
|
1776
|
+
<!-- Simple row -->
|
|
1777
|
+
<button class="vd-menu-item" role="menuitem">
|
|
1778
|
+
<span class="vd-menu-item-text">
|
|
1779
|
+
<span class="vd-menu-item-title">Daily</span>
|
|
1780
|
+
</span>
|
|
1781
|
+
</button>
|
|
1782
|
+
|
|
1783
|
+
<!-- Selected one-of-N row with a check (inside role="menu") -->
|
|
1784
|
+
<button class="vd-menu-item" role="menuitemradio" aria-checked="true">
|
|
1785
|
+
<span class="vd-menu-item-text">
|
|
1786
|
+
<span class="vd-menu-item-title">Weekly</span>
|
|
1787
|
+
</span>
|
|
1788
|
+
<svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1789
|
+
<use href="#check" />
|
|
1790
|
+
</svg>
|
|
1791
|
+
</button>
|
|
1792
|
+
|
|
1793
|
+
<!-- Leading icon and a keyboard shortcut -->
|
|
1794
|
+
<button class="vd-menu-item" role="menuitem">
|
|
1795
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1796
|
+
<use href="#settings" />
|
|
1797
|
+
</svg>
|
|
1798
|
+
<span class="vd-menu-item-text">
|
|
1799
|
+
<span class="vd-menu-item-title">Preferences</span>
|
|
1800
|
+
</span>
|
|
1801
|
+
<span class="vd-menu-item-shortcut">⌘,</span>
|
|
1802
|
+
</button>
|
|
1803
|
+
|
|
1804
|
+
<!-- Large row with an avatar and a subtitle -->
|
|
1805
|
+
<button class="vd-menu-item vd-menu-item-lg" role="menuitem">
|
|
1806
|
+
<span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-md">NC</span></span>
|
|
1807
|
+
<span class="vd-menu-item-text">
|
|
1808
|
+
<span class="vd-menu-item-title">Nicholas Cooper</span>
|
|
1809
|
+
<span class="vd-menu-item-subtitle">Primary applicant</span>
|
|
1810
|
+
</span>
|
|
1811
|
+
</button>
|
|
1812
|
+
|
|
1813
|
+
<!-- Tile + subtitle (what the removed "Combined" row became) -->
|
|
1814
|
+
<button class="vd-menu-item vd-menu-item-lg" role="menuitem">
|
|
1815
|
+
<span class="vd-menu-item-tile">
|
|
1816
|
+
<svg class="vd-icon vd-icon-size-12" aria-hidden="true">
|
|
1817
|
+
<use href="#users" />
|
|
1818
|
+
</svg>
|
|
1819
|
+
</span>
|
|
1820
|
+
<span class="vd-menu-item-text">
|
|
1821
|
+
<span class="vd-menu-item-title">Combined</span>
|
|
1822
|
+
<span class="vd-menu-item-subtitle">Both Applicants</span>
|
|
1823
|
+
</span>
|
|
1824
|
+
</button>
|
|
1825
|
+
|
|
1826
|
+
<!-- Critical tone -->
|
|
1827
|
+
<button class="vd-menu-item vd-menu-item-critical" role="menuitem">
|
|
1828
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1829
|
+
<use href="#trash-2" />
|
|
1830
|
+
</svg>
|
|
1831
|
+
<span class="vd-menu-item-text">
|
|
1832
|
+
<span class="vd-menu-item-title">Delete</span>
|
|
1833
|
+
</span>
|
|
1834
|
+
</button>
|
|
1835
|
+
|
|
1836
|
+
<!-- Disabled -->
|
|
1837
|
+
<button class="vd-menu-item" role="menuitem" disabled>
|
|
1838
|
+
<span class="vd-menu-item-text">
|
|
1839
|
+
<span class="vd-menu-item-title">Archived</span>
|
|
1840
|
+
</span>
|
|
1841
|
+
</button>
|
|
1842
|
+
```
|
|
1843
|
+
|
|
1844
|
+
---
|
|
1845
|
+
|
|
1846
|
+
### DropdownMenu
|
|
1847
|
+
|
|
1848
|
+
⚠️ **Requires JavaScript** — toggle `aria-expanded` on the trigger and `hidden` on the panel (a working snippet is in [GETTING_STARTED.md](GETTING_STARTED.md#dropdownfield--dropdownmenu)).
|
|
1849
|
+
|
|
1850
|
+
Overlay panel holding MenuItem rows: 200px minimum width, 4px padding. Optional regions: `.vd-dropdown-menu-search` (holds a small Search Field), `.vd-dropdown-menu-header` + `-header-label` (28 tall, mixed-case), `.vd-dropdown-menu-divider`, `.vd-dropdown-menu-footer` (a link row). Position it with the `.vd-dropdown` wrapper and `.vd-dropdown-panel`; never put a display utility on the panel, or `hidden` stops working.
|
|
1851
|
+
|
|
1852
|
+
Since 0.7.0 the panel stretches whatever is inside it, so rows can be grouped in a wrapper — a `role="listbox"` under a search field, or an anchor for a submenu — and still fill the panel.
|
|
1853
|
+
|
|
1854
|
+
```html
|
|
1855
|
+
<!-- Select-style menu: one-of-N rows are menuitemradio + aria-checked -->
|
|
1856
|
+
<div class="vd-dropdown-menu" role="menu" aria-label="Frequency">
|
|
1857
|
+
<button class="vd-menu-item" role="menuitemradio" aria-checked="true">
|
|
1858
|
+
<span class="vd-menu-item-text">
|
|
1859
|
+
<span class="vd-menu-item-title">Weekly</span>
|
|
1860
|
+
</span>
|
|
1861
|
+
<svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1862
|
+
<use href="#check" />
|
|
1863
|
+
</svg>
|
|
1864
|
+
</button>
|
|
1865
|
+
<button class="vd-menu-item" role="menuitemradio" aria-checked="false">
|
|
1866
|
+
<span class="vd-menu-item-text">
|
|
1867
|
+
<span class="vd-menu-item-title">Daily</span>
|
|
1868
|
+
</span>
|
|
1869
|
+
</button>
|
|
1870
|
+
<button class="vd-menu-item" role="menuitemradio" aria-checked="false">
|
|
1871
|
+
<span class="vd-menu-item-text">
|
|
1872
|
+
<span class="vd-menu-item-title">Monthly</span>
|
|
1873
|
+
</span>
|
|
1874
|
+
</button>
|
|
1875
|
+
</div>
|
|
1876
|
+
|
|
1877
|
+
<!-- Search, a header, a divider before a destructive row, and a footer -->
|
|
1878
|
+
<div class="vd-dropdown-menu" role="menu" aria-label="Actions">
|
|
1879
|
+
<div class="vd-dropdown-menu-search">
|
|
1880
|
+
<div class="vd-input-field vd-input-search vd-input-sm">
|
|
1881
|
+
<svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true"><use href="#search" /></svg>
|
|
1882
|
+
<input type="search" class="vd-input" placeholder="Search" aria-label="Search actions" />
|
|
1883
|
+
</div>
|
|
1884
|
+
</div>
|
|
1885
|
+
<div class="vd-dropdown-menu-header">
|
|
1886
|
+
<span class="vd-dropdown-menu-header-label">Record</span>
|
|
1887
|
+
</div>
|
|
1888
|
+
<button class="vd-menu-item" role="menuitem">
|
|
1889
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1890
|
+
<use href="#pencil" />
|
|
1891
|
+
</svg>
|
|
1892
|
+
<span class="vd-menu-item-text">
|
|
1893
|
+
<span class="vd-menu-item-title">Edit</span>
|
|
1894
|
+
</span>
|
|
1895
|
+
</button>
|
|
1896
|
+
|
|
1897
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
1898
|
+
|
|
1899
|
+
<button class="vd-menu-item vd-menu-item-critical" role="menuitem">
|
|
1900
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
|
|
1901
|
+
<use href="#trash-2" />
|
|
1902
|
+
</svg>
|
|
1903
|
+
<span class="vd-menu-item-text">
|
|
1904
|
+
<span class="vd-menu-item-title">Delete</span>
|
|
1905
|
+
</span>
|
|
1906
|
+
</button>
|
|
1907
|
+
<div class="vd-dropdown-menu-footer"><a class="vd-link" href="/actions">All actions</a></div>
|
|
1908
|
+
</div>
|
|
1909
|
+
|
|
1910
|
+
<!-- Anchored under a trigger -->
|
|
1911
|
+
<div class="vd-dropdown">
|
|
1912
|
+
<button class="vd-btn vd-btn-outline" aria-expanded="false" aria-haspopup="menu">
|
|
1913
|
+
Weekly
|
|
1914
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1915
|
+
<use href="#chevron-down" />
|
|
1916
|
+
</svg>
|
|
1917
|
+
</button>
|
|
1918
|
+
<div class="vd-dropdown-panel" hidden>
|
|
1919
|
+
<div class="vd-dropdown-menu" role="menu">
|
|
1920
|
+
<!-- menu items -->
|
|
1921
|
+
</div>
|
|
1922
|
+
</div>
|
|
1923
|
+
</div>
|
|
1924
|
+
```
|
|
1925
|
+
|
|
1926
|
+
---
|
|
1927
|
+
|
|
1928
|
+
### Link
|
|
1929
|
+
|
|
1930
|
+
Four standalone styles plus one paragraph style. Underline is a state on `strong`, present on the other three.
|
|
1931
|
+
|
|
1932
|
+
```html
|
|
1933
|
+
<!-- Strong link (no underline at rest, gains one on hover) -->
|
|
1934
|
+
<a class="vd-link" href="/report">Open full report →</a>
|
|
1935
|
+
|
|
1936
|
+
<!-- Quiet link -->
|
|
1937
|
+
<a class="vd-link vd-link-quiet" href="/log">View activity log</a>
|
|
1938
|
+
|
|
1939
|
+
<!-- Monospace link -->
|
|
1940
|
+
<a class="vd-link vd-link-monospace" href="/case">#BA-204417</a>
|
|
1941
|
+
|
|
1942
|
+
<!-- Critical link with icon -->
|
|
1943
|
+
<a class="vd-link vd-link-critical" href="/fix">
|
|
1944
|
+
<svg class="vd-icon vd-icon-size-12" aria-hidden="true">
|
|
1945
|
+
<use href="#alert-triangle" />
|
|
1946
|
+
</svg>
|
|
1947
|
+
Resolve mismatch
|
|
1948
|
+
</a>
|
|
1949
|
+
|
|
1950
|
+
<!-- Inline links (paragraph style, not used with .link) -->
|
|
1951
|
+
<p class="vd-link-inline">
|
|
1952
|
+
Valiify utilizes <a href="/middesk">Middesk</a> for instant background screenings.
|
|
1953
|
+
</p>
|
|
1954
|
+
```
|
|
1955
|
+
|
|
1956
|
+
---
|
|
1957
|
+
|
|
1958
|
+
## Feedback
|
|
1959
|
+
|
|
1960
|
+
### Alert
|
|
1961
|
+
|
|
1962
|
+
Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required** — a bare `.vd-alert` is transparent.
|
|
1963
|
+
|
|
1964
|
+
> **Redrawn in 0.6.0.** The left rail is gone — an alert is a tinted box with an icon — and the title is 14px (was 13). The banner is 100px tall with a title, message and action. No markup changes.
|
|
1965
|
+
|
|
1966
|
+
**The role follows the type.** Critical and warning take `role="alert"` (assertive); success, info and neutral take `role="status"` (polite). Either announces only when the banner is **inserted** into the page; one already present at load needs no live role.
|
|
1967
|
+
|
|
1968
|
+
```html
|
|
1969
|
+
<div class="vd-alert vd-alert-critical" role="alert">
|
|
1970
|
+
<div class="vd-alert-body">
|
|
1971
|
+
<svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
|
|
1972
|
+
<use href="#triangle-alert" />
|
|
1973
|
+
</svg>
|
|
1974
|
+
<div class="vd-alert-content">
|
|
1975
|
+
<p class="vd-alert-title">Business address mismatch</p>
|
|
1976
|
+
<p class="vd-alert-message">
|
|
1977
|
+
Middesk returns a registered-agent address.
|
|
1978
|
+
</p>
|
|
1979
|
+
<button class="vd-text-button vd-text-button-primary">Review Field</button>
|
|
1980
|
+
</div>
|
|
1981
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
|
|
1982
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1983
|
+
<use href="#x" />
|
|
1984
|
+
</svg>
|
|
1985
|
+
</button>
|
|
1986
|
+
</div>
|
|
1987
|
+
</div>
|
|
1988
|
+
|
|
1989
|
+
<!-- Other types -->
|
|
1990
|
+
<div class="vd-alert vd-alert-warning" role="alert"><!-- ... --></div>
|
|
1991
|
+
<div class="vd-alert vd-alert-success" role="status"><!-- ... --></div>
|
|
1992
|
+
<div class="vd-alert vd-alert-info" role="status"><!-- ... --></div>
|
|
1993
|
+
<div class="vd-alert vd-alert-neutral" role="status"><!-- ... --></div>
|
|
1994
|
+
```
|
|
1995
|
+
|
|
1996
|
+
---
|
|
1997
|
+
|
|
1998
|
+
### Toast
|
|
1999
|
+
|
|
2000
|
+
Transient notification. Two styles: full (card) / simple (an inverse pill — dark in Light, light in Onyx).
|
|
2001
|
+
|
|
2002
|
+
```html
|
|
2003
|
+
<!-- Full toast -->
|
|
2004
|
+
<div class="vd-toast vd-toast-success" role="status">
|
|
2005
|
+
<div class="vd-toast-header">
|
|
2006
|
+
<div class="vd-toast-main">
|
|
2007
|
+
<svg class="vd-toast-icon vd-icon vd-icon-size-18" aria-hidden="true">
|
|
2008
|
+
<use href="#circle-check" />
|
|
2009
|
+
</svg>
|
|
2010
|
+
<div class="vd-toast-text">
|
|
2011
|
+
<p class="vd-toast-title">Document request sent</p>
|
|
2012
|
+
<p class="vd-toast-message">
|
|
2013
|
+
Client has been notified to upload their W-9.
|
|
2014
|
+
</p>
|
|
2015
|
+
</div>
|
|
2016
|
+
</div>
|
|
2017
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
|
|
2018
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2019
|
+
<use href="#x" />
|
|
2020
|
+
</svg>
|
|
2021
|
+
</button>
|
|
2022
|
+
</div>
|
|
2023
|
+
<div class="vd-toast-footer">
|
|
2024
|
+
<span class="vd-toast-timestamp">just now</span>
|
|
2025
|
+
<button class="vd-text-button vd-text-button-primary">Retry</button>
|
|
2026
|
+
</div>
|
|
2027
|
+
</div>
|
|
2028
|
+
|
|
2029
|
+
<!-- Simple toast -->
|
|
2030
|
+
<div class="vd-toast vd-toast-simple" role="status">
|
|
2031
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true">
|
|
2032
|
+
<use href="#check" />
|
|
2033
|
+
</svg>
|
|
2034
|
+
Template Saved
|
|
2035
|
+
</div>
|
|
2036
|
+
```
|
|
2037
|
+
|
|
2038
|
+
---
|
|
2039
|
+
|
|
2040
|
+
### Modal
|
|
2041
|
+
|
|
2042
|
+
⚠️ **Recommended: Use native `<dialog>`** - Browser handles backdrop, Escape, focus trap.
|
|
2043
|
+
|
|
2044
|
+
Since 0.7.0 a `<dialog class="vd-modal">` can stay in the page: it is not rendered until it is opened, and `showModal()` centres it on every entry. (Through 0.6.0 a closed dialog was visible, and an open one sat in the top-left corner on `@valiify/dashboard-ui` and `./source`.)
|
|
2045
|
+
|
|
2046
|
+
Dialog for confirmations. Three actions: destructive / positive / neutral.
|
|
2047
|
+
|
|
2048
|
+
```html
|
|
2049
|
+
<dialog class="vd-modal vd-modal-destructive" aria-labelledby="modal-title">
|
|
2050
|
+
<div class="vd-modal-header">
|
|
2051
|
+
<div class="vd-modal-title-group">
|
|
2052
|
+
<span class="vd-modal-icon">
|
|
2053
|
+
<svg class="vd-icon vd-icon-size-20" aria-hidden="true">
|
|
2054
|
+
<use href="#triangle-alert" />
|
|
2055
|
+
</svg>
|
|
2056
|
+
</span>
|
|
2057
|
+
<h2 class="vd-modal-title" id="modal-title">
|
|
2058
|
+
Decline this application?
|
|
2059
|
+
</h2>
|
|
2060
|
+
</div>
|
|
2061
|
+
<button class="vd-icon-button vd-icon-button-md" aria-label="Close">
|
|
2062
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true">
|
|
2063
|
+
<use href="#x" />
|
|
2064
|
+
</svg>
|
|
2065
|
+
</button>
|
|
2066
|
+
</div>
|
|
2067
|
+
|
|
2068
|
+
<div class="vd-modal-subtitles">
|
|
2069
|
+
<p class="vd-modal-subtitle">
|
|
2070
|
+
The applicant is notified through the portal.
|
|
2071
|
+
</p>
|
|
2072
|
+
<p class="vd-modal-description">
|
|
2073
|
+
Two blocking items remain unresolved.
|
|
2074
|
+
</p>
|
|
2075
|
+
</div>
|
|
2076
|
+
|
|
2077
|
+
<div class="vd-modal-context">
|
|
2078
|
+
<p class="vd-modal-context-text">#BA-204417 · Northwind Freight LLC</p>
|
|
2079
|
+
</div>
|
|
2080
|
+
|
|
2081
|
+
<div class="vd-modal-footer">
|
|
2082
|
+
<button class="vd-btn vd-btn-empty vd-btn-lg">Cancel</button>
|
|
2083
|
+
<button class="vd-btn vd-btn-critical vd-btn-lg">Decline application</button>
|
|
2084
|
+
</div>
|
|
2085
|
+
</dialog>
|
|
2086
|
+
|
|
2087
|
+
<script>
|
|
2088
|
+
const modal = document.querySelector("dialog");
|
|
2089
|
+
modal.showModal(); // Opens with backdrop, Escape handling, focus trap
|
|
2090
|
+
</script>
|
|
2091
|
+
```
|
|
2092
|
+
|
|
2093
|
+
---
|
|
2094
|
+
|
|
2095
|
+
### Tooltip
|
|
2096
|
+
|
|
2097
|
+
⚠️ **Positioning is yours** - Tooltip only styles the bubble.
|
|
2098
|
+
|
|
2099
|
+
Inverse popover for helper text: dark in the Light theme, light in Onyx, so it always stands off the page.
|
|
2100
|
+
|
|
2101
|
+
```html
|
|
2102
|
+
<!-- Full tooltip -->
|
|
2103
|
+
<div class="vd-tooltip" role="tooltip" id="tt-naics">
|
|
2104
|
+
<p class="vd-tooltip-title">INDUSTRY / NAICS</p>
|
|
2105
|
+
<p class="vd-tooltip-content">
|
|
2106
|
+
Six digits used to classify business establishments.
|
|
2107
|
+
</p>
|
|
2108
|
+
<hr class="vd-tooltip-divider" />
|
|
2109
|
+
<p class="vd-tooltip-subtext">Middesk · Secretary of State</p>
|
|
2110
|
+
</div>
|
|
2111
|
+
|
|
2112
|
+
<!-- Body only (most common) -->
|
|
2113
|
+
<div class="vd-tooltip" role="tooltip">
|
|
2114
|
+
<p class="vd-tooltip-content">
|
|
2115
|
+
Six digits used to classify business establishments.
|
|
2116
|
+
</p>
|
|
2117
|
+
</div>
|
|
2118
|
+
|
|
2119
|
+
<!-- Anchored to a trigger (positioning is yours) -->
|
|
2120
|
+
<span style="position: relative; display: inline-block;">
|
|
2121
|
+
<button
|
|
2122
|
+
class="vd-icon-button vd-icon-button-xs"
|
|
2123
|
+
aria-describedby="tt-naics"
|
|
2124
|
+
aria-label="What is NAICS?"
|
|
2125
|
+
>
|
|
2126
|
+
<svg class="vd-icon vd-icon-size-12" aria-hidden="true">
|
|
2127
|
+
<use href="#custom-help" />
|
|
2128
|
+
</svg>
|
|
2129
|
+
</button>
|
|
2130
|
+
<span style="position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;">
|
|
2131
|
+
<!-- .tooltip -->
|
|
2132
|
+
</span>
|
|
2133
|
+
</span>
|
|
2134
|
+
```
|
|
2135
|
+
|
|
2136
|
+
---
|
|
2137
|
+
|
|
2138
|
+
### LoadingIndicator
|
|
2139
|
+
|
|
2140
|
+
Two types: circle (spinning ring) / dots (pulsing). Four sizes: xs=12px (default), sm=16px, md=24px, lg=32px.
|
|
2141
|
+
|
|
2142
|
+
```html
|
|
2143
|
+
<!-- Circle (default xs) -->
|
|
2144
|
+
<span class="vd-loading-indicator" role="status" aria-label="Loading"></span>
|
|
2145
|
+
|
|
2146
|
+
<!-- Circle with sizes -->
|
|
2147
|
+
<span class="vd-loading-indicator vd-loading-indicator-sm" role="status" aria-label="Loading"></span>
|
|
2148
|
+
<span class="vd-loading-indicator vd-loading-indicator-md" role="status" aria-label="Loading"></span>
|
|
2149
|
+
<span class="vd-loading-indicator vd-loading-indicator-lg" role="status" aria-label="Loading"></span>
|
|
2150
|
+
|
|
2151
|
+
<!-- Dots -->
|
|
2152
|
+
<span class="vd-loading-indicator vd-loading-indicator-dots" role="status" aria-label="Loading">
|
|
2153
|
+
<span class="vd-loading-indicator-dot"></span>
|
|
2154
|
+
<span class="vd-loading-indicator-dot"></span>
|
|
2155
|
+
<span class="vd-loading-indicator-dot"></span>
|
|
2156
|
+
</span>
|
|
2157
|
+
```
|
|
2158
|
+
|
|
2159
|
+
---
|
|
2160
|
+
|
|
2161
|
+
### LoadingInline
|
|
2162
|
+
|
|
2163
|
+
Loading indicator with a label. Four sizes: xs / sm / md / lg.
|
|
2164
|
+
|
|
2165
|
+
```html
|
|
2166
|
+
<span class="vd-loading-inline vd-loading-inline-md" role="status">
|
|
2167
|
+
<span class="vd-loading-indicator"></span>
|
|
2168
|
+
Loading...
|
|
2169
|
+
</span>
|
|
2170
|
+
|
|
2171
|
+
<!-- All sizes -->
|
|
2172
|
+
<span class="vd-loading-inline" role="status">
|
|
2173
|
+
<span class="vd-loading-indicator"></span>
|
|
2174
|
+
Loading...
|
|
2175
|
+
</span>
|
|
2176
|
+
<span class="vd-loading-inline vd-loading-inline-sm" role="status">
|
|
2177
|
+
<span class="vd-loading-indicator"></span>
|
|
2178
|
+
Loading...
|
|
2179
|
+
</span>
|
|
2180
|
+
<span class="vd-loading-inline vd-loading-inline-lg" role="status">
|
|
2181
|
+
<span class="vd-loading-indicator"></span>
|
|
2182
|
+
Loading...
|
|
2183
|
+
</span>
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
---
|
|
2187
|
+
|
|
2188
|
+
### ProgressBar
|
|
2189
|
+
|
|
2190
|
+
Two schemes: primary (default) / success.
|
|
2191
|
+
|
|
2192
|
+
```html
|
|
2193
|
+
<div class="vd-progress-bar vd-progress-bar-success">
|
|
2194
|
+
<div class="vd-progress-bar-header">
|
|
2195
|
+
<span class="vd-progress-bar-title">Review completion</span>
|
|
2196
|
+
<span class="vd-progress-bar-value">92%</span>
|
|
2197
|
+
</div>
|
|
2198
|
+
|
|
2199
|
+
<div
|
|
2200
|
+
class="vd-progress-bar-track"
|
|
2201
|
+
role="progressbar"
|
|
2202
|
+
aria-valuenow="92"
|
|
2203
|
+
aria-valuemin="0"
|
|
2204
|
+
aria-valuemax="100"
|
|
2205
|
+
aria-label="Review completion"
|
|
2206
|
+
>
|
|
2207
|
+
<div class="vd-progress-bar-fill" style="width: 92%"></div>
|
|
2208
|
+
</div>
|
|
2209
|
+
|
|
2210
|
+
<div class="vd-progress-bar-legend">
|
|
2211
|
+
<span class="vd-progress-bar-legend-item">
|
|
2212
|
+
<span class="vd-progress-bar-legend-swatch"></span>
|
|
2213
|
+
<span class="vd-progress-bar-legend-label">92% verified</span>
|
|
2214
|
+
</span>
|
|
2215
|
+
<span class="vd-progress-bar-legend-item">
|
|
2216
|
+
<span class="vd-progress-bar-legend-swatch vd-progress-bar-legend-swatch-neutral"></span>
|
|
2217
|
+
<span class="vd-progress-bar-legend-label">8% unaccounted</span>
|
|
2218
|
+
</span>
|
|
2219
|
+
</div>
|
|
2220
|
+
</div>
|
|
2221
|
+
```
|
|
2222
|
+
|
|
2223
|
+
---
|
|
2224
|
+
|
|
2225
|
+
### Stepper
|
|
2226
|
+
|
|
2227
|
+
Row of steps joined by connectors.
|
|
2228
|
+
|
|
2229
|
+
```html
|
|
2230
|
+
<div class="vd-stepper">
|
|
2231
|
+
<p class="vd-stepper-title">Stepped progression flow</p>
|
|
2232
|
+
<div class="vd-stepper-steps">
|
|
2233
|
+
<div class="vd-step">
|
|
2234
|
+
<span class="vd-step-marker">
|
|
2235
|
+
<svg class="vd-icon vd-icon-size-12" aria-hidden="true">
|
|
2236
|
+
<use href="#check" />
|
|
2237
|
+
</svg>
|
|
2238
|
+
</span>
|
|
2239
|
+
<span class="vd-step-label">Intake</span>
|
|
2240
|
+
</div>
|
|
2241
|
+
<span class="vd-stepper-connector vd-stepper-connector-complete"></span>
|
|
2242
|
+
|
|
2243
|
+
<div class="vd-step vd-step-active" aria-current="step">
|
|
2244
|
+
<span class="vd-step-marker">2</span>
|
|
2245
|
+
<span class="vd-step-label">Review</span>
|
|
2246
|
+
</div>
|
|
2247
|
+
<span class="vd-stepper-connector"></span>
|
|
2248
|
+
|
|
2249
|
+
<div class="vd-step vd-step-upcoming">
|
|
2250
|
+
<span class="vd-step-marker">3</span>
|
|
2251
|
+
<span class="vd-step-label">Decision</span>
|
|
2252
|
+
</div>
|
|
2253
|
+
</div>
|
|
2254
|
+
</div>
|
|
2255
|
+
```
|
|
2256
|
+
|
|
2257
|
+
---
|
|
2258
|
+
|
|
2259
|
+
## Review Components
|
|
2260
|
+
|
|
2261
|
+
### FieldVerification
|
|
2262
|
+
|
|
2263
|
+
Inline verification indicator. Four states: verified / pending / none / mismatch.
|
|
2264
|
+
|
|
2265
|
+
> **Changed in 0.6.0.** A **mismatch is now amber, not red** (it renders like the new warning state), its detail line is ordinary 14px text rather than mono, and the inline rows have a little more room (4px left inset, 12px gap). New: `-warning` and `-critical` findings, `-resolved`, and `-compact`.
|
|
2266
|
+
|
|
2267
|
+
**Findings (0.6.0)** — a title and a reason beside a [SeverityMarker](#severitymarker): the dot for a warning, the diamond for critical. No action here; acting on a finding happens in the findings panel.
|
|
2268
|
+
|
|
2269
|
+
```html
|
|
2270
|
+
<span class="vd-field-verification vd-field-verification-critical">
|
|
2271
|
+
<span class="vd-field-verification-mark">
|
|
2272
|
+
<span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
|
|
2273
|
+
</span>
|
|
2274
|
+
<span class="vd-field-verification-details">
|
|
2275
|
+
<span class="vd-field-verification-label">Sanctions match</span>
|
|
2276
|
+
<span class="vd-field-verification-detail">OFAC returned a possible match</span>
|
|
2277
|
+
</span>
|
|
2278
|
+
</span>
|
|
2279
|
+
|
|
2280
|
+
<!-- warning: vd-field-verification-warning + vd-severity-marker-review -->
|
|
2281
|
+
|
|
2282
|
+
<!-- Resolved -->
|
|
2283
|
+
<span class="vd-field-verification vd-field-verification-resolved">
|
|
2284
|
+
<span class="vd-field-verification-mark">
|
|
2285
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
|
|
2286
|
+
</span>
|
|
2287
|
+
<span class="vd-field-verification-details">
|
|
2288
|
+
<span class="vd-field-verification-label">Resolved · EDD approved</span>
|
|
2289
|
+
<span class="vd-field-verification-meta">Nicholas Cooper · Oct 4</span>
|
|
2290
|
+
</span>
|
|
2291
|
+
</span>
|
|
2292
|
+
|
|
2293
|
+
<!-- Compact: the marker alone (24×22); keep the label, it is hidden visually -->
|
|
2294
|
+
<span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact">
|
|
2295
|
+
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Verified">
|
|
2296
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
|
|
2297
|
+
</span>
|
|
2298
|
+
<span class="vd-field-verification-label">Matches Plaid KYC</span>
|
|
2299
|
+
</span>
|
|
2300
|
+
```
|
|
2301
|
+
|
|
2302
|
+
**The one-line states** (verified, pending, none, mismatch):
|
|
2303
|
+
|
|
2304
|
+
```html
|
|
2305
|
+
<!-- Verified -->
|
|
2306
|
+
<span class="vd-field-verification vd-field-verification-verified">
|
|
2307
|
+
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Verified">
|
|
2308
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2309
|
+
<use href="#check" />
|
|
2310
|
+
</svg>
|
|
2311
|
+
</span>
|
|
2312
|
+
<span class="vd-field-verification-label">Matches X</span>
|
|
2313
|
+
</span>
|
|
2314
|
+
|
|
2315
|
+
<!-- Pending -->
|
|
2316
|
+
<span class="vd-field-verification vd-field-verification-pending">
|
|
2317
|
+
<span class="vd-section-marker" role="img" aria-label="Pending">
|
|
2318
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2319
|
+
<use href="#circle" />
|
|
2320
|
+
</svg>
|
|
2321
|
+
</span>
|
|
2322
|
+
<span class="vd-field-verification-label">Verification pending</span>
|
|
2323
|
+
</span>
|
|
2324
|
+
|
|
2325
|
+
<!-- None -->
|
|
2326
|
+
<span class="vd-field-verification vd-field-verification-none" role="img" aria-label="No status">
|
|
2327
|
+
<span class="vd-section-marker">
|
|
2328
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2329
|
+
<use href="#minus" />
|
|
2330
|
+
</svg>
|
|
2331
|
+
</span>
|
|
2332
|
+
</span>
|
|
2333
|
+
|
|
2334
|
+
<!-- Mismatch (preview) -->
|
|
2335
|
+
<span class="vd-field-verification vd-field-verification-mismatch">
|
|
2336
|
+
<svg class="vd-field-verification-icon vd-icon vd-icon-size-15" aria-hidden="true">
|
|
2337
|
+
<use href="#triangle-alert" />
|
|
2338
|
+
</svg>
|
|
2339
|
+
<span class="vd-field-verification-label">Does not match KYC</span>
|
|
2340
|
+
</span>
|
|
2341
|
+
|
|
2342
|
+
<!-- Mismatch (expanded) -->
|
|
2343
|
+
<span class="vd-field-verification vd-field-verification-mismatch">
|
|
2344
|
+
<svg class="vd-field-verification-icon vd-icon vd-icon-size-15" aria-hidden="true">
|
|
2345
|
+
<use href="#triangle-alert" />
|
|
2346
|
+
</svg>
|
|
2347
|
+
<span class="vd-field-verification-details">
|
|
2348
|
+
<span class="vd-field-verification-label">Does not match KYC</span>
|
|
2349
|
+
<span class="vd-field-verification-detail">Reported: 04/12/1988</span>
|
|
2350
|
+
<span class="vd-field-verification-action">
|
|
2351
|
+
Review discrepancy
|
|
2352
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true">
|
|
2353
|
+
<use href="#arrow-right" />
|
|
2354
|
+
</svg>
|
|
2355
|
+
</span>
|
|
2356
|
+
</span>
|
|
2357
|
+
</span>
|
|
2358
|
+
```
|
|
1536
2359
|
|
|
1537
2360
|
---
|
|
1538
2361
|
|
|
1539
|
-
###
|
|
2362
|
+
### SectionMarker
|
|
1540
2363
|
|
|
1541
|
-
|
|
2364
|
+
16×16 verification marker. Four statuses: approve / mismatch / unverified / na.
|
|
1542
2365
|
|
|
1543
2366
|
```html
|
|
1544
|
-
<!--
|
|
1545
|
-
<span class="vd-
|
|
2367
|
+
<!-- Approve -->
|
|
2368
|
+
<span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Approved">
|
|
2369
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2370
|
+
<use href="#check" />
|
|
2371
|
+
</svg>
|
|
2372
|
+
</span>
|
|
1546
2373
|
|
|
1547
|
-
<!--
|
|
1548
|
-
<span class="vd-
|
|
1549
|
-
<span class="vd-
|
|
1550
|
-
|
|
2374
|
+
<!-- Mismatch -->
|
|
2375
|
+
<span class="vd-section-marker vd-section-marker-mismatch" role="img" aria-label="Mismatch">
|
|
2376
|
+
<span class="vd-section-marker-dot"></span>
|
|
2377
|
+
</span>
|
|
1551
2378
|
|
|
1552
|
-
<!--
|
|
1553
|
-
<span class="vd-
|
|
1554
|
-
<
|
|
1555
|
-
|
|
1556
|
-
|
|
2379
|
+
<!-- Unverified -->
|
|
2380
|
+
<span class="vd-section-marker vd-section-marker-unverified" role="img" aria-label="Unverified">
|
|
2381
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2382
|
+
<use href="#circle" />
|
|
2383
|
+
</svg>
|
|
1557
2384
|
</span>
|
|
2385
|
+
|
|
2386
|
+
<!-- NA (no status class, no child, but needs label) -->
|
|
2387
|
+
<span class="vd-section-marker" role="img" aria-label="Not applicable"></span>
|
|
1558
2388
|
```
|
|
1559
2389
|
|
|
1560
2390
|
---
|
|
1561
2391
|
|
|
1562
|
-
###
|
|
2392
|
+
### SensitiveData
|
|
1563
2393
|
|
|
1564
|
-
|
|
2394
|
+
Masked value with toggle.
|
|
1565
2395
|
|
|
1566
2396
|
```html
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
2397
|
+
<!-- Hidden -->
|
|
2398
|
+
<span class="vd-sensitive-data">
|
|
2399
|
+
<span class="vd-sensitive-data-value">***-**-1234</span>
|
|
2400
|
+
<button
|
|
2401
|
+
class="vd-icon-button vd-icon-button-inline"
|
|
2402
|
+
aria-pressed="true"
|
|
2403
|
+
aria-label="Show full value"
|
|
2404
|
+
>
|
|
2405
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2406
|
+
<use href="#eye-off" />
|
|
2407
|
+
</svg>
|
|
2408
|
+
</button>
|
|
1570
2409
|
</span>
|
|
1571
2410
|
|
|
1572
|
-
<!--
|
|
1573
|
-
<span class="vd-
|
|
1574
|
-
<span class="vd-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
<
|
|
1582
|
-
|
|
1583
|
-
|
|
2411
|
+
<!-- Revealed -->
|
|
2412
|
+
<span class="vd-sensitive-data">
|
|
2413
|
+
<span class="vd-sensitive-data-value">123-12-1234</span>
|
|
2414
|
+
<button
|
|
2415
|
+
class="vd-icon-button vd-icon-button-inline"
|
|
2416
|
+
aria-pressed="false"
|
|
2417
|
+
aria-label="Hide value"
|
|
2418
|
+
>
|
|
2419
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
2420
|
+
<use href="#eye" />
|
|
2421
|
+
</svg>
|
|
2422
|
+
</button>
|
|
1584
2423
|
</span>
|
|
1585
2424
|
```
|
|
1586
2425
|
|
|
1587
2426
|
---
|
|
1588
2427
|
|
|
1589
|
-
|
|
2428
|
+
---
|
|
1590
2429
|
|
|
1591
|
-
|
|
2430
|
+
## Findings Panel
|
|
2431
|
+
|
|
2432
|
+
The parts of the findings panel, new in 0.6.0. There is no panel class: compose these inside your own panel container.
|
|
2433
|
+
|
|
2434
|
+
### PanelStatus
|
|
1592
2435
|
|
|
1593
2436
|
```html
|
|
1594
|
-
<
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
2437
|
+
<p class="vd-panel-status"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>Pending Review</p>
|
|
2438
|
+
```
|
|
2439
|
+
|
|
2440
|
+
The dot is a Dot — choose its colour class to match the status.
|
|
2441
|
+
|
|
2442
|
+
### PanelSectionHeader
|
|
2443
|
+
|
|
2444
|
+
⚠️ **Collapsing requires JavaScript** — toggle `aria-expanded` on the button and show or hide the group.
|
|
2445
|
+
|
|
2446
|
+
```html
|
|
2447
|
+
<div class="vd-panel-section-header">
|
|
2448
|
+
<h3 class="vd-panel-section-header-title">Findings</h3>
|
|
2449
|
+
<span class="vd-panel-section-header-count">5</span>
|
|
2450
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-expanded="true" aria-controls="findings" aria-label="Findings">
|
|
2451
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-up" /></svg>
|
|
2452
|
+
</button>
|
|
2453
|
+
</div>
|
|
2454
|
+
<div id="findings">…</div>
|
|
2455
|
+
```
|
|
2456
|
+
|
|
2457
|
+
The glyph is `#chevron-up`; it turns over to point down when the button is `aria-expanded="false"`. (Through 0.6.0 this snippet used `#chevron-down`, which now points the wrong way: swap the glyph.)
|
|
2458
|
+
|
|
2459
|
+
### PanelStripButton
|
|
2460
|
+
|
|
2461
|
+
An icon button with a count on its corner, for a collapsed panel.
|
|
2462
|
+
|
|
2463
|
+
```html
|
|
2464
|
+
<span class="vd-panel-strip-button">
|
|
2465
|
+
<button class="vd-icon-button" aria-label="Findings, 3 open">
|
|
2466
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#shield-alert" /></svg>
|
|
2467
|
+
</button>
|
|
2468
|
+
<span class="vd-badge vd-badge-critical vd-panel-strip-button-count" aria-hidden="true">3</span>
|
|
2469
|
+
</span>
|
|
2470
|
+
```
|
|
2471
|
+
|
|
2472
|
+
**ARIA:** put the count in the button's label; the badge is hidden from assistive tech.
|
|
2473
|
+
|
|
2474
|
+
### FindingRow
|
|
2475
|
+
|
|
2476
|
+
A closed finding: a [SeverityMarker](#severitymarker) and a title. A button, 36px tall.
|
|
2477
|
+
|
|
2478
|
+
```html
|
|
2479
|
+
<button class="vd-finding-row">
|
|
2480
|
+
<span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
|
|
2481
|
+
<span class="vd-finding-row-label">International wires expected</span>
|
|
2482
|
+
</button>
|
|
2483
|
+
```
|
|
2484
|
+
|
|
2485
|
+
### FindingCard and FindingOption
|
|
2486
|
+
|
|
2487
|
+
An open finding. The card is one container; what you put in it depends on where the finding is:
|
|
2488
|
+
|
|
2489
|
+
| State | Blocks |
|
|
2490
|
+
| ---------- | ------------------------------------------------------------------ |
|
|
2491
|
+
| choosing | reason · options · a note (required to waive) · a disabled primary button |
|
|
2492
|
+
| requesting | reason · options · Document and From, side by side · a note · the button |
|
|
2493
|
+
| requested | reason · a decision box · a status line |
|
|
2494
|
+
|
|
2495
|
+
```html
|
|
2496
|
+
<section class="vd-finding-card" aria-labelledby="f1">
|
|
2497
|
+
<header class="vd-finding-card-header">
|
|
2498
|
+
<span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
|
|
2499
|
+
<h4 class="vd-finding-card-title" id="f1">Address not verified</h4>
|
|
2500
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-label="Show on page">
|
|
2501
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#locate-fixed" /></svg>
|
|
2502
|
+
</button>
|
|
2503
|
+
</header>
|
|
2504
|
+
<p class="vd-finding-card-reason">No record at 123 Fake St.</p>
|
|
2505
|
+
|
|
2506
|
+
<!-- FindingOption: vd-finding-option on a RadioSelect label -->
|
|
2507
|
+
<div class="vd-finding-card-options" role="radiogroup" aria-label="Resolution">
|
|
2508
|
+
<label class="vd-radio-select vd-finding-option">
|
|
2509
|
+
<input type="radio" name="resolution" class="vd-radio-select-input" checked />
|
|
2510
|
+
<span class="vd-radio-select-label">Request a document</span>
|
|
2511
|
+
</label>
|
|
2512
|
+
<label class="vd-radio-select vd-finding-option">
|
|
2513
|
+
<input type="radio" name="resolution" class="vd-radio-select-input" />
|
|
2514
|
+
<span class="vd-radio-select-label">Waive this finding</span>
|
|
2515
|
+
</label>
|
|
1598
2516
|
</div>
|
|
1599
2517
|
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
2518
|
+
<!-- Requesting: two small Dropdown Fields with their own labels, 8px apart -->
|
|
2519
|
+
<div class="vd-finding-card-fields">
|
|
2520
|
+
<div class="vd-dropdown-field-container">
|
|
2521
|
+
<div class="vd-dropdown-field-label" id="doc-label"><span>Document</span></div>
|
|
2522
|
+
<button class="vd-dropdown-field vd-dropdown-field-sm" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="doc-label doc-value">
|
|
2523
|
+
<span class="vd-dropdown-field-value" id="doc-value">Proof of address</span>
|
|
2524
|
+
<svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2525
|
+
</button>
|
|
2526
|
+
</div>
|
|
2527
|
+
<div class="vd-dropdown-field-container">
|
|
2528
|
+
<div class="vd-dropdown-field-label" id="from-label"><span>From</span></div>
|
|
2529
|
+
<button class="vd-dropdown-field vd-dropdown-field-sm" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="from-label from-value">
|
|
2530
|
+
<span class="vd-dropdown-field-value" id="from-value">John Smith</span>
|
|
2531
|
+
<svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2532
|
+
</button>
|
|
2533
|
+
</div>
|
|
2534
|
+
</div>
|
|
2535
|
+
|
|
2536
|
+
<!-- The note: a small Textarea; vd-finding-card-note gives it its 80px -->
|
|
2537
|
+
<div class="vd-textarea-field vd-textarea-sm vd-finding-card-note">
|
|
2538
|
+
<textarea class="vd-textarea" aria-label="Note" placeholder="Add a note (optional)"></textarea>
|
|
2539
|
+
</div>
|
|
2540
|
+
|
|
2541
|
+
<div class="vd-finding-card-footer">
|
|
2542
|
+
<button class="vd-btn vd-btn-primary">Send request</button>
|
|
2543
|
+
</div>
|
|
2544
|
+
</section>
|
|
2545
|
+
|
|
2546
|
+
<!-- Requested: the decision on record -->
|
|
2547
|
+
<div class="vd-finding-card-decision">
|
|
2548
|
+
<div class="vd-finding-card-decision-top">
|
|
2549
|
+
<p class="vd-finding-card-decision-title">Document requested</p>
|
|
2550
|
+
<button class="vd-text-button vd-text-button-primary">Edit</button>
|
|
2551
|
+
</div>
|
|
2552
|
+
<p class="vd-finding-card-decision-meta">N. Cooper · Mar 15, 9:42 AM</p>
|
|
2553
|
+
<p class="vd-finding-card-decision-note">Same address on two prior filings.</p>
|
|
2554
|
+
</div>
|
|
2555
|
+
<p class="vd-finding-card-status">Waiting on applicant</p>
|
|
2556
|
+
```
|
|
2557
|
+
|
|
2558
|
+
The selected option takes its tint from the radio's own checked state. Options are 40px tall and 6px apart.
|
|
2559
|
+
|
|
2560
|
+
Since 0.7.0 the fields follow Figma's update: Document and From are small [DropdownField](#dropdownfield)s side by side in `.vd-finding-card-fields`, and the note is a small [Textarea](#textarea) with `vd-finding-card-note`, which holds it at 80px and lets it grow. When Waive is chosen, show the note alone with the placeholder "Add a note (required)". `.vd-finding-card-field-label` from 0.6.0 still works but is no longer part of the design.
|
|
2561
|
+
|
|
2562
|
+
### ResolvedRow
|
|
2563
|
+
|
|
2564
|
+
```html
|
|
2565
|
+
<div class="vd-resolved-row">
|
|
2566
|
+
<svg class="vd-resolved-row-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>
|
|
2567
|
+
<div class="vd-resolved-row-text">
|
|
2568
|
+
<p class="vd-resolved-row-title">Address not verified</p>
|
|
2569
|
+
<p class="vd-resolved-row-meta">Document accepted · N. Cooper · Mar 15</p>
|
|
2570
|
+
</div>
|
|
2571
|
+
<button class="vd-text-button vd-text-button-text">Reopen</button>
|
|
2572
|
+
</div>
|
|
2573
|
+
```
|
|
2574
|
+
|
|
2575
|
+
### CommentItem and CommentDate
|
|
2576
|
+
|
|
2577
|
+
```html
|
|
2578
|
+
<div class="vd-comment-date" role="separator" aria-label="Thursday, September 11">
|
|
2579
|
+
<hr class="vd-divider" /><span class="vd-comment-date-label">Thu, Sep 11</span><hr class="vd-divider" />
|
|
2580
|
+
</div>
|
|
2581
|
+
|
|
2582
|
+
<article class="vd-comment-item">
|
|
2583
|
+
<header class="vd-comment-item-top">
|
|
2584
|
+
<span class="vd-avatar vd-avatar-md">AR</span>
|
|
2585
|
+
<span class="vd-comment-item-author">Alex Reyes</span>
|
|
2586
|
+
<time class="vd-comment-item-time">9:42 AM</time>
|
|
2587
|
+
</header>
|
|
2588
|
+
<div class="vd-comment-item-body">
|
|
2589
|
+
<p class="vd-comment-item-text">Called Marcus. He says the second address is the warehouse.</p>
|
|
2590
|
+
<span class="vd-tag vd-tag-label"><span class="vd-dot vd-dot-sm vd-dot-neutral"></span>Business</span>
|
|
2591
|
+
</div>
|
|
2592
|
+
</article>
|
|
2593
|
+
```
|
|
2594
|
+
|
|
2595
|
+
The section tag is optional. Staff avatars are round.
|
|
2596
|
+
|
|
2597
|
+
### ChecklistGroup and ChecklistTask
|
|
2598
|
+
|
|
2599
|
+
⚠️ **Opening, skipping and signing off require JavaScript.**
|
|
2600
|
+
|
|
2601
|
+
Closed, a group is its header alone. Add `vd-checklist-group-open` to make it a card holding its tasks and the sign-off button.
|
|
2602
|
+
|
|
2603
|
+
```html
|
|
2604
|
+
<section class="vd-checklist-group vd-checklist-group-open">
|
|
2605
|
+
<header class="vd-checklist-group-header">
|
|
2606
|
+
<span class="vd-progress-circle vd-progress-circle-sm" style="--progress: 75" role="progressbar"
|
|
2607
|
+
aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" aria-label="KYB progress"></span>
|
|
2608
|
+
<h4 class="vd-checklist-group-name">KYB</h4>
|
|
2609
|
+
<span class="vd-checklist-group-count">4/5</span>
|
|
2610
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-expanded="true" aria-label="KYB checklist">
|
|
2611
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2612
|
+
</button>
|
|
2613
|
+
</header>
|
|
2614
|
+
|
|
2615
|
+
<!-- A task: a label around a real checkbox -->
|
|
2616
|
+
<label class="vd-checklist-task">
|
|
2617
|
+
<span class="vd-checklist-task-box">
|
|
2618
|
+
<span class="vd-checkbox-control">
|
|
2619
|
+
<input type="checkbox" class="vd-checkbox-input" />
|
|
2620
|
+
<svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true"><use href="#check" /></svg>
|
|
2621
|
+
</span>
|
|
2622
|
+
</span>
|
|
2623
|
+
<span class="vd-checklist-task-text">
|
|
2624
|
+
<span class="vd-checklist-task-label">Online presence reviewed</span>
|
|
2625
|
+
</span>
|
|
2626
|
+
<button type="button" class="vd-checklist-task-action">Skip</button>
|
|
2627
|
+
</label>
|
|
2628
|
+
|
|
2629
|
+
<!-- Held: disabled input + vd-checklist-task-held + a detail line -->
|
|
2630
|
+
<label class="vd-checklist-task vd-checklist-task-held">
|
|
2631
|
+
<span class="vd-checklist-task-box">
|
|
2632
|
+
<span class="vd-checkbox-control">
|
|
2633
|
+
<input type="checkbox" class="vd-checkbox-input" disabled />
|
|
2634
|
+
<svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true"><use href="#check" /></svg>
|
|
2635
|
+
</span>
|
|
2636
|
+
</span>
|
|
2637
|
+
<span class="vd-checklist-task-text">
|
|
2638
|
+
<span class="vd-checklist-task-label">Operating address verified</span>
|
|
2639
|
+
<span class="vd-checklist-task-detail">Clears with Address not verified</span>
|
|
2640
|
+
</span>
|
|
2641
|
+
</label>
|
|
2642
|
+
|
|
2643
|
+
<!-- Skipped: a dash box instead of the checkbox, and an Undo -->
|
|
2644
|
+
<div class="vd-checklist-task vd-checklist-task-skipped">
|
|
2645
|
+
<span class="vd-checklist-task-box"><span class="vd-checklist-task-skip-box" role="img" aria-label="Skipped"></span></span>
|
|
2646
|
+
<span class="vd-checklist-task-text">
|
|
2647
|
+
<span class="vd-checklist-task-label">Site visit completed</span>
|
|
2648
|
+
<span class="vd-checklist-task-detail">Skipped · A. Reyes · today</span>
|
|
2649
|
+
</span>
|
|
2650
|
+
<button type="button" class="vd-checklist-task-action">Undo</button>
|
|
2651
|
+
</div>
|
|
2652
|
+
|
|
2653
|
+
<div class="vd-checklist-group-footer">
|
|
2654
|
+
<button class="vd-btn vd-btn-primary" disabled>Sign off</button>
|
|
2655
|
+
</div>
|
|
2656
|
+
</section>
|
|
2657
|
+
|
|
2658
|
+
<!-- Signed off: the record replaces the tasks -->
|
|
2659
|
+
<div class="vd-checklist-group-record">
|
|
2660
|
+
<div class="vd-checklist-group-record-top">
|
|
2661
|
+
<p class="vd-checklist-group-record-title">Signed off</p>
|
|
2662
|
+
<button class="vd-text-button vd-text-button-text">Reopen</button>
|
|
1609
2663
|
</div>
|
|
2664
|
+
<p class="vd-checklist-group-record-meta">A. Reyes · today, 9:42 AM</p>
|
|
2665
|
+
</div>
|
|
2666
|
+
<div class="vd-checklist-group-more">
|
|
2667
|
+
<button class="vd-text-button vd-text-button-primary">Show 5 items</button>
|
|
2668
|
+
</div>
|
|
2669
|
+
```
|
|
2670
|
+
|
|
2671
|
+
---
|
|
2672
|
+
|
|
2673
|
+
### FinalDecision
|
|
2674
|
+
|
|
2675
|
+
The last line of the checklist: what unlocks the decision. 52px tall. New in 0.7.0.
|
|
2676
|
+
|
|
2677
|
+
```html
|
|
2678
|
+
<div class="vd-final-decision">
|
|
2679
|
+
<span class="vd-final-decision-mark">
|
|
2680
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#lock" /></svg>
|
|
2681
|
+
</span>
|
|
2682
|
+
<div class="vd-final-decision-text">
|
|
2683
|
+
<p class="vd-final-decision-title">Final decision</p>
|
|
2684
|
+
<p class="vd-final-decision-detail">After all groups are signed off</p>
|
|
2685
|
+
</div>
|
|
2686
|
+
</div>
|
|
2687
|
+
```
|
|
2688
|
+
|
|
2689
|
+
---
|
|
2690
|
+
|
|
2691
|
+
### SummaryPanel
|
|
2692
|
+
|
|
2693
|
+
The body of the panel's Summary tab: the record at a glance. Build the tab row above it from [Tabs](#tabs). New in 0.7.0.
|
|
2694
|
+
|
|
2695
|
+
```html
|
|
2696
|
+
<div class="vd-summary-panel">
|
|
2697
|
+
<!-- Label / value rows, 32px each -->
|
|
2698
|
+
<section class="vd-summary-panel-section" aria-label="Status">
|
|
2699
|
+
<dl class="vd-summary-panel-rows">
|
|
2700
|
+
<div class="vd-summary-panel-row">
|
|
2701
|
+
<dt class="vd-summary-panel-row-label">Status</dt>
|
|
2702
|
+
<dd class="vd-summary-panel-row-value">
|
|
2703
|
+
<span class="vd-panel-status"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>Pending Review</span>
|
|
2704
|
+
</dd>
|
|
2705
|
+
</div>
|
|
2706
|
+
<div class="vd-summary-panel-row">
|
|
2707
|
+
<dt class="vd-summary-panel-row-label">Assignee</dt>
|
|
2708
|
+
<dd class="vd-summary-panel-row-value"><span class="vd-avatar vd-avatar-sm">NC</span>Nicholas Cooper</dd>
|
|
2709
|
+
</div>
|
|
2710
|
+
<div class="vd-summary-panel-row">
|
|
2711
|
+
<dt class="vd-summary-panel-row-label">Last action</dt>
|
|
2712
|
+
<dd class="vd-summary-panel-row-value">
|
|
2713
|
+
<span>Docs requested <span class="vd-summary-panel-row-meta">· 2h ago</span></span>
|
|
2714
|
+
</dd>
|
|
2715
|
+
</div>
|
|
2716
|
+
</dl>
|
|
2717
|
+
</section>
|
|
2718
|
+
|
|
2719
|
+
<!-- Tags -->
|
|
2720
|
+
<section class="vd-summary-panel-section" aria-label="Type">
|
|
2721
|
+
<div class="vd-summary-panel-tags">
|
|
2722
|
+
<span class="vd-tag vd-tag-sm">New Business</span>
|
|
2723
|
+
<span class="vd-tag vd-tag-sm">Online</span>
|
|
2724
|
+
</div>
|
|
2725
|
+
</section>
|
|
2726
|
+
|
|
2727
|
+
<!-- Risk score, then the open findings -->
|
|
2728
|
+
<section class="vd-summary-panel-section" aria-label="Risk">
|
|
2729
|
+
<div class="vd-summary-panel-score">
|
|
2730
|
+
<div class="vd-summary-panel-score-head">
|
|
2731
|
+
<span class="vd-summary-panel-score-value">35</span>
|
|
2732
|
+
<div class="vd-summary-panel-score-text">
|
|
2733
|
+
<p class="vd-summary-panel-score-label">Risk Score</p>
|
|
2734
|
+
<p class="vd-summary-panel-score-detail">Tier 2 · Funding $10-$1,000</p>
|
|
2735
|
+
</div>
|
|
2736
|
+
</div>
|
|
2737
|
+
<div class="vd-summary-panel-score-bar" role="img" aria-label="Risk score 35 of 100, tier 2 of 4">
|
|
2738
|
+
<span class="vd-summary-panel-score-segment" style="--progress: 100"></span>
|
|
2739
|
+
<span class="vd-summary-panel-score-segment" style="--progress: 63"></span>
|
|
2740
|
+
<span class="vd-summary-panel-score-segment"></span>
|
|
2741
|
+
<span class="vd-summary-panel-score-segment"></span>
|
|
2742
|
+
</div>
|
|
2743
|
+
<!-- .vd-scoring-details goes here -->
|
|
2744
|
+
</div>
|
|
2745
|
+
<div class="vd-summary-panel-findings">
|
|
2746
|
+
<div class="vd-summary-panel-findings-text">
|
|
2747
|
+
<p class="vd-summary-panel-findings-title">5 open findings</p>
|
|
2748
|
+
<p class="vd-summary-panel-findings-counts">
|
|
2749
|
+
<span class="vd-summary-panel-findings-count"><span class="vd-dot vd-dot-sm vd-dot-critical"></span>2 critical</span>
|
|
2750
|
+
<span class="vd-summary-panel-findings-count"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>2 warning</span>
|
|
2751
|
+
</p>
|
|
2752
|
+
</div>
|
|
2753
|
+
<button class="vd-icon-button vd-icon-button-sm" aria-label="Open findings">
|
|
2754
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2755
|
+
</button>
|
|
2756
|
+
</div>
|
|
2757
|
+
</section>
|
|
2758
|
+
|
|
2759
|
+
<!-- A titled section of rows -->
|
|
2760
|
+
<section class="vd-summary-panel-section" aria-labelledby="key-indicators">
|
|
2761
|
+
<h3 class="vd-summary-panel-title" id="key-indicators">Key Indicators</h3>
|
|
2762
|
+
<dl class="vd-summary-panel-rows">
|
|
2763
|
+
<div class="vd-summary-panel-row">
|
|
2764
|
+
<dt class="vd-summary-panel-row-label">KYB Status</dt>
|
|
2765
|
+
<dd class="vd-summary-panel-row-value"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>Review · 14/16</dd>
|
|
2766
|
+
</div>
|
|
2767
|
+
</dl>
|
|
2768
|
+
</section>
|
|
2769
|
+
|
|
2770
|
+
<!-- Products, and a closing note -->
|
|
2771
|
+
<section class="vd-summary-panel-section" aria-labelledby="products">
|
|
2772
|
+
<h3 class="vd-summary-panel-title" id="products">Product · 2</h3>
|
|
2773
|
+
<p class="vd-summary-panel-product">Business Checking <span class="vd-summary-panel-product-id">BC001</span></p>
|
|
2774
|
+
</section>
|
|
2775
|
+
<section class="vd-summary-panel-section" aria-label="Created">
|
|
2776
|
+
<p class="vd-summary-panel-note">Created Mar 14, 2026 10:00 PM</p>
|
|
2777
|
+
</section>
|
|
2778
|
+
</div>
|
|
2779
|
+
```
|
|
2780
|
+
|
|
2781
|
+
**A row that is a control.** The assignee opens a menu, so its row is a button. It shows a chevron on hover, on focus and while it is open:
|
|
2782
|
+
|
|
2783
|
+
```html
|
|
2784
|
+
<button class="vd-summary-panel-row vd-summary-panel-row-button" aria-haspopup="listbox" aria-expanded="false">
|
|
2785
|
+
<span class="vd-summary-panel-row-label">Assignee</span>
|
|
2786
|
+
<span class="vd-summary-panel-row-value"><span class="vd-avatar vd-avatar-sm">NC</span>Nicholas Cooper</span>
|
|
2787
|
+
<svg class="vd-summary-panel-row-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2788
|
+
</button>
|
|
2789
|
+
```
|
|
2790
|
+
|
|
2791
|
+
A `<button>` cannot go inside a `<dl>`: when one of the rows is a button, make `vd-summary-panel-rows` a `<div>` and its labels and values `<span>`s.
|
|
2792
|
+
|
|
2793
|
+
- **Score bar.** Each segment fills from the left by its `--progress` (0 to 100). The bar has no value semantics of its own, so give it `role="img"` and say the score in `aria-label`.
|
|
2794
|
+
- **Dots** are [Chip](#chip--badge--dot) dots: `vd-dot vd-dot-sm` plus a colour.
|
|
2795
|
+
|
|
2796
|
+
---
|
|
2797
|
+
|
|
2798
|
+
### ScoringDetails
|
|
2799
|
+
|
|
2800
|
+
Where a risk score came from: one line that opens the rules behind it. New in 0.7.0.
|
|
2801
|
+
|
|
2802
|
+
⚠️ **Opening requires JavaScript** — toggle `aria-expanded` on the button and `hidden` on the list.
|
|
2803
|
+
|
|
2804
|
+
```html
|
|
2805
|
+
<div class="vd-scoring-details">
|
|
2806
|
+
<p class="vd-scoring-details-summary">
|
|
2807
|
+
From 3 scoring rules
|
|
2808
|
+
<button class="vd-icon-button vd-icon-button-xs" aria-expanded="false" aria-controls="score-rules" aria-label="Scoring rules">
|
|
2809
|
+
<svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2810
|
+
</button>
|
|
2811
|
+
</p>
|
|
2812
|
+
<dl class="vd-scoring-details-rules" id="score-rules" hidden>
|
|
2813
|
+
<div class="vd-scoring-details-rule"><dt>Prior applications</dt><dd class="vd-scoring-details-points">+15</dd></div>
|
|
2814
|
+
<div class="vd-scoring-details-rule"><dt>Volume to revenue</dt><dd class="vd-scoring-details-points">+10</dd></div>
|
|
2815
|
+
</dl>
|
|
2816
|
+
</div>
|
|
2817
|
+
```
|
|
2818
|
+
|
|
2819
|
+
The chevron turns over when its button is `aria-expanded="true"`.
|
|
2820
|
+
|
|
2821
|
+
---
|
|
2822
|
+
|
|
2823
|
+
## Funding
|
|
2824
|
+
|
|
2825
|
+
The parts of a record's funding section, new in 0.6.0. They share the record's column grid (a 536px summary, the status column, a 78px action group), so statuses line up with [ContentRow](#contentrow) and [DataRow](#datarow).
|
|
2826
|
+
|
|
2827
|
+
### FundingStatus
|
|
2828
|
+
|
|
2829
|
+
Pending, funded, refunded or failed. The mark is hidden from assistive tech; the label says the same.
|
|
2830
|
+
|
|
2831
|
+
```html
|
|
2832
|
+
<span class="vd-funding-status vd-funding-status-pending">
|
|
2833
|
+
<span class="vd-severity-marker vd-severity-marker-info" aria-hidden="true"></span>Pending
|
|
2834
|
+
</span>
|
|
2835
|
+
<span class="vd-funding-status vd-funding-status-funded">
|
|
2836
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>Funded
|
|
2837
|
+
</span>
|
|
2838
|
+
<span class="vd-funding-status vd-funding-status-refunded">
|
|
2839
|
+
<span class="vd-funding-status-dash" aria-hidden="true"></span>Refunded
|
|
2840
|
+
</span>
|
|
2841
|
+
<span class="vd-funding-status vd-funding-status-failed">
|
|
2842
|
+
<span class="vd-severity-marker vd-severity-marker-critical" aria-hidden="true"></span>Failed
|
|
2843
|
+
</span>
|
|
2844
|
+
```
|
|
1610
2845
|
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
2846
|
+
### FundingTransaction
|
|
2847
|
+
|
|
2848
|
+
One transaction, 48px tall. Refund appears on hover and keyboard focus.
|
|
2849
|
+
|
|
2850
|
+
```html
|
|
2851
|
+
<div class="vd-funding-transaction">
|
|
2852
|
+
<div class="vd-funding-transaction-summary">
|
|
2853
|
+
<p class="vd-funding-transaction-title">
|
|
2854
|
+
<span class="vd-funding-transaction-method">Card ••1111</span>
|
|
2855
|
+
<span class="vd-funding-transaction-meta">· John Smith · Jul 8</span>
|
|
2856
|
+
</p>
|
|
2857
|
+
<span class="vd-funding-transaction-amount">$300.00</span>
|
|
2858
|
+
</div>
|
|
2859
|
+
<div class="vd-funding-transaction-status">
|
|
2860
|
+
<span class="vd-funding-status vd-funding-status-pending">
|
|
2861
|
+
<span class="vd-severity-marker vd-severity-marker-info" aria-hidden="true"></span>Pending
|
|
1619
2862
|
</span>
|
|
2863
|
+
<button class="vd-text-button vd-text-button-text vd-funding-transaction-action">Refund</button>
|
|
2864
|
+
</div>
|
|
2865
|
+
<div class="vd-funding-transaction-actions">
|
|
2866
|
+
<button class="vd-icon-button vd-icon-button-inline" aria-label="Transaction details">
|
|
2867
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#ellipsis" /></svg>
|
|
2868
|
+
</button>
|
|
1620
2869
|
</div>
|
|
1621
2870
|
</div>
|
|
1622
2871
|
```
|
|
1623
2872
|
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
### Stepper
|
|
2873
|
+
Add `vd-funding-transaction-refunded` to dim a refunded transaction's amount, and leave Refund out of refunded and failed transactions.
|
|
1627
2874
|
|
|
1628
|
-
|
|
2875
|
+
### FundingTotal
|
|
1629
2876
|
|
|
1630
2877
|
```html
|
|
1631
|
-
<div class="vd-
|
|
1632
|
-
<
|
|
1633
|
-
|
|
1634
|
-
<
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
<
|
|
2878
|
+
<div class="vd-funding-total">
|
|
2879
|
+
<div class="vd-funding-total-summary">
|
|
2880
|
+
<p class="vd-funding-total-label">Total funded</p>
|
|
2881
|
+
<p class="vd-funding-total-amount">$400.00</p>
|
|
2882
|
+
</div>
|
|
2883
|
+
<div class="vd-funding-total-status">
|
|
2884
|
+
<span class="vd-funding-status vd-funding-status-funded">
|
|
2885
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>Funded
|
|
2886
|
+
</span>
|
|
2887
|
+
</div>
|
|
2888
|
+
<div class="vd-funding-total-actions">
|
|
2889
|
+
<button class="vd-text-button vd-text-button-text">Add funds</button>
|
|
2890
|
+
</div>
|
|
2891
|
+
</div>
|
|
2892
|
+
```
|
|
1643
2893
|
|
|
1644
|
-
|
|
1645
|
-
<span class="vd-step-marker">2</span>
|
|
1646
|
-
<span class="vd-step-label">Review</span>
|
|
1647
|
-
</div>
|
|
1648
|
-
<span class="vd-stepper-connector"></span>
|
|
2894
|
+
### AddFundsForm
|
|
1649
2895
|
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
2896
|
+
```html
|
|
2897
|
+
<form class="vd-add-funds-form">
|
|
2898
|
+
<div class="vd-add-funds-form-header">
|
|
2899
|
+
<h4 class="vd-add-funds-form-title">Add funds</h4>
|
|
2900
|
+
<p class="vd-add-funds-form-hint">Charged to the applicant's card on file</p>
|
|
2901
|
+
</div>
|
|
2902
|
+
<div class="vd-add-funds-form-fields">
|
|
2903
|
+
<div class="vd-input-container">
|
|
2904
|
+
<label class="vd-input-label" for="amount"><span>Amount</span></label>
|
|
2905
|
+
<div class="vd-input-field"><input class="vd-input" id="amount" inputmode="decimal" /></div>
|
|
2906
|
+
</div>
|
|
2907
|
+
<div class="vd-dropdown-field-container">
|
|
2908
|
+
<div class="vd-dropdown-field-label" id="method"><span>Method</span></div>
|
|
2909
|
+
<button type="button" class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="method">
|
|
2910
|
+
<span class="vd-dropdown-field-value">Card ••1111</span>
|
|
2911
|
+
<svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2912
|
+
</button>
|
|
1653
2913
|
</div>
|
|
1654
2914
|
</div>
|
|
2915
|
+
<div class="vd-add-funds-form-actions">
|
|
2916
|
+
<button type="button" class="vd-btn vd-btn-empty">Cancel</button>
|
|
2917
|
+
<button class="vd-btn vd-btn-primary">Add funds</button>
|
|
2918
|
+
</div>
|
|
2919
|
+
</form>
|
|
2920
|
+
```
|
|
2921
|
+
|
|
2922
|
+
### InlineConfirm
|
|
2923
|
+
|
|
2924
|
+
A confirmation bar that opens under a row. ⚠️ **Focus is yours** — move it into the bar when it opens and back to the trigger when it closes.
|
|
2925
|
+
|
|
2926
|
+
```html
|
|
2927
|
+
<div class="vd-inline-confirm" role="group" aria-label="Confirm refund">
|
|
2928
|
+
<p class="vd-inline-confirm-message">Refund $300.00 to Card ••1111? This can't be undone.</p>
|
|
2929
|
+
<button class="vd-btn vd-btn-empty">Cancel</button>
|
|
2930
|
+
<button class="vd-btn vd-btn-critical">Refund $300.00</button>
|
|
1655
2931
|
</div>
|
|
1656
2932
|
```
|
|
1657
2933
|
|
|
1658
2934
|
---
|
|
1659
2935
|
|
|
1660
|
-
##
|
|
2936
|
+
## Recipes
|
|
1661
2937
|
|
|
1662
|
-
|
|
2938
|
+
Compositions of existing classes. Nothing here adds a class; copy the markup.
|
|
1663
2939
|
|
|
1664
|
-
|
|
2940
|
+
### Application actions menu
|
|
2941
|
+
|
|
2942
|
+
Four groups separated by dividers. A row that opens a submenu carries a trailing chevron and `aria-haspopup="menu"`.
|
|
1665
2943
|
|
|
1666
2944
|
```html
|
|
1667
|
-
|
|
1668
|
-
<
|
|
1669
|
-
|
|
1670
|
-
<
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
</
|
|
2945
|
+
<div class="vd-dropdown-menu" role="menu" aria-label="Application actions" style="width: 260px">
|
|
2946
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2947
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#file-text" /></svg>
|
|
2948
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Create report</span></span>
|
|
2949
|
+
</button>
|
|
2950
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2951
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#download" /></svg>
|
|
2952
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Export record</span></span>
|
|
2953
|
+
</button>
|
|
2954
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2955
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#link" /></svg>
|
|
2956
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Copy link</span></span>
|
|
2957
|
+
</button>
|
|
2958
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2959
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#search" /></svg>
|
|
2960
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Find similar applications</span></span>
|
|
2961
|
+
</button>
|
|
2962
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
2963
|
+
<button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
|
|
2964
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#pencil" /></svg>
|
|
2965
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Edit application details</span></span>
|
|
2966
|
+
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2967
|
+
</button>
|
|
2968
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
2969
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2970
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#message-circle" /></svg>
|
|
2971
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Message applicant</span></span>
|
|
2972
|
+
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2973
|
+
</button>
|
|
2974
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2975
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#send" /></svg>
|
|
2976
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Request document</span></span>
|
|
2977
|
+
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2978
|
+
</button>
|
|
2979
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2980
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#credit-card" /></svg>
|
|
2981
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Add funds</span></span>
|
|
2982
|
+
</button>
|
|
2983
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2984
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
|
|
2985
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Re-assign application</span></span>
|
|
2986
|
+
</button>
|
|
2987
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2988
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#x" /></svg>
|
|
2989
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Withdraw application</span></span>
|
|
2990
|
+
</button>
|
|
2991
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
2992
|
+
<button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
|
|
2993
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#shield" /></svg>
|
|
2994
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYC</span></span>
|
|
2995
|
+
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2996
|
+
</button>
|
|
2997
|
+
<button class="vd-menu-item" role="menuitem">
|
|
2998
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#building" /></svg>
|
|
2999
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYB</span></span>
|
|
3000
|
+
</button>
|
|
3001
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3002
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#activity" /></svg>
|
|
3003
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run rules</span></span>
|
|
3004
|
+
</button>
|
|
3005
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3006
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#credit-card" /></svg>
|
|
3007
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run BizChex</span></span>
|
|
3008
|
+
</button>
|
|
3009
|
+
</div>
|
|
3010
|
+
```
|
|
1676
3011
|
|
|
1677
|
-
|
|
1678
|
-
<span class="vd-field-verification vd-field-verification-pending">
|
|
1679
|
-
<span class="vd-section-marker" role="img" aria-label="Pending">
|
|
1680
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1681
|
-
<use href="#circle" />
|
|
1682
|
-
</svg>
|
|
1683
|
-
</span>
|
|
1684
|
-
<span class="vd-field-verification-label">Verification pending</span>
|
|
1685
|
-
</span>
|
|
3012
|
+
Put `aria-haspopup="menu"` and `aria-expanded` on every row that opens a submenu (three are abbreviated above).
|
|
1686
3013
|
|
|
1687
|
-
|
|
1688
|
-
<span class="vd-field-verification vd-field-verification-none" role="img" aria-label="No status">
|
|
1689
|
-
<span class="vd-section-marker">
|
|
1690
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1691
|
-
<use href="#minus" />
|
|
1692
|
-
</svg>
|
|
1693
|
-
</span>
|
|
1694
|
-
</span>
|
|
3014
|
+
### Run KYC submenu
|
|
1695
3015
|
|
|
1696
|
-
|
|
1697
|
-
<span class="vd-field-verification vd-field-verification-mismatch">
|
|
1698
|
-
<svg class="vd-field-verification-icon vd-icon vd-icon-size-15" aria-hidden="true">
|
|
1699
|
-
<use href="#triangle-alert" />
|
|
1700
|
-
</svg>
|
|
1701
|
-
<span class="vd-field-verification-label">Does not match KYC</span>
|
|
1702
|
-
</span>
|
|
3016
|
+
Everyone at once, then one person at a time. The first row shows a count as right text.
|
|
1703
3017
|
|
|
1704
|
-
|
|
1705
|
-
<
|
|
1706
|
-
<
|
|
1707
|
-
<use href="#
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
</
|
|
3018
|
+
```html
|
|
3019
|
+
<div class="vd-dropdown-menu" role="menu" aria-label="Run KYC" style="width: 220px">
|
|
3020
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3021
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
|
|
3022
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">All individuals</span></span>
|
|
3023
|
+
<span class="vd-menu-item-right-text">3</span>
|
|
3024
|
+
</button>
|
|
3025
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
3026
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3027
|
+
<span class="vd-menu-item-tile"><svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#plus" /></svg></span>
|
|
3028
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">John Smith</span></span>
|
|
3029
|
+
</button>
|
|
3030
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3031
|
+
<span class="vd-menu-item-tile"><svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#plus" /></svg></span>
|
|
3032
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Marcus Vale</span></span>
|
|
3033
|
+
</button>
|
|
3034
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3035
|
+
<span class="vd-menu-item-tile"><svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#plus" /></svg></span>
|
|
3036
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Jimmy Johns</span></span>
|
|
3037
|
+
</button>
|
|
3038
|
+
</div>
|
|
1720
3039
|
```
|
|
1721
3040
|
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
### SectionMarker
|
|
3041
|
+
### Assign menu with search
|
|
1725
3042
|
|
|
1726
|
-
|
|
3043
|
+
A listbox with a search field on top. Filtering the rows as the user types is your JavaScript.
|
|
1727
3044
|
|
|
1728
3045
|
```html
|
|
1729
|
-
|
|
1730
|
-
<
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
</
|
|
3046
|
+
<div class="vd-dropdown-menu" style="width: 280px">
|
|
3047
|
+
<div class="vd-dropdown-menu-search">
|
|
3048
|
+
<div class="vd-input-field vd-input-search vd-input-sm">
|
|
3049
|
+
<svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true"><use href="#search" /></svg>
|
|
3050
|
+
<input class="vd-input" type="search" placeholder="Assign to…" aria-label="Assign to" aria-controls="assignees" />
|
|
3051
|
+
</div>
|
|
3052
|
+
</div>
|
|
3053
|
+
<div id="assignees" role="listbox" aria-label="Assignee">
|
|
3054
|
+
<button class="vd-menu-item" role="option" aria-selected="true">
|
|
3055
|
+
<span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-sm">NC</span></span>
|
|
3056
|
+
<span class="vd-menu-item-text">
|
|
3057
|
+
<span class="vd-menu-item-title">Nicholas Cooper</span>
|
|
3058
|
+
<span class="vd-menu-item-subtitle">Underwriter</span>
|
|
3059
|
+
</span>
|
|
3060
|
+
<svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
|
|
3061
|
+
</button>
|
|
3062
|
+
<button class="vd-menu-item" role="option" aria-selected="false">
|
|
3063
|
+
<span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-sm">AR</span></span>
|
|
3064
|
+
<span class="vd-menu-item-text">
|
|
3065
|
+
<span class="vd-menu-item-title">Alex Reyes</span>
|
|
3066
|
+
<span class="vd-menu-item-subtitle">Underwriter</span>
|
|
3067
|
+
</span>
|
|
3068
|
+
</button>
|
|
3069
|
+
<button class="vd-menu-item" role="option" aria-selected="false">
|
|
3070
|
+
<span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-sm">MT</span></span>
|
|
3071
|
+
<span class="vd-menu-item-text">
|
|
3072
|
+
<span class="vd-menu-item-title">Morgan Tate</span>
|
|
3073
|
+
<span class="vd-menu-item-subtitle">Senior underwriter</span>
|
|
3074
|
+
</span>
|
|
3075
|
+
</button>
|
|
3076
|
+
</div>
|
|
3077
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
3078
|
+
<button class="vd-menu-item">
|
|
3079
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Unassign</span></span>
|
|
3080
|
+
</button>
|
|
3081
|
+
</div>
|
|
3082
|
+
```
|
|
1735
3083
|
|
|
1736
|
-
|
|
1737
|
-
<span class="vd-section-marker vd-section-marker-mismatch" role="img" aria-label="Mismatch">
|
|
1738
|
-
<span class="vd-section-marker-dot"></span>
|
|
1739
|
-
</span>
|
|
3084
|
+
### Account menu
|
|
1740
3085
|
|
|
1741
|
-
|
|
1742
|
-
<span class="vd-section-marker vd-section-marker-unverified" role="img" aria-label="Unverified">
|
|
1743
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1744
|
-
<use href="#circle" />
|
|
1745
|
-
</svg>
|
|
1746
|
-
</span>
|
|
3086
|
+
Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>`, so the whole row toggles it; flip `data-theme` on `<html>` when it changes.
|
|
1747
3087
|
|
|
1748
|
-
|
|
1749
|
-
<
|
|
1750
|
-
|
|
3088
|
+
```html
|
|
3089
|
+
<div class="vd-dropdown-menu" role="menu" aria-label="Account" style="width: 220px">
|
|
3090
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3091
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
|
|
3092
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Profile</span></span>
|
|
3093
|
+
</button>
|
|
3094
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3095
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#settings" /></svg>
|
|
3096
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Settings</span></span>
|
|
3097
|
+
</button>
|
|
3098
|
+
<label class="vd-menu-item">
|
|
3099
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#moon" /></svg>
|
|
3100
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Dark mode</span></span>
|
|
3101
|
+
<span class="vd-menu-item-switch">
|
|
3102
|
+
<span class="vd-switch"><input type="checkbox" class="vd-switch-input" role="menuitemcheckbox" id="dark-mode" /></span>
|
|
3103
|
+
</span>
|
|
3104
|
+
</label>
|
|
3105
|
+
<div class="vd-dropdown-menu-divider"></div>
|
|
3106
|
+
<button class="vd-menu-item" role="menuitem">
|
|
3107
|
+
<svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#log-out" /></svg>
|
|
3108
|
+
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Log out</span></span>
|
|
3109
|
+
</button>
|
|
3110
|
+
</div>
|
|
1751
3111
|
|
|
1752
|
-
|
|
3112
|
+
<script>
|
|
3113
|
+
document.getElementById("dark-mode").addEventListener("change", (e) => {
|
|
3114
|
+
if (e.target.checked) document.documentElement.setAttribute("data-theme", "onyx");
|
|
3115
|
+
else document.documentElement.removeAttribute("data-theme");
|
|
3116
|
+
});
|
|
3117
|
+
</script>
|
|
3118
|
+
```
|
|
1753
3119
|
|
|
1754
|
-
###
|
|
3120
|
+
### Section Edit
|
|
1755
3121
|
|
|
1756
|
-
|
|
3122
|
+
Editing a section of a record in place. Since 0.7.0 this is a component, `.vd-section-edit`: a bordered box with a title and a hint, named groups of fields, and a footer with the reason, a note, Cancel and Save. Every control inside is an existing component.
|
|
1757
3123
|
|
|
1758
3124
|
```html
|
|
1759
|
-
|
|
1760
|
-
<
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
aria-pressed="true"
|
|
1765
|
-
aria-label="Show full value"
|
|
1766
|
-
>
|
|
1767
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true">
|
|
1768
|
-
<use href="#eye-off" />
|
|
1769
|
-
</svg>
|
|
1770
|
-
</button>
|
|
1771
|
-
</span>
|
|
3125
|
+
<form class="vd-section-edit" aria-labelledby="edit-title">
|
|
3126
|
+
<div class="vd-section-edit-header">
|
|
3127
|
+
<h3 class="vd-section-edit-title" id="edit-title">Editing Business</h3>
|
|
3128
|
+
<p class="vd-section-edit-hint">Changes re-run the checks for this section.</p>
|
|
3129
|
+
</div>
|
|
1772
3130
|
|
|
1773
|
-
|
|
1774
|
-
<
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
class="vd-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
3131
|
+
<div class="vd-section-edit-group" role="group" aria-labelledby="edit-registration">
|
|
3132
|
+
<h4 class="vd-section-edit-group-title" id="edit-registration">Registration</h4>
|
|
3133
|
+
|
|
3134
|
+
<!-- One field across -->
|
|
3135
|
+
<div class="vd-section-edit-row">
|
|
3136
|
+
<div class="vd-input-container">
|
|
3137
|
+
<label class="vd-input-label" for="legal-name"><span>Legal name</span></label>
|
|
3138
|
+
<div class="vd-input-field"><input class="vd-input" id="legal-name" value="Northgate Logistics, INC" /></div>
|
|
3139
|
+
</div>
|
|
3140
|
+
</div>
|
|
3141
|
+
|
|
3142
|
+
<!-- Two fields share the row, 16px apart; three work the same way -->
|
|
3143
|
+
<div class="vd-section-edit-row">
|
|
3144
|
+
<div class="vd-input-container">
|
|
3145
|
+
<label class="vd-input-label" for="dba"><span>Doing business as (DBA)</span></label>
|
|
3146
|
+
<div class="vd-input-field"><input class="vd-input" id="dba" value="Northgate Trucking" /></div>
|
|
3147
|
+
</div>
|
|
3148
|
+
<div class="vd-dropdown-field-container">
|
|
3149
|
+
<div class="vd-dropdown-field-label" id="biz-type"><span>Business type</span></div>
|
|
3150
|
+
<button type="button" class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="biz-type">
|
|
3151
|
+
<span class="vd-dropdown-field-value">INC</span>
|
|
3152
|
+
<svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
3153
|
+
</button>
|
|
3154
|
+
</div>
|
|
3155
|
+
</div>
|
|
3156
|
+
|
|
3157
|
+
<!-- A switch that reveals a field -->
|
|
3158
|
+
<label class="vd-section-edit-toggle">
|
|
3159
|
+
<span class="vd-switch"><input type="checkbox" class="vd-switch-input" /></span>
|
|
3160
|
+
Mail should go to a different address
|
|
3161
|
+
</label>
|
|
3162
|
+
</div>
|
|
3163
|
+
|
|
3164
|
+
<!-- Footer: why, an optional note, and the actions -->
|
|
3165
|
+
<div class="vd-section-edit-footer">
|
|
3166
|
+
<div class="vd-section-edit-reason">
|
|
3167
|
+
<button type="button" class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false" aria-label="Reason for the change">
|
|
3168
|
+
<span class="vd-dropdown-field-value">Applicant requested</span>
|
|
3169
|
+
<svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
3170
|
+
</button>
|
|
3171
|
+
</div>
|
|
3172
|
+
<div class="vd-section-edit-note">
|
|
3173
|
+
<div class="vd-input-field"><input class="vd-input" aria-label="Note" placeholder="Note (optional)" /></div>
|
|
3174
|
+
</div>
|
|
3175
|
+
<button type="button" class="vd-btn vd-btn-empty">Cancel</button>
|
|
3176
|
+
<button class="vd-btn vd-btn-primary">Save changes</button>
|
|
3177
|
+
</div>
|
|
3178
|
+
</form>
|
|
1786
3179
|
```
|
|
1787
3180
|
|
|
1788
|
-
|
|
3181
|
+
A group is a `role="group"` named by its title, not a `<fieldset>`: a legend cannot sit below the group's own rule. After a save, show what each changed field held before with `.vd-data-row-previous` (see [DataRow](#datarow)).
|
|
3182
|
+
|
|
3183
|
+
### Page Breadcrumbs
|
|
3184
|
+
|
|
3185
|
+
The trail at the top of a record page: a back button, the path, and a product chip. It is [Breadcrumbs](#breadcrumbs) with the slash separator, an IconButton before it and a neutral Chip after.
|
|
3186
|
+
|
|
3187
|
+
```html
|
|
3188
|
+
<div class="flex items-center gap-2">
|
|
3189
|
+
<a class="vd-icon-button" href="/applications" aria-label="Back to Applications">
|
|
3190
|
+
<svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#arrow-left" /></svg>
|
|
3191
|
+
</a>
|
|
3192
|
+
<nav class="vd-breadcrumbs" aria-label="Breadcrumb">
|
|
3193
|
+
<a class="vd-breadcrumb" href="/applications">Applications</a>
|
|
3194
|
+
<span class="vd-breadcrumb-separator" aria-hidden="true">/</span>
|
|
3195
|
+
<a class="vd-breadcrumb" href="/applications/northgate">Northgate Logistics, INC</a>
|
|
3196
|
+
<span class="vd-breadcrumb-separator" aria-hidden="true">/</span>
|
|
3197
|
+
<span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">#853081</span>
|
|
3198
|
+
</nav>
|
|
3199
|
+
<span class="vd-chip vd-chip-neutral vd-chip-sm">Business Checking · BC001</span>
|
|
3200
|
+
</div>
|
|
3201
|
+
```
|
|
1789
3202
|
|
|
1790
3203
|
## Need More Help?
|
|
1791
3204
|
|