@filipgutica/design-system 2.2.0 → 2.4.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/language/DESIGN.md +17 -4
- package/language/components.html +68 -18
- package/language/components.md +130 -23
- package/language/decisions.md +50 -48
- package/language/reference.html +18 -12
- package/package.json +1 -1
package/language/DESIGN.md
CHANGED
|
@@ -39,8 +39,8 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
39
39
|
|
|
40
40
|
## Files and examples
|
|
41
41
|
|
|
42
|
-
- `tokens.css`:
|
|
43
|
-
- `components.md`: one spec for each component, with anatomy,
|
|
42
|
+
- `tokens.css`: the values of the Graphite Indigo theme, generated from the token source (`tokens/graphite-indigo.json`) in `@filipgutica/design-system`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top. Each line's `ui:` comment lists the library variables that carry that value, the line's own name first.
|
|
43
|
+
- `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
|
|
44
44
|
- `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
|
|
45
45
|
- `decisions.md`: the choices behind the components, and the options they replaced.
|
|
46
46
|
- `reference.html`: an application example, and a Foundations catalogue (`#foundations`) of every token: type, color with contrast, spacing, shape, borders, elevation, focus, and motion.
|
|
@@ -105,6 +105,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
105
105
|
| Phone | `@media (max-width: 640px)` | Side gutters drop from `--space-6` to `--space-4`, and section gaps take their phone step. |
|
|
106
106
|
|
|
107
107
|
Use `@media (min-width: 801px)` only for a rule that applies to desktop alone. One documented exception: the tool-home hero (`.fg-site-hero` in `@filipgutica/ui`) splits at `@media (min-width: 1024px)`, with the title across the top, the lede on the left, and the install block and facts on the right. Below 1024px it stacks in source order. `@filipgutica/ui` also ships 680px rules for its own site header, prose title and definitions (`max-width: 680px`, with `min-width: 681px` for frame padding); they belong to the library, so pages add no viewport breakpoint beyond the table and the hero split. A pane that must collapse at its own width uses a container query, as the detail column in `reference.html` does.
|
|
108
|
+
- Density: an application screen has one size for each place, not a range. Toolbar controls (buttons, segmented filters, and search fields) are `sm`, `--control-sm` tall. Rows in a table or list, such as the console's monitor list, and rail and navigation rows, are `--row` tall. Other controls keep the default `md` (`--control-md`). At tablet width every touch target grows to `--control-lg`. The console in `reference.html` uses these sizes.
|
|
108
109
|
- [Navigation](#navigation) is a strip of 6 links or fewer, or a section rail that moves into a drawer at tablet width. A sticky side rail taller than the window scrolls its link list, not the element that draws its divider, so an overlay scrollbar sits clear of the line; `UiSiteNav` does this. Keep wide code, tables, and charts scrolling inside their containers.
|
|
109
110
|
- Keep main headings, actions, and product evidence visible on load. Scrolling should reveal more content without being required to make existing content appear.
|
|
110
111
|
|
|
@@ -119,11 +120,23 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
119
120
|
| Well | Source code, screenshots, figures, and inset previews other than example stages | `--color-surface` | Source code: transparent 1px; figures: `--color-border-subtle` | `--radius-panel` | Source code: `--shadow-surface`; figures: none |
|
|
120
121
|
| Panel | Cards, forms, charts, and detail views | `--color-surface-raised` | Transparent 1px | `--radius-panel` | `--shadow-surface` |
|
|
121
122
|
| Field | Inputs, selects, textareas, and search fields | `--color-field-bg`; disabled: `--color-well` | `--color-field-edge` | `--radius-field` | `--shadow-field`; disabled: none |
|
|
122
|
-
| Track | Segmented and switch tracks, and selected radio cards | `--color-well` | Transparent 1px |
|
|
123
|
+
| Track | Segmented and switch tracks, and selected radio cards | `--color-well` | Transparent 1px | Segmented tracks: `--radius-control`; switch tracks: `--radius-pill`; radio cards: `--radius-panel` | `--shadow-sink` |
|
|
123
124
|
| Floating layer | Menus, popovers, pickers, and dialogs | `--color-surface-raised` | Transparent 1px; the shadow's ring draws the edge | `--radius-panel` | `--shadow-dialog` |
|
|
124
125
|
|
|
125
126
|
- Borders stay 1px and transparent on buttons, quiet actions, tracks, panels, and radio cards, so forced colors can draw them. Fields keep `--color-field-edge`. `--color-border` keeps unchecked checkbox and radio edges visible. The toggle card is a named exception: a visible `--color-border-subtle` edge and no rest raise. Invalid fields show a `--color-error` edge, except in forced colors, where the system edge wins. Figures, example frames, and dividers use `--color-border-subtle`.
|
|
126
|
-
-
|
|
127
|
+
- Shape follows role. A pill acts, or sets a value in place; a rectangle is a place, or holds content. Pick a new component's radius from its role in this table, not from the component it looks like.
|
|
128
|
+
|
|
129
|
+
| Role | Shape | Token | Members |
|
|
130
|
+
| --- | --- | --- | --- |
|
|
131
|
+
| Acts, or sets a value on one line | Pill | `--radius-control` | Buttons, quiet actions, and segmented controls with their thumbs |
|
|
132
|
+
| Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, and the in-page location pip |
|
|
133
|
+
| A place, or a row you pick | 6px | `--radius-inline` | Navigation rows, group labels, breadcrumb links, tabs, list rows, checkboxes, and keyboard keys |
|
|
134
|
+
| Something you type in, or a control whose label wraps | 10px | `--radius-field` | Inputs, selects, textareas, search fields, toggle cards, and pager links |
|
|
135
|
+
| Holds other things | 16px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, and floating layers |
|
|
136
|
+
|
|
137
|
+
- A pill never holds text that can wrap. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
|
|
138
|
+
- Nested rectangles are concentric: a rectangle that sits closer to a rounded container's edge than the container's radius takes that radius minus the gap. Option rows in a select picker, `--space-1` inside a 16px panel, take `calc(var(--radius-panel) - var(--space-1))`. A shape with more room than that, such as a field in a dialog, keeps the radius of its role. Two exceptions wait on the owner (see [open questions](decisions.md#open-questions)): rows in the project menu keep `--radius-inline`, and the skip link, a floating layer, keeps `--radius-field`.
|
|
139
|
+
- Round marks (radios, slider thumbs, badge dots, and the busy spinner) take `50%`, a fill inside a shape inherits its corners, and an edge that meets another shape takes `0`. A page writes no other literal radius.
|
|
127
140
|
- Avoid nesting panels. Cards are for a few parallel self-contained options that a reader compares. Running prose belongs in open sections. Product screenshots need one frame, not a frame around a frame.
|
|
128
141
|
- [Depth](#depth) gives each role its shadow. Stable hover states keep normal content quiet.
|
|
129
142
|
|
package/language/components.html
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
.select::picker(select) { min-width: anchor-size(width); max-height: min(20rem, 50dvh); overflow: auto; margin-block: var(--space-1); padding: var(--space-1); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-dialog); font: var(--text-md) / var(--leading) var(--font-ui); }
|
|
90
90
|
.select option { min-height: var(--control-sm); padding: var(--space-2) var(--space-3); border-radius: calc(var(--radius-panel) - var(--space-1)); cursor: pointer; }
|
|
91
91
|
.select option:checked { background: var(--color-row-selected); }
|
|
92
|
-
.select option:hover { background: var(--color-row-hover); }
|
|
92
|
+
.select option:hover:where(:not(:disabled)) { background: var(--color-row-hover); }
|
|
93
93
|
/* Inset: the picker scrolls. */
|
|
94
94
|
.select option:focus-visible { background: var(--color-row-hover); outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
95
95
|
.select option::checkmark { order: 1; margin-left: auto; color: var(--color-accent); }
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
.search input::placeholder { color: var(--color-muted); }
|
|
104
104
|
/* The native search clear button, quieted to a thin muted cross drawn with a mask. */
|
|
105
105
|
.search input::-webkit-search-cancel-button { width: 0.75rem; height: 0.75rem; margin-inline-start: var(--space-2); background: var(--color-muted); cursor: pointer; -webkit-appearance: none; appearance: none; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7m0-7l-7 7' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
|
|
106
|
-
.search input::-webkit-search-cancel-button:hover { background: var(--color-text); }
|
|
106
|
+
.search input:where(:not(:disabled))::-webkit-search-cancel-button:hover { background: var(--color-text); }
|
|
107
107
|
/* A disabled field drops into the grey well (the same fill as rest in dark) and loses its shadow. background-color keeps the select chevron. */
|
|
108
108
|
:is(.input, .select, .textarea):disabled { background-color: var(--color-well); box-shadow: none; opacity: 0.58; cursor: not-allowed; }
|
|
109
109
|
/* A static drawing of the open picker; a native select cannot be pinned open. */
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
|
|
193
193
|
/* Slider: a native range input. */
|
|
194
194
|
.range { width: 220px; max-width: 100%; height: var(--control-md); margin: 0; background: transparent; appearance: none; cursor: pointer; }
|
|
195
|
-
.range::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-
|
|
196
|
-
.range::-moz-range-track { height: 6px; border-radius: var(--radius-
|
|
197
|
-
.range::-moz-range-progress { height: 6px; border-radius: var(--radius-
|
|
195
|
+
.range::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-pill); background: linear-gradient(var(--color-accent), var(--color-accent)) 0 / var(--value, 50%) 100% no-repeat, var(--color-surface-muted); }
|
|
196
|
+
.range::-moz-range-track { height: 6px; border-radius: var(--radius-pill); background: var(--color-surface-muted); }
|
|
197
|
+
.range::-moz-range-progress { height: 6px; border-radius: var(--radius-pill); background: var(--color-accent); }
|
|
198
198
|
.range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 2px solid var(--color-accent); border-radius: 50%; background: var(--color-surface-raised); }
|
|
199
199
|
.range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--color-accent); border-radius: 50%; background: var(--color-surface-raised); }
|
|
200
200
|
.range[data-size="sm"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; }
|
|
@@ -206,17 +206,22 @@
|
|
|
206
206
|
.range[data-size="sm"] { height: var(--control-sm); }
|
|
207
207
|
.range[data-size="lg"] { height: var(--control-lg); }
|
|
208
208
|
.range:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
209
|
+
/* The current value follows the track, so the reader sees the number the thumb sets. */
|
|
210
|
+
.slider { display: flex; align-items: center; gap: var(--space-3); width: 220px; max-width: 100%; }
|
|
211
|
+
.slider > .range { flex: 1; width: auto; min-width: 0; }
|
|
212
|
+
.slider-value { min-width: 4ch; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
|
|
213
|
+
.range:disabled + .slider-value { opacity: 0.58; }
|
|
209
214
|
/* The ring goes on the thumb, not the full-width input. */
|
|
210
215
|
.range:is(:focus-visible, .is-focus) { outline: none; }
|
|
211
216
|
.range:is(:focus-visible, .is-focus)::-webkit-slider-thumb { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
212
217
|
.range:is(:focus-visible, .is-focus)::-moz-range-thumb { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
213
218
|
|
|
214
219
|
/* Progress and score */
|
|
215
|
-
.progress { width: 220px; max-width: 100%; height: 9px; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-
|
|
220
|
+
.progress { width: 220px; max-width: 100%; height: 9px; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-pill); background: var(--color-surface-muted); }
|
|
216
221
|
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); transition: transform var(--duration-fast) var(--ease-out); }
|
|
217
222
|
.score { display: inline-flex; align-items: center; gap: var(--space-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
218
223
|
.score .pips { display: inline-flex; gap: 0.1875rem; }
|
|
219
|
-
.score .pips i { width: 8px; height: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-
|
|
224
|
+
.score .pips i { width: 8px; height: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
|
|
220
225
|
.score .pips i.on { border-color: var(--color-accent); background: var(--color-accent); }
|
|
221
226
|
.score b { font-weight: var(--weight-medium); }
|
|
222
227
|
.score b span { color: var(--color-muted); font-weight: var(--weight-regular); }
|
|
@@ -230,7 +235,7 @@
|
|
|
230
235
|
.tablist[data-clip="end"] { mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
|
|
231
236
|
.tablist[data-clip="start end"] { mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
|
|
232
237
|
.tab { position: relative; flex: none; min-height: var(--control-md); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-medium) var(--text-md) / var(--leading) var(--font-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
233
|
-
.tab:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); }
|
|
238
|
+
.tab:is(:hover, .is-hover):where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); }
|
|
234
239
|
/* The selected tab takes the navigation row's lifted fill: one selected state for both. The fill is a
|
|
235
240
|
::before layer behind the label, so it can glide between tabs as the segmented thumb does. */
|
|
236
241
|
.tab[aria-selected="true"] { background: transparent; color: var(--color-nav-current-text); }
|
|
@@ -343,7 +348,7 @@
|
|
|
343
348
|
details.rail-details[open] > .navlist { margin-top: var(--space-2); }
|
|
344
349
|
/* A collapsible group's label is a disclosure button in the group-label type. Only rails over about 40 rows use it. */
|
|
345
350
|
.group-toggle { display: flex; align-items: center; justify-content: space-between; min-height: var(--control-sm); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-semibold) var(--text-xs) var(--font-ui); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
346
|
-
.group-toggle:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); }
|
|
351
|
+
.group-toggle:is(:hover, .is-hover):where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); }
|
|
347
352
|
.group-toggle .icon { transition: transform var(--duration-fast) var(--ease-out); }
|
|
348
353
|
.group-toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
|
|
349
354
|
/* Inset: the rail list scrolls. */
|
|
@@ -436,7 +441,7 @@
|
|
|
436
441
|
/* Copy is a quiet action; this sets its size and place. */
|
|
437
442
|
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: var(--control-lg); min-height: var(--control-lg); margin-left: auto; padding: var(--space-1) 0.375rem; color: inherit; }
|
|
438
443
|
/* The code block has its own palette, so its Copy keeps the plate's text colour on hover. */
|
|
439
|
-
.code .copy:is(:hover, .is-hover) { color: inherit; }
|
|
444
|
+
.code .copy:is(:hover, .is-hover):where(:not(:disabled)) { color: inherit; }
|
|
440
445
|
/* Inset: the code block clips its content. */
|
|
441
446
|
.code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
442
447
|
.code .copy.quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
|
|
@@ -584,7 +589,7 @@
|
|
|
584
589
|
.tab[aria-selected="true"]::before { content: none; }
|
|
585
590
|
.check input:checked { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
|
|
586
591
|
/* The masked search cross would lose its fill, so it opts out and takes the system text colour. */
|
|
587
|
-
.search input::-webkit-search-cancel-button, .search input::-webkit-search-cancel-button:hover { forced-color-adjust: none; background: CanvasText; }
|
|
592
|
+
.search input::-webkit-search-cancel-button, .search input:where(:not(:disabled))::-webkit-search-cancel-button:hover { forced-color-adjust: none; background: CanvasText; }
|
|
588
593
|
.check input[type="checkbox"]:checked::before { border-color: HighlightText; }
|
|
589
594
|
.check input[type="radio"]:checked { background: HighlightText; }
|
|
590
595
|
.radio-card input:checked { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; }
|
|
@@ -605,6 +610,10 @@
|
|
|
605
610
|
/* A rail's current section has no pip, so it takes the current page's system border. */
|
|
606
611
|
:is(.rail, .rail-specimen) a[aria-current="location"] { border-inline-start: 2px solid Highlight; }
|
|
607
612
|
.key { border-color: CanvasText; }
|
|
613
|
+
/* The tone dot is a fill, so it opts out of adjustment and takes the label's system colour. */
|
|
614
|
+
.badge:is(.success, .warning, .danger, .info)::before { forced-color-adjust: none; background: CanvasText; }
|
|
615
|
+
/* An SVG keeps the colour it sets, so the status icon takes the system text colour. */
|
|
616
|
+
.alert .icon, .alert:is(.success, .warning, .danger, .info) .icon { color: CanvasText; }
|
|
608
617
|
.coverage td { color: CanvasText; }
|
|
609
618
|
/* Value marks: only the mark opts out of adjustment and redraws in the system highlight. */
|
|
610
619
|
.progress > span, .score .pips i.on { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
|
|
@@ -642,6 +651,10 @@
|
|
|
642
651
|
.component > header a { font-size: var(--text-sm); }
|
|
643
652
|
/* Each component has a one-line purpose, which Find also matches, and a Copy link quiet action. */
|
|
644
653
|
.purpose { max-width: var(--measure); margin-top: calc(-1 * var(--space-2)); color: var(--color-muted); font-size: var(--text-sm); }
|
|
654
|
+
/* The spec's Do and Don't lines, as a two-column definition list under the purpose. components.md owns the text. */
|
|
655
|
+
.guidance { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); max-width: var(--measure); margin: 0; font-size: var(--text-sm); }
|
|
656
|
+
.guidance dt { font-weight: var(--weight-medium); }
|
|
657
|
+
.guidance dd { margin: 0; color: var(--color-muted); }
|
|
645
658
|
.copy-link { width: var(--control-sm); height: var(--control-sm); align-self: center; color: var(--color-muted); }
|
|
646
659
|
.note { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-sm); }
|
|
647
660
|
.row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-subtle); }
|
|
@@ -871,6 +884,7 @@
|
|
|
871
884
|
<section class="component" id="button" data-layer="Core" data-states="hover pressed focus disabled busy" aria-labelledby="button-title">
|
|
872
885
|
<header><h3 id="button-title">Button</h3><span class="badge">Core</span><a href="components.md#button">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="button" aria-label="Copy link to Button" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
873
886
|
<p class="purpose">The main action control: primary, secondary, ghost, danger, and text.</p>
|
|
887
|
+
<dl class="guidance"><dt>Do</dt><dd>One primary button in each decision group, labelled with a verb for its result, such as “Save changes”. Every other action in the group is secondary, ghost, or text.</dd><dt>Don’t</dt><dd>The danger variant on an action the reader can undo. Danger marks an action that destroys something.</dd></dl>
|
|
874
888
|
<div class="row"><h4>Primary</h4><div class="states">
|
|
875
889
|
<div class="state"><button class="btn" type="button"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg>New monitor</button><span class="caption">Rest</span></div>
|
|
876
890
|
<div class="state" inert><button class="btn is-hover" type="button">New monitor</button><span class="caption">Hover</span></div>
|
|
@@ -921,6 +935,7 @@
|
|
|
921
935
|
<section class="component" id="quiet-action" data-layer="Core" data-states="hover pressed focus disabled" aria-labelledby="quiet-action-title">
|
|
922
936
|
<header><h3 id="quiet-action-title">Quiet action</h3><span class="badge">Core</span><a href="components.md#quiet-action">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="quiet-action" aria-label="Copy link to Quiet action" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
923
937
|
<p class="purpose">A small transparent action inside a component, such as Copy or Close.</p>
|
|
938
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for an action inside a component: Copy in a code block or command list, close in a dialog or drawer, Full size on a capture, and the project trigger.</dd><dt>Don’t</dt><dd>An action that stands on its own in the page, such as Save or Next. That is a button.</dd></dl>
|
|
924
939
|
<p class="note">One recipe for Copy, Full size, dialog and drawer close, and the project trigger. Each component sets only its size and place.</p>
|
|
925
940
|
<div class="row"><h4>Icon</h4><div class="states">
|
|
926
941
|
<div class="state"><button class="quiet-action close" type="button" aria-label="Close"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button><span class="caption">Rest</span></div>
|
|
@@ -945,6 +960,7 @@
|
|
|
945
960
|
<section class="component" id="checkbox-and-radio" data-layer="Core" data-states="selected focus disabled" aria-labelledby="check-title">
|
|
946
961
|
<header><h3 id="check-title">Checkbox and radio</h3><span class="badge">Core</span><a href="components.md#checkbox-and-radio">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="checkbox-and-radio" aria-label="Copy link to Checkbox and radio" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
947
962
|
<p class="purpose">Pick several options, or one from a short list.</p>
|
|
963
|
+
<dl class="guidance"><dt>Do</dt><dd>Checkboxes for options the reader can pick in any combination. Radios for one choice from a short list that stays in view.</dd><dt>Don’t</dt><dd>A label written as a question, such as “Send updates?”, or as a negative, such as “Don’t email me”. Name the option: “Email me updates”.</dd></dl>
|
|
948
964
|
<div class="row"><h4>Checkbox</h4><div class="states">
|
|
949
965
|
<div class="state"><label class="check"><input type="checkbox">Notify on recovery</label><span class="caption">Rest</span></div>
|
|
950
966
|
<div class="state" inert><label class="check"><input type="checkbox" checked>Notify on recovery</label><span class="caption">Checked</span></div>
|
|
@@ -967,6 +983,7 @@
|
|
|
967
983
|
<section class="component" id="radio-card-group" data-layer="Core" data-states="hover selected focus disabled" aria-labelledby="rc-title">
|
|
968
984
|
<header><h3 id="rc-title">Radio card group</h3><span class="badge">Core</span><a href="components.md#radio-card-group">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="radio-card-group" aria-label="Copy link to Radio card group" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
969
985
|
<p class="purpose">Pick one option that needs a description.</p>
|
|
986
|
+
<dl class="guidance"><dt>Do</dt><dd>Use radio cards when the reader chooses by a description, such as plans or deploy modes. Give each card a title and one line on what differs.</dd><dt>Don’t</dt><dd>Radio cards for options that a title alone explains. Use radios.</dd></dl>
|
|
970
987
|
<div class="row"><h4>Live</h4><div class="states">
|
|
971
988
|
<div class="state wide"><fieldset class="radio-cards"><legend class="sr-only">Delivery</legend><label class="radio-card"><input type="radio" name="delivery" checked><strong>Immediate</strong><span class="muted">Send each alert.</span></label><label class="radio-card"><input type="radio" name="delivery"><strong>Digest</strong><span class="muted">Group the alerts.</span></label></fieldset><span class="caption">Rest; Immediate is selected</span></div>
|
|
972
989
|
</div></div>
|
|
@@ -979,6 +996,7 @@
|
|
|
979
996
|
<section class="component" id="switch" data-layer="Core" data-states="selected focus disabled" aria-labelledby="switch-title">
|
|
980
997
|
<header><h3 id="switch-title">Switch</h3><span class="badge">Core</span><a href="components.md#switch">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="switch" aria-label="Copy link to Switch" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
981
998
|
<p class="purpose">Turn a setting on or off at once.</p>
|
|
999
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a switch for a setting that applies the moment it changes. Its label names the setting, such as “Dark mode”, and stays the same when on or off.</dd><dt>Don’t</dt><dd>A switch in a form that applies on submit. Use a checkbox there.</dd></dl>
|
|
982
1000
|
<div class="row"><h4>States</h4><div class="states">
|
|
983
1001
|
<div class="state"><div class="switch-row"><button class="switch" id="sw-rest" type="button" role="switch" aria-checked="false" aria-labelledby="sw-rest-label"><span class="switch-track" aria-hidden="true"></span></button><label id="sw-rest-label" for="sw-rest">Alerts</label></div><span class="caption">Off, live</span></div>
|
|
984
1002
|
<div class="state" inert><div class="switch-row"><button class="switch" id="sw-on" type="button" role="switch" aria-checked="true" aria-labelledby="sw-on-label"><span class="switch-track" aria-hidden="true"></span></button><label id="sw-on-label" for="sw-on">Alerts</label></div><span class="caption">On</span></div>
|
|
@@ -996,6 +1014,7 @@
|
|
|
996
1014
|
<section class="component" id="toggle-button" data-layer="Core" data-states="hover pressed focus disabled" aria-labelledby="toggle-title">
|
|
997
1015
|
<header><h3 id="toggle-title">Toggle button</h3><span class="badge">Core</span><a href="components.md#toggle-button">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="toggle-button" aria-label="Copy link to Toggle button" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
998
1016
|
<p class="purpose">A labelled card that latches on, with a switch inside.</p>
|
|
1017
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for an on or off option whose label sits inside the control, such as “Wrap lines” in a viewer’s toolbar.</dd><dt>Don’t</dt><dd>A toggle button for an action that runs once, such as Refresh. It stays on until pressed again; an action is a button.</dd></dl>
|
|
999
1018
|
<div class="row"><h4>States</h4><div class="states">
|
|
1000
1019
|
<div class="state"><button class="toggle" type="button" aria-pressed="false" data-live-toggle><span class="toggle-track" aria-hidden="true"></span><span class="toggle-text">Wrap lines<small>Long lines fold</small></span></button><span class="caption">Rest, live</span></div>
|
|
1001
1020
|
<div class="state" inert><button class="toggle is-hover" type="button" aria-pressed="false"><span class="toggle-track" aria-hidden="true"></span><span class="toggle-text">Wrap lines</span></button><span class="caption">Hover</span></div>
|
|
@@ -1013,6 +1032,7 @@
|
|
|
1013
1032
|
<section class="component" id="segmented-control" data-layer="Core" data-states="hover pressed focus disabled" aria-labelledby="seg-title">
|
|
1014
1033
|
<header><h3 id="seg-title">Segmented control</h3><span class="badge">Core</span><a href="components.md#segmented-control">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="segmented-control" aria-label="Copy link to Segmented control" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1015
1034
|
<p class="purpose">Two to five short options that apply at once.</p>
|
|
1035
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for two to five short options that apply at once and change how the same content shows, such as a view mode or the System, Light, and Dark choice.</dd><dt>Don’t</dt><dd>A segmented control that switches between panels of content. Use tabs.</dd></dl>
|
|
1016
1036
|
<p class="note">The live control glides its thumb between options: 260ms for the leading edge, 300ms for the trailing edge. The theme picker at the top uses the same script, and it does not glide when the page loads a saved choice.</p>
|
|
1017
1037
|
<div class="row"><h4>Text</h4><div class="states">
|
|
1018
1038
|
<div class="state"><div class="segmented" role="group" aria-label="View" data-live><button type="button" aria-pressed="true">List</button><button type="button" aria-pressed="false">Board</button><button type="button" aria-pressed="false">Timeline</button></div><span class="caption">Rest, live</span></div>
|
|
@@ -1035,6 +1055,7 @@
|
|
|
1035
1055
|
<section class="component" id="text-input-and-textarea" data-layer="Core" data-states="focus disabled invalid" aria-labelledby="input-title">
|
|
1036
1056
|
<header><h3 id="input-title">Text input and textarea</h3><span class="badge">Core</span><a href="components.md#text-input-and-textarea">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="text-input-and-textarea" aria-label="Copy link to Text input and textarea" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1037
1057
|
<p class="purpose">Type a short value or a longer note.</p>
|
|
1058
|
+
<dl class="guidance"><dt>Do</dt><dd>A textarea for an answer longer than one line, and <code>type="search"</code> for a field that filters.</dd><dt>Don’t</dt><dd>A label or an instruction that lives only in the placeholder. It disappears as the reader types.</dd></dl>
|
|
1038
1059
|
<div class="row"><h4>Input</h4><div class="states">
|
|
1039
1060
|
<div class="state"><div class="field"><label class="field-label" for="in-rest">Service</label><input class="input" id="in-rest" placeholder="checkout-api"></div><span class="caption">Rest</span></div>
|
|
1040
1061
|
<div class="state" inert><div class="field"><label class="field-label" for="in-focus">Service</label><input class="input is-focus" id="in-focus" value="checkout-api"></div><span class="caption">Focus visible</span></div>
|
|
@@ -1062,6 +1083,7 @@
|
|
|
1062
1083
|
<section class="component" id="select" data-layer="Core" data-states="focus disabled invalid" aria-labelledby="select-title">
|
|
1063
1084
|
<header><h3 id="select-title">Select</h3><span class="badge">Core</span><a href="components.md#select">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="select" aria-label="Copy link to Select" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1064
1085
|
<p class="purpose">Choose from a longer list.</p>
|
|
1086
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a select for one choice from more than five options, in a predictable order: alphabetical, numeric, or by frequency of use.</dd><dt>Don’t</dt><dd>A first option that acts as the label, such as “Choose a region”. The label goes above the field.</dd></dl>
|
|
1065
1087
|
<div class="row"><h4>Closed</h4><div class="states">
|
|
1066
1088
|
<div class="state"><div class="field"><label class="field-label" for="se-rest">Window</label><select class="select" id="se-rest"><option>Last hour</option><option>Last 24 hours</option><option>Last 7 days</option></select></div><span class="caption">Rest</span></div>
|
|
1067
1089
|
<div class="state" inert><div class="field"><label class="field-label" for="se-focus">Window</label><select class="select is-focus" id="se-focus"><option>Last hour</option></select></div><span class="caption">Focus visible</span></div>
|
|
@@ -1081,6 +1103,7 @@
|
|
|
1081
1103
|
<section class="component" id="field-wrapper" data-layer="Core" data-states="invalid" aria-labelledby="fieldw-title">
|
|
1082
1104
|
<header><h3 id="fieldw-title">Field wrapper</h3><span class="badge">Core</span><a href="components.md#field-wrapper">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="field-wrapper" aria-label="Copy link to Field wrapper" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1083
1105
|
<p class="purpose">Label, description, and error text around a field.</p>
|
|
1106
|
+
<dl class="guidance"><dt>Do</dt><dd>Write the error as the fix, such as “Enter a date after today”, and the description as a format or limit, such as “Up to 64 characters”.</dd><dt>Don’t</dt><dd>A description that repeats the label, or an error that only says “Invalid”.</dd></dl>
|
|
1084
1107
|
<div class="row"><h4>Description and error</h4><div class="states">
|
|
1085
1108
|
<div class="state"><div class="field"><label class="field-label" for="fw-desc">Threshold</label><input class="input" id="fw-desc" inputmode="numeric" value="300" aria-describedby="fw-desc-text"><p class="field-description" id="fw-desc-text">Milliseconds at p95.</p></div><span class="caption">With description</span></div>
|
|
1086
1109
|
<div class="state" inert><div class="field"><label class="field-label" for="fw-error">Threshold</label><input class="input" id="fw-error" value="-1" aria-invalid="true" aria-errormessage="fw-error-text"><p class="field-error" id="fw-error-text">Enter a positive number.</p></div><span class="caption">Error replaces the description</span></div>
|
|
@@ -1090,15 +1113,16 @@
|
|
|
1090
1113
|
<section class="component" id="slider" data-layer="Core" data-states="focus disabled" aria-labelledby="slider-title">
|
|
1091
1114
|
<header><h3 id="slider-title">Slider</h3><span class="badge">Core</span><a href="components.md#slider">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="slider" aria-label="Copy link to Slider" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1092
1115
|
<p class="purpose">Set a value in a range.</p>
|
|
1116
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a slider for an approximate value in a range, such as volume or opacity, and show the current value as text beside it.</dd><dt>Don’t</dt><dd>A slider for a value the reader must set exactly, such as a port or a price. Use a text input.</dd></dl>
|
|
1093
1117
|
<div class="row"><h4>States</h4><div class="states">
|
|
1094
|
-
<div class="state"><div class="field"><label class="field-label" for="sl-rest">Sample rate</label><input class="range" id="sl-rest" type="range" min="0" max="100" value="40" style="--value:40%" data-live-range></div><span class="caption">Rest, live</span></div>
|
|
1095
|
-
<div class="state" inert><input class="range is-focus" type="range" aria-label="Sample rate, focused" min="0" max="100" value="60" style="--value:60%"><span class="caption">Focus visible</span></div>
|
|
1096
|
-
<div class="state" inert><input class="range" type="range" aria-label="Sample rate, disabled" min="0" max="100" value="60" style="--value:60%" disabled><span class="caption">Disabled</span></div>
|
|
1118
|
+
<div class="state"><div class="field"><label class="field-label" for="sl-rest">Sample rate</label><div class="slider"><input class="range" id="sl-rest" type="range" min="0" max="100" value="40" style="--value:40%" data-live-range><output class="slider-value" for="sl-rest" aria-live="off">40%</output></div></div><span class="caption">Rest, live</span></div>
|
|
1119
|
+
<div class="state" inert><div class="slider"><input class="range is-focus" id="sl-focus" type="range" aria-label="Sample rate, focused" min="0" max="100" value="60" style="--value:60%"><output class="slider-value" for="sl-focus" aria-live="off">60%</output></div><span class="caption">Focus visible</span></div>
|
|
1120
|
+
<div class="state" inert><div class="slider"><input class="range" id="sl-disabled" type="range" aria-label="Sample rate, disabled" min="0" max="100" value="60" style="--value:60%" disabled><output class="slider-value" for="sl-disabled" aria-live="off">60%</output></div><span class="caption">Disabled</span></div>
|
|
1097
1121
|
</div></div>
|
|
1098
1122
|
<div class="row"><h4>Sizes</h4><div class="states">
|
|
1099
|
-
<div class="state" inert><input class="range" data-size="sm" type="range" aria-label="Small slider" min="0" max="100" value="50"><span class="caption">sm</span></div>
|
|
1100
|
-
<div class="state" inert><input class="range" type="range" aria-label="Medium slider" min="0" max="100" value="50"><span class="caption">md</span></div>
|
|
1101
|
-
<div class="state" inert><input class="range" data-size="lg" type="range" aria-label="Large slider" min="0" max="100" value="50"><span class="caption">lg</span></div>
|
|
1123
|
+
<div class="state" inert><div class="slider"><input class="range" id="sl-sm" data-size="sm" type="range" aria-label="Small slider" min="0" max="100" value="50"><output class="slider-value" for="sl-sm" aria-live="off">50%</output></div><span class="caption">sm</span></div>
|
|
1124
|
+
<div class="state" inert><div class="slider"><input class="range" id="sl-md" type="range" aria-label="Medium slider" min="0" max="100" value="50"><output class="slider-value" for="sl-md" aria-live="off">50%</output></div><span class="caption">md</span></div>
|
|
1125
|
+
<div class="state" inert><div class="slider"><input class="range" id="sl-lg" data-size="lg" type="range" aria-label="Large slider" min="0" max="100" value="50"><output class="slider-value" for="sl-lg" aria-live="off">50%</output></div><span class="caption">lg</span></div>
|
|
1102
1126
|
</div></div>
|
|
1103
1127
|
</section>
|
|
1104
1128
|
|
|
@@ -1110,6 +1134,7 @@
|
|
|
1110
1134
|
<section class="component" id="progress" data-layer="Core" aria-labelledby="progress-title">
|
|
1111
1135
|
<header><h3 id="progress-title">Progress</h3><span class="badge">Core</span><a href="components.md#progress">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="progress" aria-label="Copy link to Progress" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1112
1136
|
<p class="purpose">Show how far a task has got.</p>
|
|
1137
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for a task with a known end, such as an import, and name it for the task.</dd><dt>Don’t</dt><dd>A progress bar for a measured value, such as disk usage or a rating. It shows a task moving to its end; use text or a score.</dd></dl>
|
|
1113
1138
|
<div class="row"><h4>Values</h4><div class="states">
|
|
1114
1139
|
<div class="state"><div class="progress" role="progressbar" aria-label="Import, empty" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><span style="transform:translateX(-100%)"></span></div><span class="caption">0%</span></div>
|
|
1115
1140
|
<div class="state"><div class="progress" role="progressbar" aria-label="Import" aria-valuemin="0" aria-valuemax="100" aria-valuenow="40"><span style="transform:translateX(-60%)"></span></div><span class="caption">40%</span></div>
|
|
@@ -1120,6 +1145,7 @@
|
|
|
1120
1145
|
<section class="component" id="score" data-layer="Core" aria-labelledby="score-title">
|
|
1121
1146
|
<header><h3 id="score-title">Score</h3><span class="badge">Core</span><a href="components.md#score">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="score" aria-label="Copy link to Score" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1122
1147
|
<p class="purpose">Show a value out of a maximum.</p>
|
|
1148
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for a value out of a fixed maximum, such as 4/5, and keep one maximum across a list so the rows compare.</dd><dt>Don’t</dt><dd>A score for a percentage or an open-ended count. Write the number as text.</dd></dl>
|
|
1123
1149
|
<div class="row"><h4>Values</h4><div class="states">
|
|
1124
1150
|
<div class="state"><span class="score"><span class="pips" aria-hidden="true"><i class="on"></i><i class="on"></i><i class="on"></i><i></i><i></i></span><b>3<span>/5</span></b></span><span class="caption">3 of 5</span></div>
|
|
1125
1151
|
<div class="state"><span class="score"><span class="pips" aria-hidden="true"><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i></span><b>5<span>/5</span></b></span><span class="caption">5 of 5</span></div>
|
|
@@ -1129,6 +1155,7 @@
|
|
|
1129
1155
|
<section class="component" id="badge" data-layer="Core" aria-labelledby="badge-title">
|
|
1130
1156
|
<header><h3 id="badge-title">Badge</h3><span class="badge">Core</span><a href="components.md#badge">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="badge" aria-label="Copy link to Badge" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1131
1157
|
<p class="purpose">A short status label.</p>
|
|
1158
|
+
<dl class="guidance"><dt>Do</dt><dd>A one- or two-word status or category on an item, such as “Healthy” or “Beta”, with a status tone only when it is a status.</dd><dt>Don’t</dt><dd>A badge that repeats the title, or one on every row with the same value. Badge the exceptions.</dd></dl>
|
|
1132
1159
|
<div class="row"><h4>Tones</h4><div class="states">
|
|
1133
1160
|
<div class="state"><span class="badge">No data</span><span class="caption">Neutral</span></div>
|
|
1134
1161
|
<div class="state"><span class="badge success">Healthy</span><span class="caption">Success</span></div>
|
|
@@ -1141,6 +1168,7 @@
|
|
|
1141
1168
|
<section class="component" id="alert" data-layer="Core" aria-labelledby="alert-title">
|
|
1142
1169
|
<header><h3 id="alert-title">Alert</h3><span class="badge">Core</span><a href="components.md#alert">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="alert" aria-label="Copy link to Alert" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1143
1170
|
<p class="purpose">A real caveat or status message in the page.</p>
|
|
1171
|
+
<dl class="guidance"><dt>Do</dt><dd>Use an alert for a caveat or status message the reader needs before acting. When action is needed, name it, such as “Reconnect the source to resume sync”.</dd><dt>Don’t</dt><dd>An alert for decoration or routine emphasis. A short status label is a badge; explanations and recovery instructions stay in an alert.</dd></dl>
|
|
1144
1172
|
<div class="row"><h4>Tones</h4><div class="states">
|
|
1145
1173
|
<div class="state wide"><div class="alert"><svg class="icon" aria-hidden="true"><use href="#i-help"/></svg><p>Values are sampled every 5 minutes.</p></div><span class="caption">Neutral</span></div>
|
|
1146
1174
|
<div class="state wide"><div class="alert success"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg><p>The monitor recovered at 14:20.</p></div><span class="caption">Success</span></div>
|
|
@@ -1158,6 +1186,7 @@
|
|
|
1158
1186
|
<section class="component" id="surface-and-card" data-layer="Core" aria-labelledby="card-title">
|
|
1159
1187
|
<header><h3 id="card-title">Surface and card</h3><span class="badge">Core</span><a href="components.md#surface-and-card">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="surface-and-card" aria-label="Copy link to Surface and card" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1160
1188
|
<p class="purpose">Panels and cards for parallel, comparable content.</p>
|
|
1189
|
+
<dl class="guidance"><dt>Do</dt><dd>Use cards for a few parallel, self-contained items that a reader compares, such as plans or projects.</dd><dt>Don’t</dt><dd>A panel inside a panel, or cards around ordinary prose.</dd></dl>
|
|
1161
1190
|
<div class="row"><h4>Card</h4><div class="states">
|
|
1162
1191
|
<div class="state wide"><article class="card" aria-labelledby="card-sample-title"><div class="card-head"><h4 id="card-sample-title">API p95 latency</h4><span class="badge danger">Alerting</span></div><div class="card-body">412 ms against a 300 ms threshold for 10 minutes.</div><div class="card-foot"><span>checkout-api</span><span>Updated 2 minutes ago</span></div></article><span class="caption">Header, body, and footer</span></div>
|
|
1163
1192
|
</div></div>
|
|
@@ -1170,12 +1199,14 @@
|
|
|
1170
1199
|
<section class="component" id="figure" data-layer="Core" aria-labelledby="figure-title">
|
|
1171
1200
|
<header><h3 id="figure-title">Figure</h3><span class="badge">Core</span><a href="components.md#figure">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="figure" aria-label="Copy link to Figure" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1172
1201
|
<p class="purpose">An image or diagram with a caption.</p>
|
|
1202
|
+
<dl class="guidance"><dt>Do</dt><dd>Caption every figure with what it shows. When the prose refers to one figure by number, number them all.</dd><dt>Don’t</dt><dd>A screenshot of code or of a component. Show code as text, so the reader can copy it, and a component live.</dd></dl>
|
|
1173
1203
|
<figure class="figure"><div class="figure-plate"><div class="cluster" style="display:flex;gap:var(--space-2);flex-wrap:wrap"><span class="badge success">Healthy</span><span class="badge warning">Warning</span><span class="badge danger">Alerting</span></div></div><figcaption><b>Figure 1.</b> A well with its caption below.</figcaption></figure>
|
|
1174
1204
|
</section>
|
|
1175
1205
|
|
|
1176
1206
|
<section class="component" id="dialog" data-layer="Core" aria-labelledby="dialog-title">
|
|
1177
1207
|
<header><h3 id="dialog-title">Dialog</h3><span class="badge">Core</span><a href="components.md#dialog">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="dialog" aria-label="Copy link to Dialog" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1178
1208
|
<p class="purpose">A modal task that needs an answer before the page continues.</p>
|
|
1209
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a dialog for a short task the reader must finish or cancel before the page continues, such as confirming a deletion. Title it with that task.</dd><dt>Don’t</dt><dd>A dialog that opens without the reader asking, such as on page load, or one that holds a long form. A long form gets its own page.</dd></dl>
|
|
1179
1210
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1180
1211
|
<div class="state"><button class="btn secondary" type="button" data-open="live-dialog">Open dialog</button><span class="caption">Opens a native modal dialog</span></div>
|
|
1181
1212
|
</div></div>
|
|
@@ -1187,6 +1218,7 @@
|
|
|
1187
1218
|
<section class="component" id="drawer" data-layer="Core" aria-labelledby="drawer-title">
|
|
1188
1219
|
<header><h3 id="drawer-title">Drawer</h3><span class="badge">Core</span><a href="components.md#drawer">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="drawer" aria-label="Copy link to Drawer" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1189
1220
|
<p class="purpose">A side panel, such as phone navigation.</p>
|
|
1221
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a drawer for navigation or supporting detail that slides in from the side, such as the phone menu, and open it from a named button.</dd><dt>Don’t</dt><dd>The page’s main task inside a drawer. The drawer holds navigation or detail; the task stays on the page.</dd></dl>
|
|
1190
1222
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1191
1223
|
<div class="state"><button class="btn secondary menu-glyph" type="button" data-size="lg" data-open="live-drawer">Contents</button><span class="caption">Rest, live: a page’s contents trigger opens a side drawer</span></div>
|
|
1192
1224
|
</div></div>
|
|
@@ -1203,6 +1235,7 @@
|
|
|
1203
1235
|
<section class="component" id="navigation-list" data-layer="Core" data-states="hover selected focus" aria-labelledby="nav-title">
|
|
1204
1236
|
<header><h3 id="nav-title">Navigation list</h3><span class="badge">Core</span><a href="components.md#navigation-list">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="navigation-list" aria-label="Copy link to Navigation list" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1205
1237
|
<p class="purpose">Rows of links with current page and current location.</p>
|
|
1238
|
+
<dl class="guidance"><dt>Do</dt><dd>Label a page link with the destination page’s title, and an in-page link with its destination section’s heading.</dd><dt>Don’t</dt><dd>Actions such as Delete or Sign out in a navigation list. Every row is a link to a place; an action is a button.</dd></dl>
|
|
1206
1239
|
<div class="row"><h4>Rows</h4><div class="states">
|
|
1207
1240
|
<div class="state"><nav class="navlist" aria-label="Sample routes"><span class="group-label">Guides</span><a href="components.html" aria-current="page">Install</a><a href="#navigation-list">Configure</a><a href="#navigation-list">Release</a></nav><span class="caption">Live; Install is the current page</span></div>
|
|
1208
1241
|
<div class="state" inert><nav class="navlist" aria-label="Sample routes, pinned"><a href="#navigation-list" class="is-hover">Hover</a><a href="components.html" aria-current="page" class="is-hover">Current page, hover</a><a href="#navigation-list" aria-current="location">Current location</a><a href="#navigation-list" class="is-focus">Focus visible</a></nav><span class="caption">Hover, current page with hover, current location, and focus visible</span></div>
|
|
@@ -1221,6 +1254,7 @@
|
|
|
1221
1254
|
<section class="component" id="section-rail" data-layer="Core" aria-labelledby="section-rail-title">
|
|
1222
1255
|
<header><h3 id="section-rail-title">Section rail</h3><span class="badge">Core</span><a href="components.md#section-rail">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="section-rail" aria-label="Copy link to Section rail" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1223
1256
|
<p class="purpose">A sticky list of sections that moves into a drawer on phones.</p>
|
|
1257
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a rail for the sections of a long page, or for a site’s pages. A site’s pages may take a navigation strip of 6 links or fewer instead.</dd><dt>Don’t</dt><dd>A rail beside a strip or a contents list that holds the same links. Each level has one list.</dd></dl>
|
|
1224
1258
|
<div class="row"><h4>Desktop rail</h4><div class="states">
|
|
1225
1259
|
<div class="state"><div class="rail-specimen"><div class="find"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg><input class="input" type="search" aria-label="Find a component, specimen" placeholder="Find a component"><kbd class="key" aria-hidden="true">/</kbd></div>
|
|
1226
1260
|
<nav class="navlist" aria-label="Rail specimen"><span class="group-label">Inputs</span><a href="#section-rail">Select</a><a href="#section-rail" aria-current="location">Slider</a><a href="#section-rail">Field wrapper</a></nav></div><span class="caption">Live; Slider is the current section</span></div>
|
|
@@ -1234,6 +1268,7 @@
|
|
|
1234
1268
|
<section class="component" id="find-field" data-layer="Core" aria-labelledby="find-field-title">
|
|
1235
1269
|
<header><h3 id="find-field-title">Find field</h3><span class="badge">Core</span><a href="components.md#find-field">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="find-field" aria-label="Copy link to Find field" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1236
1270
|
<p class="purpose">Filter a navigation list as you type.</p>
|
|
1271
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it at the top of a long navigation list, such as a section rail, to filter its rows by name or purpose.</dd><dt>Don’t</dt><dd>A find field used as a site-wide search. It matches only the rows of the list it filters.</dd></dl>
|
|
1237
1272
|
<div class="row"><h4>States</h4><div class="states">
|
|
1238
1273
|
<div class="state"><div class="find"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg><input class="input" type="search" aria-label="Find a component, rest specimen" placeholder="Find a component"><kbd class="key" aria-hidden="true">/</kbd></div><span class="caption">Rest, live; the key hint shows the shortcut</span></div>
|
|
1239
1274
|
<div class="state" inert><div class="find"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg><input class="input is-focus" type="search" aria-label="Find a component, focus specimen" value="tog"></div><span class="find-count">3 matches</span><span class="caption">Focus visible with a query; the hint hides</span></div>
|
|
@@ -1245,6 +1280,7 @@
|
|
|
1245
1280
|
<section class="component" id="breadcrumbs" data-layer="Core" aria-labelledby="breadcrumbs-title">
|
|
1246
1281
|
<header><h3 id="breadcrumbs-title">Breadcrumbs</h3><span class="badge">Core</span><a href="components.md#breadcrumbs">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="breadcrumbs" aria-label="Copy link to Breadcrumbs" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1247
1282
|
<p class="purpose">The path from the site to this page.</p>
|
|
1283
|
+
<dl class="guidance"><dt>Do</dt><dd>Use breadcrumbs only at depth 3 or more, or on a page outside its site’s shell.</dd><dt>Don’t</dt><dd>A trail whose only crumb repeats the page’s h1.</dd></dl>
|
|
1248
1284
|
<div class="row"><h4>Trail</h4><div class="states">
|
|
1249
1285
|
<div class="state"><nav class="crumbs" aria-label="Breadcrumb, specimen"><ol><li><a href="#breadcrumbs">Design system</a></li><li><a href="#breadcrumbs">Components</a></li><li><span aria-current="page">Navigation</span></li></ol></nav><span class="caption">Rest, live; the current page is text</span></div>
|
|
1250
1286
|
<div class="state" inert><nav class="crumbs" aria-label="Breadcrumb, pinned"><ol><li><a href="#breadcrumbs" class="is-hover">Design system</a></li><li><a href="#breadcrumbs" class="is-focus">Components</a></li><li><span aria-current="page">Navigation</span></li></ol></nav><span class="caption">Hover on Design system, focus visible on Components</span></div>
|
|
@@ -1255,6 +1291,7 @@
|
|
|
1255
1291
|
<section class="component" id="pager" data-layer="Core" aria-labelledby="pager-title">
|
|
1256
1292
|
<header><h3 id="pager-title">Pager</h3><span class="badge">Core</span><a href="components.md#pager">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="pager" aria-label="Copy link to Pager" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1257
1293
|
<p class="purpose">Previous and next pages in a sequence.</p>
|
|
1294
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a pager for pages a reader goes through in order, such as a guide’s chapters or the skills in one group.</dd><dt>Don’t</dt><dd>A pager on pages with no reading order, or one per section on a page with a section rail.</dd></dl>
|
|
1258
1295
|
<div class="row"><h4>Sequence</h4><div class="states">
|
|
1259
1296
|
<div class="state wide"><nav class="pager" aria-label="Pages, specimen"><a href="#pager" rel="prev"><span class="pager-dir"><svg class="icon" aria-hidden="true"><use href="#i-arrow-left"/></svg>Previous</span><span class="pager-title">Foundations</span></a><a href="#pager" rel="next"><span class="pager-dir">Next<svg class="icon" aria-hidden="true"><use href="#i-arrow-right"/></svg></span><span class="pager-title">Application example</span></a></nav><span class="caption">Rest, live; previous and next</span></div>
|
|
1260
1297
|
<div class="state wide" inert><nav class="pager" aria-label="Pages, pinned"><a href="#pager" rel="next" class="is-hover"><span class="pager-dir">Next<svg class="icon" aria-hidden="true"><use href="#i-arrow-right"/></svg></span><span class="pager-title">Components</span></a></nav><span class="caption">First page: next only, still at the end; hover</span></div>
|
|
@@ -1264,6 +1301,7 @@
|
|
|
1264
1301
|
<section class="component" id="tabs" data-layer="Core" data-states="hover selected focus" aria-labelledby="tabs-title">
|
|
1265
1302
|
<header><h3 id="tabs-title">Tabs</h3><span class="badge">Core</span><a href="components.md#tabs">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="tabs" aria-label="Copy link to Tabs" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1266
1303
|
<p class="purpose">Switch panels about one object, without leaving the page.</p>
|
|
1304
|
+
<dl class="guidance"><dt>Do</dt><dd>Use tabs for panels about one object, such as a monitor’s Overview and History, when the URL does not change.</dd><dt>Don’t</dt><dd>Links with <code>role="tab"</code>, or one set that mixes pages and panels. Pages take a navigation strip.</dd></dl>
|
|
1267
1305
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1268
1306
|
<div class="state wide" data-tabs data-label="Monitor">
|
|
1269
1307
|
<!-- Without JavaScript every panel shows under its heading; the script builds the tab list. -->
|
|
@@ -1282,6 +1320,7 @@
|
|
|
1282
1320
|
<section class="component" id="skip-link" data-layer="Core" aria-labelledby="skip-link-title">
|
|
1283
1321
|
<header><h3 id="skip-link-title">Skip link</h3><span class="badge">Core</span><a href="components.md#skip-link">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="skip-link" aria-label="Copy link to Skip link" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1284
1322
|
<p class="purpose">Jump past the header to the content.</p>
|
|
1323
|
+
<dl class="guidance"><dt>Do</dt><dd>A “Skip to content” link on every page with a header or rail before <code>main</code>; the first Tab shows it.</dd><dt>Don’t</dt><dd>Hiding it with <code>display: none</code>, which also takes it out of the Tab order.</dd></dl>
|
|
1285
1324
|
<div class="row"><h4>Focused</h4><div class="states">
|
|
1286
1325
|
<div class="state" inert><a class="skip is-focus" href="#main">Skip to content</a><span class="caption">Focus visible; hidden above the page until focused</span></div>
|
|
1287
1326
|
</div></div>
|
|
@@ -1290,6 +1329,7 @@
|
|
|
1290
1329
|
<section class="component" id="keyboard-key" data-layer="Core" aria-labelledby="keyboard-key-title">
|
|
1291
1330
|
<header><h3 id="keyboard-key-title">Keyboard key</h3><span class="badge">Core</span><a href="components.md#keyboard-key">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="keyboard-key" aria-label="Copy link to Keyboard key" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1292
1331
|
<p class="purpose">Show a key or shortcut in text.</p>
|
|
1332
|
+
<dl class="guidance"><dt>Do</dt><dd>A key or shortcut in running text or shortcut docs, one key per <code><kbd></code>.</dd><dt>Don’t</dt><dd>A key style for code or button names. Code takes <code><code></code>; a button’s name is plain text.</dd></dl>
|
|
1293
1333
|
<div class="row"><h4>Keys</h4><div class="states">
|
|
1294
1334
|
<div class="state"><p class="note">Press <kbd class="key">/</kbd> to find, <kbd class="key">Esc</kbd> to clear, and <kbd class="key">Enter</kbd> to go to the first match.</p><span class="caption">Rest, in running text</span></div>
|
|
1295
1335
|
</div></div>
|
|
@@ -1303,6 +1343,7 @@
|
|
|
1303
1343
|
<section class="component" id="code-block" data-layer="Core" aria-labelledby="code-title">
|
|
1304
1344
|
<header><h3 id="code-title">Code block</h3><span class="badge">Core</span><a href="components.md#code-block">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="code-block" aria-label="Copy link to Code block" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1305
1345
|
<p class="purpose">Source code with an optional header and Copy, and a live example above it.</p>
|
|
1346
|
+
<dl class="guidance"><dt>Do</dt><dd>Use a code block for source with no live result. When the reader should see the result too, use the variant with a live example.</dd><dt>Don’t</dt><dd>The same language label on every block of a page. Put useful setup context above the block instead.</dd></dl>
|
|
1306
1347
|
<div class="row"><h4>Source well</h4><div class="states">
|
|
1307
1348
|
<div class="state wide"><div class="code"><div class="code-head"><b>monitor.ts</b><span class="lang">TypeScript</span><button class="quiet-action copy" type="button" data-copy="code-src"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg>Copy</button></div><pre tabindex="0" role="region" aria-label="monitor.ts"><code id="code-src"><span class="line"><span class="ln">1</span><span><span class="k">const</span> threshold = <span class="n">300</span> <span class="c">// ms at p95</span></span></span><span class="line"><span class="ln">2</span><span><span class="k">export const</span> name = <span class="s">'API p95 latency'</span></span></span></code></pre></div><span class="caption">Header, line numbers, and Copy, live</span></div>
|
|
1308
1349
|
<div class="state wide" inert><div class="code compact"><pre><code><span class="line"><span>import { threshold } from './monitor'</span></span></code></pre><button class="quiet-action copy is-focus" type="button" aria-label="Copy import"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Compact, with focus visible on Copy</span></div>
|
|
@@ -1321,6 +1362,7 @@
|
|
|
1321
1362
|
<section class="component" id="command-plate" data-layer="Identity" aria-labelledby="cmd-title">
|
|
1322
1363
|
<header><h3 id="cmd-title">Command plate</h3><span class="badge">Identity</span><a href="components.md#command-plate">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="command-plate" aria-label="Copy link to Command plate" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1323
1364
|
<p class="purpose">A shell command on a hue-tinted plate.</p>
|
|
1365
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for a shell command the reader runs, one command per line.</dd><dt>Don’t</dt><dd>A <code>$</code> typed into the command. CSS draws the prompt; a typed one is copied with the command.</dd></dl>
|
|
1324
1366
|
<div class="row"><h4>Commands</h4><div class="states">
|
|
1325
1367
|
<div class="state wide"><div class="code command compact"><pre tabindex="0" role="region" aria-label="Install command"><code id="cmd-install"><span class="line"><span>brew install filipgutica/tap/filip-stack</span></span></code></pre><button class="quiet-action copy" type="button" data-copy="cmd-install" aria-label="Copy install command"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Compact, live; the <code>$</code> is drawn by CSS</span></div>
|
|
1326
1368
|
<div class="state wide"><div class="code command"><div class="code-head"><b>Set up</b><button class="quiet-action copy" type="button" data-copy="cmd-setup"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg>Copy</button></div><pre tabindex="0" role="region" aria-label="Set up commands"><code id="cmd-setup"><span class="line"><span>pnpm install --frozen-lockfile</span></span><span class="line"><span>pnpm check</span></span></code></pre></div><span class="caption">With a header, two lines</span></div>
|
|
@@ -1331,6 +1373,7 @@
|
|
|
1331
1373
|
<section class="component" id="terminal-capture" data-layer="Identity" aria-labelledby="capture-title">
|
|
1332
1374
|
<header><h3 id="capture-title">Terminal capture</h3><span class="badge">Identity</span><a href="components.md#terminal-capture">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="terminal-capture" aria-label="Copy link to Terminal capture" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1333
1375
|
<p class="purpose">A recorded terminal screen with a status line.</p>
|
|
1376
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it to show what a command prints, one tab per capture, with the path and branch in the status line.</dd><dt>Don’t</dt><dd>A capture for a screenshot of a graphical app. Use a figure.</dd></dl>
|
|
1334
1377
|
<div class="capture" data-tabs data-label="Captures">
|
|
1335
1378
|
<!-- The script adds the tab list and the Full size button; without it every capture is listed. -->
|
|
1336
1379
|
<div class="capture-head" hidden><button class="quiet-action full" type="button" data-full-size><svg class="icon" aria-hidden="true"><use href="#i-expand"/></svg>Full size</button></div>
|
|
@@ -1343,6 +1386,7 @@
|
|
|
1343
1386
|
<section class="component" id="site-header" data-layer="Identity" aria-labelledby="header-title">
|
|
1344
1387
|
<header><h3 id="header-title">Site header</h3><span class="badge">Identity</span><a href="components.md#site-header">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="site-header" aria-label="Copy link to Site header" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1345
1388
|
<p class="purpose">The ~/name header with project switcher and appearance.</p>
|
|
1389
|
+
<dl class="guidance"><dt>Do</dt><dd>Keep the same header and site links, six at most and in one order, on every page of a personal product site.</dd><dt>Don’t</dt><dd>The site header on an application screen. An application keeps its own navigation.</dd></dl>
|
|
1346
1390
|
<div class="row"><h4>Closed</h4><div class="states">
|
|
1347
1391
|
<div class="state wide"><div class="site-header">
|
|
1348
1392
|
<details class="projects"><summary class="quiet-action" aria-label="Project: filip-stack"><span>filip-stack</span><svg class="icon" aria-hidden="true"><use href="#i-chevron-down"/></svg></summary><nav class="navlist" aria-label="Projects"><a href="#site-header">annoterm</a><a href="components.html" aria-current="page">filip-stack</a><a href="#site-header">ui</a></nav></details>
|
|
@@ -1359,6 +1403,7 @@
|
|
|
1359
1403
|
<section class="component" id="page-type-and-helpers" data-layer="Identity" aria-labelledby="page-type-title">
|
|
1360
1404
|
<header><h3 id="page-type-title">Page type and helpers</h3><span class="badge">Identity</span><a href="components.md#page-type-and-helpers">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="page-type-and-helpers" aria-label="Copy link to Page type and helpers" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1361
1405
|
<p class="purpose">Mono headings, steps, definitions, facts, and the footer.</p>
|
|
1406
|
+
<dl class="guidance"><dt>Do</dt><dd>Use steps for a sequence the reader follows in order, definitions for terms with short meanings, and facts for short labels and values.</dd><dt>Don’t</dt><dd>The <code>##</code> mark on an application screen, or on h3 and lower.</dd></dl>
|
|
1362
1407
|
<div class="row"><h4>Headings</h4><div class="states">
|
|
1363
1408
|
<div class="state wide"><p class="folio-display">~/annoterm</p><span class="caption">Display title, mono</span></div>
|
|
1364
1409
|
<div class="state wide"><p class="folio-h2">Install</p><span class="caption">Section heading with its <code>##</code> mark</span></div>
|
|
@@ -1490,7 +1535,12 @@
|
|
|
1490
1535
|
document.querySelectorAll('[data-live-toggle]').forEach((t) => t.addEventListener('click', () => t.setAttribute('aria-pressed', String(t.getAttribute('aria-pressed') !== 'true'))));
|
|
1491
1536
|
|
|
1492
1537
|
// Slider fill follows the value.
|
|
1493
|
-
|
|
1538
|
+
// A live slider moves its range fill and its visible value together, from the keyboard or the pointer.
|
|
1539
|
+
document.querySelectorAll('[data-live-range]').forEach((r) => r.addEventListener('input', () => {
|
|
1540
|
+
r.style.setProperty('--value', `${r.value}%`);
|
|
1541
|
+
const value = document.querySelector(`output[for="${r.id}"]`);
|
|
1542
|
+
if (value) value.value = `${r.value}%`;
|
|
1543
|
+
}));
|
|
1494
1544
|
|
|
1495
1545
|
// A list that scrolls sideways names its clipped ends in data-clip, so CSS fades only those edges.
|
|
1496
1546
|
const trackClip = (list) => {
|