@filipgutica/design-system 1.0.46 → 1.0.47
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/README.md +1 -1
- package/language/DESIGN.md +4 -4
- package/language/components.html +91 -17
- package/language/components.md +67 -9
- package/language/conversation.css +122 -17
- package/language/decisions.md +2 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ npm install @filipgutica/design-system
|
|
|
35
35
|
| --- | --- |
|
|
36
36
|
| `@filipgutica/design-system/tokens.css` | The tokens. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. `data-theme="light"` or `"dark"` on any element below `<html>`, or a `.dark` class on `<html>` or below it, themes that subtree: every token that changes with the mode resolves again inside it. The subtree takes its mode's text colour; on an element with both, `data-theme="light"` wins over `.dark`. A theme written by hand sets its hue pair once, on `:root`: `tokens.css` switches `--color-accent` between `--color-project` and `--color-project-dark` by mode, so the rule works after `tokens.css`, in its cascade layer or a later one. A theme that also sets neutrals or text on the hue repeats those light values on `:root [data-theme="light"]` and the dark ones on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so they hold in a subtree too; a theme file from the token build does this already. |
|
|
37
37
|
| `@filipgutica/design-system/ui-sdk.css` | Experimental: draws [ui-sdk](https://ui-sdk.dev)'s headless Button, Field, Input, Textarea, Checkbox, and Radio as the component specs do, checked against `@ui-sdk/*` 0.1.0-beta.5. Load it after `tokens.css`, without ui-sdk's `web.css`; [DESIGN.md](language/DESIGN.md#ui-sdk-experimental) gives the layer order and the supported components. |
|
|
38
|
-
| `@filipgutica/design-system/language/conversation.css` | The conversation components (message row and group, hover toolbar, thread panel, composer, tool-call disclosure, and mention) as [components.md](language/components.md#message-row) specifies them, for any framework; the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are; the badge and alert they hold come from `feedback.css`, and the button, quiet action, overflow menu, and field error from their own components. |
|
|
38
|
+
| `@filipgutica/design-system/language/conversation.css` | The conversation components (message row and group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, and mention), the list row and app bar around them, and the quiet action as [components.md](language/components.md#message-row) specifies them, for any framework; the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are; the badge and alert they hold come from `feedback.css`, and the button, quiet action, overflow menu, and field error from their own components. |
|
|
39
39
|
| `@filipgutica/design-system/language/feedback.css` | The [badge](language/components.md#badge) (neutral and the success, warning, danger, and info tones) and the [alert](language/components.md#alert), for any framework; ui-sdk has no badge or alert part, and the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are. |
|
|
40
40
|
| `@filipgutica/design-system/themes/*.css` | A theme's inputs (hue pair, and any fonts, base radius, or neutrals): `graphite-indigo` (the default, already in `tokens.css`); the family sites' hues `lagoon` (annoterm), `copper` (devps), `iris` (filip-stack), `lapis` (Workbench), and `fern` (wtree); or the open palettes `catppuccin` and `github`. Load one after `tokens.css`, in its cascade layer or a later one, on `:root`. |
|
|
41
41
|
| `@filipgutica/design-system/themes/*.tokens.json` | Each theme's source as a W3C Design Tokens file (2025.10), for design-token tools such as Style Dictionary and Tokens Studio. |
|
package/language/DESIGN.md
CHANGED
|
@@ -45,8 +45,8 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
45
45
|
- `ui-sdk.css`: experimental. Draws ui-sdk's headless parts as the component specs do; see [ui-sdk](#ui-sdk-experimental).
|
|
46
46
|
- `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.
|
|
47
47
|
- `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
|
|
48
|
-
- `conversation.css`: the conversation components' styles (message row and group, hover toolbar, thread panel, composer, tool-call disclosure, and mention). `components.html` links it, so it is their one source. Load it after `tokens.css`, unlayered, as the catalogue does; the parts these components hold, such as the badge and the button, come from their own components.
|
|
49
|
-
- `feedback.css`: the badge's and the alert's styles, with their status tones. It and `conversation.css` size and stroke the icons they hold (the alert's icon
|
|
48
|
+
- `conversation.css`: the conversation components' styles (message row and group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, and mention), the list row and app bar of the application screen around them, and the quiet action's shared recipe. `components.html` links it, so it is their one source. Load it after `tokens.css`, unlayered, as the catalogue does; the parts these components hold, such as the badge and the button, come from their own components.
|
|
49
|
+
- `feedback.css`: the badge's and the alert's styles, with their status tones. It and `conversation.css` size and stroke the icons they hold (the alert's icon, the resolution note's check, and the app bar's icons), so a page supplies only the SVG sprite, not an icon class. `components.html` links it, so it is their one source; ui-sdk has no badge or alert part. Load it after `tokens.css`, unlayered.
|
|
50
50
|
- `decisions.md`: the choices behind the components, and the options they replaced.
|
|
51
51
|
- `reference.html`: an application example, and a Foundations catalogue (`#foundations`) of every token: type, color with contrast, spacing, shape, borders, elevation, focus, and motion.
|
|
52
52
|
- `docs.html`: a balanced documentation shell and compact setup command, with a one-page site's "On this page" rail.
|
|
@@ -140,8 +140,8 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
140
140
|
| Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, the in-page location pip, and the icon-only segmented track |
|
|
141
141
|
| A place, or a row you pick | 8px | `--radius-inline` | Navigation rows, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, menu rows, and message rows |
|
|
142
142
|
| Something you type in, a control whose label wraps, or a one-line control that is not an action | 8px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
|
|
143
|
-
| Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
|
|
144
|
-
| A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, keyboard keys, and
|
|
143
|
+
| Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, a message's code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
|
|
144
|
+
| A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, a task list's box, an open todo's mark, keyboard keys, mentions, and a message's inline code |
|
|
145
145
|
|
|
146
146
|
- A circle holds one icon and no text. An icon-only button is a box of equal width and height at every size, with `--radius-circle`. `--radius-circle` has the pill's value, 999px, and its own role: no button takes `--radius-pill`, and no action takes `50%`. An icon with no fill at rest is a [quiet action](components.md#quiet-action), an 8px tile.
|
|
147
147
|
- A pill never holds text that can wrap: a status badge is the only pill with text, and it stays on one line. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
|
package/language/components.html
CHANGED
|
@@ -73,11 +73,14 @@
|
|
|
73
73
|
The tint mixes currentColor, so it reads on a light panel and on a dark plate.
|
|
74
74
|
The recipe centres its content, so an icon-only action's SVG sits on the box centre. Use an SVG icon,
|
|
75
75
|
never a text glyph such as ×: a font draws a glyph's ink off its box centre.
|
|
76
|
-
:where keeps the base below each component's own size and layout. */
|
|
76
|
+
:where keeps the base below each component's own size and layout. conversation.css ships the same recipe. */
|
|
77
77
|
:where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
78
78
|
.quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); }
|
|
79
79
|
@media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
|
|
80
80
|
.quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
81
|
+
/* conversation.css ships the quiet action's hover rule and loads after this page's rules, so the pressed pin on a specimen takes
|
|
82
|
+
one more class to stay above it while the pointer is over the specimen, as a real press stays above hover. */
|
|
83
|
+
.state .quiet-action.is-active:where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
81
84
|
.quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
82
85
|
|
|
83
86
|
/* Fields: input, textarea, select */
|
|
@@ -179,7 +182,8 @@
|
|
|
179
182
|
:where(.overflow) > .quiet-action { color: var(--color-muted); }
|
|
180
183
|
/* The More icon is three round dots: zero-length strokes with the icon's round caps. */
|
|
181
184
|
.overflow > .quiet-action .icon { stroke-width: 3; }
|
|
182
|
-
|
|
185
|
+
/* One class, so it outranks the quiet action's zero-specificity base in conversation.css, which loads after this page's rules. */
|
|
186
|
+
:where(.overflow) > .quiet-action:where([aria-expanded="true"]) { background: color-mix(in srgb, currentColor 6%, transparent); }
|
|
183
187
|
.menu-list { position: absolute; z-index: 3; top: 100%; right: 0; display: grid; min-width: 180px; margin-top: var(--space-1); padding: var(--space-1); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); box-shadow: var(--shadow-dialog); }
|
|
184
188
|
.menu-list.is-static { position: static; margin-top: 0; }
|
|
185
189
|
.menu-list.is-above { top: auto; bottom: 100%; margin: 0 0 var(--space-1); }
|
|
@@ -589,7 +593,7 @@
|
|
|
589
593
|
.skip:focus { top: var(--space-4); }
|
|
590
594
|
.skip.is-focus { position: static; outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
591
595
|
/* List selection */
|
|
592
|
-
.rows {
|
|
596
|
+
.rows[role="listbox"] { width: min(100%, 360px); }
|
|
593
597
|
.rows [role="option"] { position: relative; display: flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-inline); font-size: var(--text-sm); }
|
|
594
598
|
/* Dividers are straight lines inset by the row padding, so they never follow a rounded corner.
|
|
595
599
|
A filled row (hovered or selected) hides the divider above it and the one below it. */
|
|
@@ -612,7 +616,13 @@
|
|
|
612
616
|
.msg:is(.is-hover, .is-focus) > .msg-tools { opacity: 1; pointer-events: auto; }
|
|
613
617
|
.msg-tools.is-static { position: static; width: max-content; opacity: 1; }
|
|
614
618
|
.msg-tools .quiet-action.is-focus { outline-offset: calc(var(--focus-width) * -1); }
|
|
615
|
-
.tool > summary.is-hover { background: var(--color-row-hover); color: var(--color-text); }
|
|
619
|
+
:is(.tool, .answered) > summary.is-hover { background: var(--color-row-hover); color: var(--color-text); }
|
|
620
|
+
.answered > summary.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
621
|
+
.rows > li.is-hover { background: var(--color-row-hover); }
|
|
622
|
+
.rows > li.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
623
|
+
/* The app bar's frame: a phone-width screen top. conversation.css hides the bar above tablet width, so the frame shows it. */
|
|
624
|
+
.appbar-demo { width: min(100%, 24rem); overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-bg); }
|
|
625
|
+
.appbar-demo .appbar { display: flex; border-bottom: 0; }
|
|
616
626
|
.composer-box.is-focus { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
617
627
|
.composer-box.is-focus:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
618
628
|
.pane-resize.is-hover { background: color-mix(in srgb, var(--color-accent) 40%, transparent); }
|
|
@@ -629,6 +639,7 @@
|
|
|
629
639
|
.thread-demo > .stream { align-content: start; padding: var(--space-5) var(--space-3); }
|
|
630
640
|
/* Catalogue specimens: a stream leaves room above its first row for the toolbar, and a handle sits on a pane edge. */
|
|
631
641
|
.state > .stream { width: min(100%, 36rem); padding-top: var(--space-4); }
|
|
642
|
+
.state > ul.rows { width: min(100%, 36rem); }
|
|
632
643
|
.state > .composer { width: 22rem; max-width: 100%; }
|
|
633
644
|
.state > .pane-head { width: 24rem; max-width: 100%; }
|
|
634
645
|
.state > .tool { max-width: 30rem; }
|
|
@@ -1136,15 +1147,15 @@
|
|
|
1136
1147
|
</div>
|
|
1137
1148
|
<div class="navlist" role="group" aria-labelledby="rail-data-display">
|
|
1138
1149
|
<span class="group-label" id="rail-data-display">Data display</span>
|
|
1139
|
-
<a href="#description-list" data-terms="description list data display the details of one record as term and value pairs. dl key value details properties">Description list</a><a href="#stat-tile" data-terms="stat tile data display a headline count with its label and context. kpi metric number summary dashboard">Stat tile</a>
|
|
1150
|
+
<a href="#description-list" data-terms="description list data display the details of one record as term and value pairs. dl key value details properties">Description list</a><a href="#stat-tile" data-terms="stat tile data display a headline count with its label and context. kpi metric number summary dashboard">Stat tile</a><a href="#list-row" data-terms="list row data display one line per item in a list to scan, such as todos or work items. todo work item rows ellipsis">List row</a>
|
|
1140
1151
|
</div>
|
|
1141
1152
|
<div class="navlist" role="group" aria-labelledby="rail-navigation">
|
|
1142
1153
|
<span class="group-label" id="rail-navigation">Navigation</span>
|
|
1143
|
-
<a href="#navigation-list" data-terms="navigation list navigation rows of links with current page and current location. nav menu sidebar rail toc contents strip">Navigation list</a><a href="#section-rail" data-terms="section rail navigation a sticky list of sections that moves into a drawer on phones. sidebar on this page toc contents scroll spy">Section rail</a><a href="#find-field" data-terms="find field navigation filter a navigation list as you type. search filter shortcut slash">Find field</a><a href="#breadcrumbs" data-terms="breadcrumbs navigation the path from the site to this page. crumbs hierarchy back path">Breadcrumbs</a><a href="#pager" data-terms="pager navigation previous and next pages in a sequence. pagination prev next sequence">Pager</a><a href="#tabs" data-terms="tabs navigation switch panels about one object, without leaving the page. tablist panels">Tabs</a><a href="#skip-link" data-terms="skip link navigation jump past the header to the content. skip to content a11y bypass">Skip link</a><a href="#keyboard-key" data-terms="keyboard key navigation show a key or shortcut in text. kbd shortcut hotkey">Keyboard key</a>
|
|
1154
|
+
<a href="#navigation-list" data-terms="navigation list navigation rows of links with current page and current location. nav menu sidebar rail toc contents strip">Navigation list</a><a href="#section-rail" data-terms="section rail navigation a sticky list of sections that moves into a drawer on phones. sidebar on this page toc contents scroll spy">Section rail</a><a href="#find-field" data-terms="find field navigation filter a navigation list as you type. search filter shortcut slash">Find field</a><a href="#breadcrumbs" data-terms="breadcrumbs navigation the path from the site to this page. crumbs hierarchy back path">Breadcrumbs</a><a href="#pager" data-terms="pager navigation previous and next pages in a sequence. pagination prev next sequence">Pager</a><a href="#tabs" data-terms="tabs navigation switch panels about one object, without leaving the page. tablist panels">Tabs</a><a href="#skip-link" data-terms="skip link navigation jump past the header to the content. skip to content a11y bypass">Skip link</a><a href="#keyboard-key" data-terms="keyboard key navigation show a key or shortcut in text. kbd shortcut hotkey">Keyboard key</a><a href="#app-bar" data-terms="app bar navigation the view’s name and the menu at tablet width, in place of the sidebar. phone header top bar menu hamburger">App bar</a>
|
|
1144
1155
|
</div>
|
|
1145
1156
|
<div class="navlist" role="group" aria-labelledby="rail-conversation">
|
|
1146
1157
|
<span class="group-label" id="rail-conversation">Conversation</span>
|
|
1147
|
-
<a href="#message-row" data-terms="message row conversation one message: avatar, author, time, and body, with no bubble. chat post comment reply">Message row</a><a href="#message-group" data-terms="message group conversation consecutive messages by one author under one avatar. chat continuation day divider">Message group</a><a href="#hover-toolbar" data-terms="hover toolbar conversation quick actions on a message, shown on hover or focus. message actions reply">Hover toolbar</a><a href="#thread-panel" data-terms="thread panel conversation a resizable side pane with a message and its replies. thread replies side pane split resize">Thread panel</a><a href="#composer" data-terms="composer conversation one growing field with an inline send button. message input chat box send reply">Composer</a><a href="#tool-call-disclosure" data-terms="tool-call disclosure conversation a collapsed one-line summary of tool output or a handoff note. details collapse expand log handoff">Tool-call disclosure</a><a href="#mention" data-terms="mention conversation an inline @name in a message. at name user">Mention</a>
|
|
1158
|
+
<a href="#message-row" data-terms="message row conversation one message: avatar, author, time, and body, with no bubble. chat post comment reply">Message row</a><a href="#message-group" data-terms="message group conversation consecutive messages by one author under one avatar. chat continuation day divider">Message group</a><a href="#message-body" data-terms="message body conversation a message’s markdown, drawn as text: lists, code, quotes, links, and tables. markdown code block table task list">Message body</a><a href="#answer-actions" data-terms="answer actions conversation yes, no, and reply under a question that waits for the reader. needs you quick reply answered">Answer actions</a><a href="#hover-toolbar" data-terms="hover toolbar conversation quick actions on a message, shown on hover or focus. message actions reply">Hover toolbar</a><a href="#thread-panel" data-terms="thread panel conversation a resizable side pane with a message and its replies. thread replies side pane split resize">Thread panel</a><a href="#composer" data-terms="composer conversation one growing field with an inline send button. message input chat box send reply">Composer</a><a href="#tool-call-disclosure" data-terms="tool-call disclosure conversation a collapsed one-line summary of tool output or a handoff note. details collapse expand log handoff">Tool-call disclosure</a><a href="#mention" data-terms="mention conversation an inline @name in a message. at name user">Mention</a>
|
|
1148
1159
|
</div>
|
|
1149
1160
|
<div class="navlist" role="group" aria-labelledby="rail-code">
|
|
1150
1161
|
<span class="group-label" id="rail-code">Code and examples</span>
|
|
@@ -1180,9 +1191,9 @@
|
|
|
1180
1191
|
<div><h3><a href="#group-inputs">Inputs</a></h3><ul><li><a href="#text-input-and-textarea">Text input and textarea</a><span>Type a short value or a longer note.</span></li><li><a href="#select">Select</a><span>Choose from a longer list.</span></li><li><a href="#combobox">Combobox</a><span>Choose one value from a long list by typing to filter it.</span></li><li><a href="#number-field">Number field</a><span>Enter an exact amount, with steps and a unit.</span></li><li><a href="#field-wrapper">Field wrapper</a><span>Label, description, and error text around a field.</span></li><li><a href="#slider">Slider</a><span>Set a value in a range.</span></li></ul></div>
|
|
1181
1192
|
<div><h3><a href="#group-feedback">Feedback and status</a></h3><ul><li><a href="#progress">Progress</a><span>Show how far a task has got.</span></li><li><a href="#score">Score</a><span>Show a value out of a maximum.</span></li><li><a href="#badge">Badge</a><span>A short status label.</span></li><li><a href="#alert">Alert</a><span>A real caveat or status message in the page.</span></li></ul></div>
|
|
1182
1193
|
<div><h3><a href="#group-containers">Containers and overlays</a></h3><ul><li><a href="#surface-and-card">Surface and card</a><span>Panels and cards for parallel, comparable content.</span></li><li><a href="#figure">Figure</a><span>An image or diagram with a caption.</span></li><li><a href="#dialog">Dialog</a><span>A modal task that needs an answer before the page continues.</span></li><li><a href="#drawer">Drawer</a><span>Navigation in a panel from the leading edge, such as phone navigation.</span></li><li><a href="#slideout">Slideout</a><span>A modal panel from an edge for filters and secondary detail.</span></li></ul></div>
|
|
1183
|
-
<div><h3><a href="#group-data-display">Data display</a></h3><ul><li><a href="#description-list">Description list</a><span>The details of one record as term and value pairs.</span></li><li><a href="#stat-tile">Stat tile</a><span>A headline count with its label and context.</span></li></ul></div>
|
|
1184
|
-
<div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li></ul></div>
|
|
1185
|
-
<div><h3><a href="#group-conversation">Conversation</a></h3><ul><li><a href="#message-row">Message row</a><span>One message: avatar, author, time, and body, with no bubble.</span></li><li><a href="#message-group">Message group</a><span>Consecutive messages by one author under one avatar.</span></li><li><a href="#hover-toolbar">Hover toolbar</a><span>Quick actions on a message, shown on hover or focus.</span></li><li><a href="#thread-panel">Thread panel</a><span>A resizable side pane with a message and its replies.</span></li><li><a href="#composer">Composer</a><span>One growing field with an inline send button.</span></li><li><a href="#tool-call-disclosure">Tool-call disclosure</a><span>A collapsed one-line summary of tool output or a handoff note.</span></li><li><a href="#mention">Mention</a><span>An inline @name in a message.</span></li></ul></div>
|
|
1194
|
+
<div><h3><a href="#group-data-display">Data display</a></h3><ul><li><a href="#description-list">Description list</a><span>The details of one record as term and value pairs.</span></li><li><a href="#stat-tile">Stat tile</a><span>A headline count with its label and context.</span></li><li><a href="#list-row">List row</a><span>One line per item in a list to scan, such as todos or work items.</span></li></ul></div>
|
|
1195
|
+
<div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li><li><a href="#app-bar">App bar</a><span>The view’s name and the menu at tablet width, in place of the sidebar.</span></li></ul></div>
|
|
1196
|
+
<div><h3><a href="#group-conversation">Conversation</a></h3><ul><li><a href="#message-row">Message row</a><span>One message: avatar, author, time, and body, with no bubble.</span></li><li><a href="#message-group">Message group</a><span>Consecutive messages by one author under one avatar.</span></li><li><a href="#message-body">Message body</a><span>A message’s Markdown, drawn as text: lists, code, quotes, links, and tables.</span></li><li><a href="#answer-actions">Answer actions</a><span>Yes, No, and Reply under a question that waits for the reader.</span></li><li><a href="#hover-toolbar">Hover toolbar</a><span>Quick actions on a message, shown on hover or focus.</span></li><li><a href="#thread-panel">Thread panel</a><span>A resizable side pane with a message and its replies.</span></li><li><a href="#composer">Composer</a><span>One growing field with an inline send button.</span></li><li><a href="#tool-call-disclosure">Tool-call disclosure</a><span>A collapsed one-line summary of tool output or a handoff note.</span></li><li><a href="#mention">Mention</a><span>An inline @name in a message.</span></li></ul></div>
|
|
1186
1197
|
<div><h3><a href="#group-code">Code and examples</a></h3><ul><li><a href="#code-block">Code block</a><span>Source code with an optional header and Copy, and a live example above it.</span></li></ul></div>
|
|
1187
1198
|
<div><h3><a href="#group-identity">Identity: terminal folio</a></h3><ul><li><a href="#command-plate">Command plate</a><span>A shell command in the code well.</span></li><li><a href="#terminal-capture">Terminal capture</a><span>A recorded terminal screen with a status line.</span></li><li><a href="#site-header">Site header</a><span>The ~/name header with project switcher and appearance.</span></li><li><a href="#page-type-and-helpers">Page type and helpers</a><span>Mono headings, steps, definitions, facts, and the footer.</span></li></ul></div>
|
|
1188
1199
|
</div>
|
|
@@ -1668,6 +1679,25 @@
|
|
|
1668
1679
|
</div></div>
|
|
1669
1680
|
</section>
|
|
1670
1681
|
|
|
1682
|
+
<section class="component" id="list-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="list-row-title">
|
|
1683
|
+
<header><h3 id="list-row-title">List row</h3><span class="badge">Core</span><a href="components.md#list-row">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="list-row" aria-label="Copy link to List row" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1684
|
+
<p class="purpose">One line per item in a list to scan, such as todos or work items.</p>
|
|
1685
|
+
<dl class="guidance"><dt>Do</dt><dd>Use list rows where the reader scans many items for one to open, such as todos and work items, and keep the conversation in the item’s thread.</dd><dt>Don’t</dt><dd>A message row, an avatar, or a second line of detail in a list that is for scanning; or more than one control in a row. A selected row with an accent bar.</dd></dl>
|
|
1686
|
+
<div class="row"><h4>Live</h4><div class="states">
|
|
1687
|
+
<div class="state wide"><ul class="rows" aria-label="Todos, live"><li><span class="row-check" aria-hidden="true"></span><span class="row-text">Delete the 7 local thread databases that still hold secret values, and their threads</span><span class="row-meta">Dec 2</span></li><li><span class="row-check" aria-hidden="true"></span><span class="row-text">Close the old todos repo once the board has run for a month</span><span class="row-meta">Nov 30</span></li></ul><p class="row-more"><a href="#list-row">Show 5 resolved</a></p><span class="caption">Todos: the open mark, the text cut short, and the date; resolved items behind a link</span></div>
|
|
1688
|
+
<div class="state wide"><ul class="rows" aria-label="Work items, live"><li><a class="row-text" href="#list-row">Add the sandbox exception in devchat setup</a><span class="row-meta">Blocked on you</span></li><li><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Work items: each row links to its thread</span></div>
|
|
1689
|
+
</div></div>
|
|
1690
|
+
<div class="row"><h4>States</h4><div class="states">
|
|
1691
|
+
<div class="state wide" inert><ul class="rows" aria-label="Work items, hover"><li class="is-hover"><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Hover</span></div>
|
|
1692
|
+
<div class="state wide" inert><ul class="rows" aria-label="Work items, focus"><li class="is-focus"><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Focus visible: the row draws its link’s ring</span></div>
|
|
1693
|
+
<div class="state wide" inert><ul class="rows" aria-label="Work items, selected"><li aria-current="true"><a class="row-text" href="#list-row">Add the sandbox exception in devchat setup</a><span class="row-meta">Blocked on you</span></li></ul><span class="caption">Selected: its thread is open</span></div>
|
|
1694
|
+
</div></div>
|
|
1695
|
+
<div class="row"><h4>Variants</h4><div class="states">
|
|
1696
|
+
<div class="state wide" inert><ul class="rows" aria-label="Guidance records"><li><a class="row-text wrap" href="#list-row">Keep approval prompts rare: run read-only checks inside the sandbox, and give the user the command instead of retrying outside it.</a><span class="row-meta">14 uses · 3 machines</span></li></ul><span class="caption">Wrap: a sentence shows two lines before it ends</span></div>
|
|
1697
|
+
<div class="state wide" inert><ul class="rows" aria-label="Nightly changes"><li><span class="row-text"><strong>Merged</strong> two records about approval prompts into one</span><button class="btn ghost" type="button" data-size="sm" aria-label="Undo the merge">Undo</button></li></ul><span class="caption">With one control at the end</span></div>
|
|
1698
|
+
</div></div>
|
|
1699
|
+
</section>
|
|
1700
|
+
|
|
1671
1701
|
<section class="layer-head" id="group-navigation" aria-labelledby="group-navigation-title">
|
|
1672
1702
|
<h2 id="group-navigation-title">Navigation</h2>
|
|
1673
1703
|
<p>Move between pages and sections, and find things.</p>
|
|
@@ -1780,6 +1810,16 @@
|
|
|
1780
1810
|
</div></div>
|
|
1781
1811
|
</section>
|
|
1782
1812
|
|
|
1813
|
+
<section class="component" id="app-bar" data-layer="Core" aria-labelledby="app-bar-title">
|
|
1814
|
+
<header><h3 id="app-bar-title">App bar</h3><span class="badge">Core</span><a href="components.md#app-bar">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="app-bar" aria-label="Copy link to App bar" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1815
|
+
<p class="purpose">The view’s name and the menu at tablet width, in place of the sidebar.</p>
|
|
1816
|
+
<dl class="guidance"><dt>Do</dt><dd>Name the heading for the view on screen, such as “Needs you” or a channel’s name, so the bar says where the reader is, and keep one action at the end at most.</dd><dt>Don’t</dt><dd>Lists that scroll sideways in place of the drawer, a second row of tabs in the bar, or more than one action after the heading. A docs page uses the navigation list’s labelled phone trigger, not this bar.</dd></dl>
|
|
1817
|
+
<div class="row"><h4>At tablet width</h4><div class="states">
|
|
1818
|
+
<div class="state wide"><div class="appbar-demo"><div class="appbar"><button class="quiet-action" type="button" aria-label="Menu" aria-expanded="false" aria-controls="live-drawer" data-open="live-drawer"><svg class="icon" aria-hidden="true"><use href="#i-menu"/></svg></button><h4>Needs you</h4><button class="quiet-action" type="button" aria-label="Search"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg></button></div></div><span class="caption">Live: Menu opens the navigation drawer; the view’s name and Search follow</span></div>
|
|
1819
|
+
<div class="state wide" inert><div class="appbar-demo"><div class="appbar"><button class="quiet-action" type="button" aria-label="Menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-menu"/></svg></button><h4>design-system-and-a-very-long-channel-name</h4></div></div><span class="caption">A long name ends in an ellipsis; no action after it</span></div>
|
|
1820
|
+
</div></div>
|
|
1821
|
+
</section>
|
|
1822
|
+
|
|
1783
1823
|
<section class="layer-head" id="group-conversation" aria-labelledby="group-conversation-title">
|
|
1784
1824
|
<h2 id="group-conversation-title">Conversation</h2>
|
|
1785
1825
|
<p>Read and answer messages from people and agents.</p>
|
|
@@ -1788,9 +1828,9 @@
|
|
|
1788
1828
|
<section class="component" id="message-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="msg-row-title">
|
|
1789
1829
|
<header><h3 id="msg-row-title">Message row</h3><span class="badge">Core</span><a href="components.md#message-row">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="message-row" aria-label="Copy link to Message row" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1790
1830
|
<p class="purpose">One message: avatar, author, time, and body, with no bubble.</p>
|
|
1791
|
-
<dl class="guidance"><dt>Do</dt><dd>Put the author and the time on every message that starts a group, mark the first message of each agent’s group with the Agent badge, and show
|
|
1831
|
+
<dl class="guidance"><dt>Do</dt><dd>Put the author and the time on every message that starts a group, mark the first message of each agent’s group with the Agent badge where people and agents both post, and show the Blocked on you tag only while the question still blocks the work.</dd><dt>Don’t</dt><dd>A bubble, a card, or a per-message row of buttons; or a status badge on a message. The row stays flat, its actions live in the hover toolbar, and the thread’s state badge lives in the thread panel’s header.</dd></dl>
|
|
1792
1832
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1793
|
-
<div class="state wide"><ol class="stream" aria-label="Messages, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><
|
|
1833
|
+
<div class="state wide"><ol class="stream" aria-label="Messages, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-1"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-1" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 09:52</time></div><div class="msg-body"><p>Thanks, <span class="mention">@desktop-claude</span>. Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-2"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-2" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li></ol><span class="caption">Rest, live: hover a row, or Tab into it, to show its toolbar</span></div>
|
|
1794
1834
|
</div></div>
|
|
1795
1835
|
<div class="row"><h4>States</h4><div class="states">
|
|
1796
1836
|
<div class="state wide" inert><ol class="stream" aria-label="Messages, hover"><li class="msg is-hover"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Hover: the row tint and the toolbar</span></div>
|
|
@@ -1799,8 +1839,9 @@
|
|
|
1799
1839
|
<div class="state wide" inert><ol class="stream" aria-label="Messages, selected with hover"><li class="msg is-hover" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Selected with hover: the selected fill stays</span></div>
|
|
1800
1840
|
</div></div>
|
|
1801
1841
|
<div class="row"><h4>Status</h4><div class="states">
|
|
1802
|
-
<div class="state wide" inert><ol class="stream" aria-label="Messages,
|
|
1803
|
-
<div class="state wide" inert><ol class="stream" aria-label="Messages, blocked on you"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag
|
|
1842
|
+
<div class="state wide" inert><ol class="stream" aria-label="Messages, open question"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells?</p></div></div></li></ol><span class="caption">An open question: no tag, because the Needs you list and the thread’s badge say it waits</span></div>
|
|
1843
|
+
<div class="state wide" inert><ol class="stream" aria-label="Messages, blocked on you"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag">Blocked on you</span><time>Today 09:44</time></div><div class="msg-body"><p>The release needs a new publish token. Work stops here until one is set.</p></div></div></li></ol><span class="caption">Blocked on you: a question that stops the work</span></div>
|
|
1844
|
+
<div class="state wide" inert><ol class="stream" aria-label="Messages, agents only"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Blocked on you</span><time>Today 09:44</time></div><div class="msg-body"><p>The release needs a new publish token. Work stops here until one is set.</p></div></div></li></ol><span class="caption">Where every author but the reader is an agent: no Agent mark; the mono name sets agents apart</span></div>
|
|
1804
1845
|
<div class="state wide" inert><ol class="stream" aria-label="Messages, resolved"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved the thread</span><time>Today 10:02</time></div></div></li></ol><span class="caption">Resolution: the author resolved the thread with the Resolve button, so the row has no body</span></div>
|
|
1805
1846
|
<div class="state wide" inert><ol class="stream" aria-label="Messages, dropped"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag resolved">Dropped the thread</span><time>Today 10:05</time></div><div class="msg-body"><p>Superseded by the table work in PR #34.</p></div></div></li></ol><span class="caption">Resolution: an agent dropped the thread, with its reason as the body</span></div>
|
|
1806
1847
|
<div class="state wide" inert><ol class="stream" aria-label="Resolved threads"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved by Filip</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">3 replies</p></div></div></li></ol><span class="caption">Resolution on a root shown alone, as in a list of resolved threads: the note names who resolved it</span></div>
|
|
@@ -1819,6 +1860,32 @@
|
|
|
1819
1860
|
</div></div>
|
|
1820
1861
|
</section>
|
|
1821
1862
|
|
|
1863
|
+
<section class="component" id="message-body" data-layer="Core" aria-labelledby="message-body-title">
|
|
1864
|
+
<header><h3 id="message-body-title">Message body</h3><span class="badge">Core</span><a href="components.md#message-body">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="message-body" aria-label="Copy link to Message body" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1865
|
+
<p class="purpose">A message’s Markdown, drawn as text: lists, code, quotes, links, and tables.</p>
|
|
1866
|
+
<dl class="guidance"><dt>Do</dt><dd>Render what the author wrote, with its marks gone and the text unchanged, and keep the stored text byte for byte.</dd><dt>Don’t</dt><dd>Raw HTML, images, or a page-size heading in a message; or a code block that scrolls the page sideways.</dd></dl>
|
|
1867
|
+
<div class="row"><h4>Markdown</h4><div class="states">
|
|
1868
|
+
<div class="state wide"><ol class="stream" aria-label="Messages, prose"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 16:58</time></div><div class="msg-body"><p>Can someone pick up the sync timer todo? Ideally:</p><ul><li>run every <strong>5 minutes</strong></li><li>keep the outbox order, as <a href="#message-body">the spec</a> says</li></ul><p>The <code>sync</code> unit owns it.</p></div></div></li></ol><span class="caption">A paragraph, a list with bold text, a link, and inline code</span></div>
|
|
1869
|
+
<div class="state wide"><ol class="stream" aria-label="Messages, blocks"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 18:30</time></div><div class="msg-body"><h3>Sandbox exception</h3><p>Adds this to <code>~/.claude/settings.json</code>, merged with what is there:</p><pre><code>"sandbox": { "excludedCommands": ["devchat *"] }</code></pre><blockquote><p>Without it, agent writes wait for the 15-minute sync.</p></blockquote><ol><li>Read the file</li><li>Merge the entry</li></ol><ul><li><input type="checkbox" checked disabled aria-label="Unit test"> Unit test</li><li><input type="checkbox" disabled aria-label="Device check"> Device check</li></ul></div></div></li></ol><span class="caption">A heading at body size, a code block, a quote, a numbered list, and a task list</span></div>
|
|
1870
|
+
<div class="state wide"><ol class="stream" aria-label="Messages, table"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 18:41</time></div><div class="msg-body"><p>Checks on PR #319:</p><div class="table-scroll" role="region" tabindex="0" aria-label="Checks on PR #319"><table><thead><tr><th scope="col">Check</th><th scope="col">Result</th></tr></thead><tbody><tr><td>Unit tests</td><td>Pass, 214 of 214</td></tr><tr><td>Catalogue at 390px</td><td>Pass, no sideways scroll</td></tr></tbody></table></div><hr><p>Next: the device check.</p></div></div></li></ol><span class="caption">A table in its scrolling region, whose cells wrap, and a rule</span></div>
|
|
1871
|
+
</div></div>
|
|
1872
|
+
</section>
|
|
1873
|
+
|
|
1874
|
+
<section class="component" id="answer-actions" data-layer="Core" data-states="hover focus disabled busy" aria-labelledby="answer-actions-title">
|
|
1875
|
+
<header><h3 id="answer-actions-title">Answer actions</h3><span class="badge">Core</span><a href="components.md#answer-actions">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="answer-actions" aria-label="Copy link to Answer actions" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1876
|
+
<p class="purpose">Yes, No, and Reply under a question that waits for the reader.</p>
|
|
1877
|
+
<dl class="guidance"><dt>Do</dt><dd>Offer Yes and No only on a question that a yes or a no answers, and keep Reply on every question.</dd><dt>Don’t</dt><dd>A primary button among the answers, a third quick answer, or answers on a message that asks nothing. Answers in the hover toolbar, which never shows on touch.</dd></dl>
|
|
1878
|
+
<div class="row"><h4>Live</h4><div class="states">
|
|
1879
|
+
<div class="state wide"><ol class="stream" aria-label="Questions, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Blocked on you</span><time>Today 18:42</time></div><div class="msg-body"><p>Should <code>devchat setup</code> also add the sandbox exception? Without it, agent writes wait for the 15-minute sync.</p><p class="msg-links"><span>filip-stack</span></p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-label="Yes: add the sandbox exception">Yes</button><button class="btn secondary" type="button" data-size="sm" aria-label="No: add the sandbox exception">No</button><a class="reply" href="#answer-actions" aria-label="Reply about the sandbox exception">Reply</a></div></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><p class="msg-links"><span>design-system</span></p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-label="Yes: formatting buttons only after Aa">Yes</button><button class="btn secondary" type="button" data-size="sm" aria-label="No: formatting buttons only after Aa">No</button><a class="reply" href="#answer-actions" aria-label="Reply about the phone composer">Reply</a></div></div></div></li></ol><details class="answered"><summary>You answered 2 · waiting for the agents</summary><ol class="stream" aria-label="You answered"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 11:05</time></div><div class="msg-body"><p>Yes, keep 14 daily exports.</p><p class="msg-links"><span>devchat · waiting for the agent</span></p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Yesterday 21:30</time></div><div class="msg-body"><p>Yes.</p><p class="msg-links"><span>filip-stack · waiting for the agent</span></p></div></div></li></ol></details><span class="caption">Two questions, the first blocking; answered ones fold into one line</span></div>
|
|
1880
|
+
</div></div>
|
|
1881
|
+
<div class="row"><h4>States</h4><div class="states">
|
|
1882
|
+
<div class="state wide" inert><ol class="stream" aria-label="Questions, sending"><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-busy="true" disabled>Yes</button><button class="btn secondary" type="button" data-size="sm" disabled>No</button><a class="reply" href="#answer-actions">Reply</a></div></div></div></li></ol><span class="caption">Sending: Yes is busy and No disabled until the board takes the answer</span></div>
|
|
1883
|
+
<div class="state wide" inert><ol class="stream" aria-label="Questions, offline"><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><div class="answers"><button class="btn secondary" type="button" data-size="sm" disabled>Yes</button><button class="btn secondary" type="button" data-size="sm" disabled>No</button><a class="reply" href="#answer-actions">Reply</a></div></div></div></li></ol><span class="caption">Offline: both disabled; Reply still opens the thread</span></div>
|
|
1884
|
+
<div class="state wide" inert><details class="answered"><summary class="is-hover">You answered 2 · waiting for the agents</summary></details><span class="caption">Answered summary, hover</span></div>
|
|
1885
|
+
<div class="state wide" inert><details class="answered"><summary class="is-focus">You answered 2 · waiting for the agents</summary></details><span class="caption">Answered summary, focus visible</span></div>
|
|
1886
|
+
</div></div>
|
|
1887
|
+
</section>
|
|
1888
|
+
|
|
1822
1889
|
<section class="component" id="hover-toolbar" data-layer="Core" data-states="hover pressed focus" aria-labelledby="msg-tools-title">
|
|
1823
1890
|
<header><h3 id="msg-tools-title">Hover toolbar</h3><span class="badge">Core</span><a href="components.md#hover-toolbar">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="hover-toolbar" aria-label="Copy link to Hover toolbar" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1824
1891
|
<p class="purpose">Quick actions on a message, shown on hover or focus.</p>
|
|
@@ -1841,7 +1908,7 @@
|
|
|
1841
1908
|
<dl class="guidance"><dt>Do</dt><dd>Open a thread beside its channel, so the reader keeps the channel in view, and mark its root message as selected in the list. Keep Resolve beside the state it changes, in the header.</dd><dt>Don’t</dt><dd>A thread in a dialog, or a second pane beside the first. One thread is open at a time. A Reopen button: a reply reopens a resolved thread.</dd></dl>
|
|
1842
1909
|
<p class="note">In an application the pane is an <code><aside></code>; the catalogue uses a section, because a complementary landmark belongs at the top level, outside <code>main</code>. Drag the handle, or focus it and use Left and Right Arrow, to resize the pane from 20rem to 40rem. Resolve the live thread to see its done state; reload the page to open it again.</p>
|
|
1843
1910
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1844
|
-
<div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><span class="badge info">Needs you</span><button class="btn secondary" type="button" data-size="sm" data-resolve>Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><
|
|
1911
|
+
<div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><span class="badge info">Needs you</span><button class="btn secondary" type="button" data-size="sm" data-resolve>Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>PR #31 open, checks pass</b></span></summary><div class="tool-body"><p>PR #31 adds table rendering and its snapshot tests.</p></div></details><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-composer">Reply to desktop-claude</label><div class="composer-box"><textarea id="thread-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-composer-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-composer-hint">Saved to the board. desktop-claude sees it the next time it checks.</p></div><p class="sr-only" role="status"></p><template data-resolution><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved the thread</span><time>Today 10:02</time></div></div></li></template><template data-reply><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 10:06</time></div><div class="msg-body"><p></p></div></div></li></template></section></div><span class="caption">Open beside its channel, live; the root message is selected in the list</span></div>
|
|
1845
1912
|
</div></div>
|
|
1846
1913
|
<div class="row"><h4>Thread state</h4><div class="states">
|
|
1847
1914
|
<div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><button class="btn secondary" type="button" data-size="sm">Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Open: no badge, and Resolve</span></div>
|
|
@@ -2019,9 +2086,11 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
|
|
|
2019
2086
|
<tr data-for="field-wrapper"><th scope="row"><a href="#field-wrapper">Field wrapper</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td></tr>
|
|
2020
2087
|
<tr data-for="slider"><th scope="row"><a href="#slider">Slider</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2021
2088
|
<tr data-for="stat-tile"><th scope="row"><a href="#stat-tile">Stat tile</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2089
|
+
<tr data-for="list-row"><th scope="row"><a href="#list-row">List row</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2022
2090
|
<tr data-for="navigation-list"><th scope="row"><a href="#navigation-list">Navigation list</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2023
2091
|
<tr data-for="tabs"><th scope="row"><a href="#tabs">Tabs</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2024
2092
|
<tr data-for="message-row"><th scope="row"><a href="#message-row">Message row</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2093
|
+
<tr data-for="answer-actions"><th scope="row"><a href="#answer-actions">Answer actions</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2025
2094
|
<tr data-for="hover-toolbar"><th scope="row"><a href="#hover-toolbar">Hover toolbar</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2026
2095
|
<tr data-for="thread-panel"><th scope="row"><a href="#thread-panel">Thread panel</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
|
|
2027
2096
|
<tr data-for="composer"><th scope="row"><a href="#composer">Composer</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td></tr>
|
|
@@ -2439,9 +2508,14 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
|
|
|
2439
2508
|
|
|
2440
2509
|
// Live dialog and drawer: native modal dialogs return focus to the trigger on close. Safari does not focus a
|
|
2441
2510
|
// button on click, so the trigger takes focus first and the dialog has it to return to.
|
|
2511
|
+
// A trigger with aria-expanded, such as the app bar's Menu, says whether its drawer is open.
|
|
2442
2512
|
document.querySelectorAll('[data-open]').forEach((button) => button.addEventListener('click', () => {
|
|
2443
2513
|
button.focus();
|
|
2444
|
-
document.getElementById(button.dataset.open)
|
|
2514
|
+
const dialog = document.getElementById(button.dataset.open);
|
|
2515
|
+
dialog.showModal();
|
|
2516
|
+
if (!button.hasAttribute('aria-expanded')) return;
|
|
2517
|
+
button.setAttribute('aria-expanded', 'true');
|
|
2518
|
+
dialog.addEventListener('close', () => button.setAttribute('aria-expanded', 'false'), { once: true });
|
|
2445
2519
|
}));
|
|
2446
2520
|
// A tap or click on the backdrop, which belongs to the dialog element, lands outside the dialog's box and
|
|
2447
2521
|
// closes it. closedby="any" would do this, but Safari does not support it. Only a press that starts outside
|
|
@@ -2598,7 +2672,7 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
|
|
|
2598
2672
|
// The live thread: its reply list is the one source of both reply counts, the pane's and the channel root's.
|
|
2599
2673
|
// Resolve marks the thread done: the resolving post ends the replies, the question no longer waits, and the hint
|
|
2600
2674
|
// says a reply reopens the thread. Resolve then hides, so focus moves to the pane's heading and a polite live region
|
|
2601
|
-
// says the thread is resolved. A reply answers the question, so Needs you leaves with
|
|
2675
|
+
// says the thread is resolved. A reply answers the question, so Needs you leaves, with a Blocked on you tag if the thread has one, and on a resolved
|
|
2602
2676
|
// thread it reopens it: the Done badge leaves, Resolve comes back, and the hint returns.
|
|
2603
2677
|
document.querySelectorAll('.thread-pane:not([inert] *)').forEach((pane) => {
|
|
2604
2678
|
const button = pane.querySelector('[data-resolve]');
|
package/language/components.md
CHANGED
|
@@ -24,9 +24,9 @@ The sections follow the catalogue's purpose groups, in this order. Each componen
|
|
|
24
24
|
| Inputs | Text input and textarea, select, combobox, number field, field wrapper, slider |
|
|
25
25
|
| Feedback and status | Progress, score, badge, alert |
|
|
26
26
|
| Containers and overlays | Surface and card, figure, dialog, drawer, slideout |
|
|
27
|
-
| Data display | Description list, stat tile |
|
|
28
|
-
| Navigation | Navigation list, section rail, find field, breadcrumbs, pager, tabs, skip link, keyboard key |
|
|
29
|
-
| Conversation | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention |
|
|
27
|
+
| Data display | Description list, stat tile, list row |
|
|
28
|
+
| Navigation | Navigation list, section rail, find field, breadcrumbs, pager, tabs, skip link, keyboard key, app bar |
|
|
29
|
+
| Conversation | Message row, message group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, mention |
|
|
30
30
|
| Code and examples | Code block |
|
|
31
31
|
| Identity | Command plate, terminal capture, site header, page type and helpers |
|
|
32
32
|
|
|
@@ -406,6 +406,19 @@ Layer: Core.
|
|
|
406
406
|
- **Motion.** A linked tile's fill changes over `--duration-fast` with `--ease-out`.
|
|
407
407
|
- **Forced colors.** The fill drops, and the transparent border draws as the system edge, so each tile keeps its outline.
|
|
408
408
|
|
|
409
|
+
## List row
|
|
410
|
+
|
|
411
|
+
Layer: Core.
|
|
412
|
+
|
|
413
|
+
- **Anatomy.** One item in a `<ul class="rows">` that is read by scanning, such as a todo or a work item: one line, at least `--row` tall, with `--space-1` `--space-2` padding, `--radius-inline` corners, `--text-sm`, and the parts `--space-3` apart. In order: an optional mark, the text, then the metadata. The text (`.row-text`) takes the rest of the line in `--color-text` and ends in an ellipsis; a `.wrap` text, for a sentence such as a guidance record, shows two lines before it ends. The metadata (`.row-meta`) is `--text-xs` `--color-muted` with tabular numbers, such as a date or a state ("PR #318"). An open todo leads with its mark (`.row-check`): an empty 16px box with a 1.5px `--color-border` edge and `--radius-mark` corners. A row that opens something makes its text a link; the link stretches over the whole row, so the row is one target. A row may end with one quiet action or button, such as Undo, which sits above the stretched link. A "Show resolved" link (`.row-more`) after the list, not a switch in a toolbar, shows the closed items: `--text-sm`, `--space-1` below the list, and inset `--space-2` to line up with the rows' text; the link is `--control-sm` tall, so it grows to `--control-touch` at tablet width.
|
|
414
|
+
- **States.** Rest; hover, which fills the row `--color-row-hover`; focus-visible on its link, which the row draws as the focus ring, inset; and selected, the row whose thread is open (`aria-current="true"`), with the `--color-nav-current` fill, kept under hover, as the [message row](#message-row) has.
|
|
415
|
+
- **Do.** Use list rows where the reader scans many items for one to open, such as todos and work items, and keep the conversation in the item's thread.
|
|
416
|
+
- **Don't.** A message row, an avatar, or a second line of detail in a list that is for scanning; or more than one control in a row. A selected row with an accent bar.
|
|
417
|
+
- **Keyboard and screen reader.** The `<ul>` is named for what it lists, such as "Todos". Each row's link is one Tab stop and reads as the row's text; a link's name holds the whole text, though the row shows it cut short. The mark is `aria-hidden`, because the list's name says what the rows are. A control in the row follows the link in Tab order and names its item, such as "Undo the merge".
|
|
418
|
+
- **Motion.** The fill changes over `--duration-fast` with `--ease-out`.
|
|
419
|
+
- **Forced colors.** The fills drop. The selected row takes a 2px `Highlight` border on its leading edge, and its leading padding gives up 2px for it, as the message row does. The mark's edge draws in `CanvasText`.
|
|
420
|
+
- **Touch.** At tablet width (`max-width: 800px`) each row is at least `--control-touch` tall.
|
|
421
|
+
|
|
409
422
|
## Navigation list
|
|
410
423
|
|
|
411
424
|
Layer: Core. The mono font on rail rows is identity.
|
|
@@ -516,15 +529,27 @@ Layer: Core.
|
|
|
516
529
|
- **Motion.** None: a key is static.
|
|
517
530
|
- **Forced colors.** The edge is `CanvasText`.
|
|
518
531
|
|
|
532
|
+
## App bar
|
|
533
|
+
|
|
534
|
+
Layer: Core.
|
|
535
|
+
|
|
536
|
+
- **Anatomy.** An application screen's one top line at tablet width (`max-width: 800px`), in place of the sidebar, which moves into a [drawer](#drawer): at least 48px tall (`3rem`), with `0.125rem` `--space-2` padding, a 1px `--color-border-subtle` rule below it, and its parts `--space-1` apart. In order: Menu, the current view's name as the screen's heading, and an optional action such as Search. The heading takes the room left, in `--text-md` semibold, and ends in an ellipsis. Menu and the action are icon-only [quiet actions](#quiet-action), `--control-touch` square, in `--color-muted`, each with a 16px SVG icon. Their focus ring is inset, because the action nearly fills the bar's height. Menu opens the navigation drawer from the leading edge; the drawer's backdrop dims the page. Wider screens hide the bar (`@media (min-width: 801px)`) and show the sidebar.
|
|
537
|
+
- **States.** None: the bar is static. Its quiet actions take their own states, and Menu shows whether the drawer is open through `aria-expanded`.
|
|
538
|
+
- **Do.** Name the heading for the view on screen, such as "Needs you" or a channel's name, so the bar says where the reader is, and keep one action at the end at most.
|
|
539
|
+
- **Don't.** Lists that scroll sideways in place of the drawer, a second row of tabs in the bar, or more than one action after the heading. A docs page uses the navigation list's labelled phone trigger, not this bar.
|
|
540
|
+
- **Keyboard and screen reader.** Menu is a `<button>` named "Menu", with `aria-expanded` and `aria-controls` naming the drawer; the drawer follows the [drawer](#drawer)'s focus rules, and closing it returns focus to Menu. The heading is the screen's `<h1>`. The action has an `aria-label`, such as "Search". The bar takes no landmark of its own.
|
|
541
|
+
- **Motion.** None: the bar is static; the drawer slides as its section says.
|
|
542
|
+
- **Forced colors.** The rule draws in the system colour, and the quiet actions' transparent borders draw as system edges.
|
|
543
|
+
|
|
519
544
|
## Message row
|
|
520
545
|
|
|
521
546
|
Layer: Core.
|
|
522
547
|
|
|
523
|
-
- **Anatomy.** One message in a list (`<ol>`) of messages, as a flat row with no bubble or card. A grid of a 32px avatar column (`2rem`) and the body, with a `--space-3` gap, `0.375rem` `--space-2` padding, and `--radius-inline` corners. The avatar is 32px square with `--radius-inline` corners, a `--color-surface-muted` fill, and the author's initials in `--font-mono` `--text-xs` semibold `--color-muted`; it is `aria-hidden`, because the name follows it. The header line holds the author in semibold (an agent's name in `--font-mono` `--text-sm`), the Agent mark on an agent's message, an optional status, then the time in a `<time>` element, `--text-xs` `--color-muted`. The Agent mark is a neutral [badge](#badge) that reads "Agent"; the person's own messages carry no mark, so the mark sets agents apart. It goes in the header line of a group's first message; continuation rows carry no header, so the group's one mark covers them. On the selected row it takes the `--color-surface-raised` fill, because in light the selected tint nearly matches the neutral badge's. The status slot holds one status at most, in one of two tones:
|
|
524
|
-
- **
|
|
525
|
-
- **Resolution:** a `--text-xs` note in `--color-muted`, on the post that resolves a thread: "Resolved the thread", led by a 14px check icon in `--color-success` 4px (`--space-1`) before it, or "Dropped the thread", with no icon. The row's author is who resolved it. A resolution posted from a button has no body. Where a resolved thread shows only its root, as in a list of resolved threads, the root's note names the resolver instead: "Resolved by desktop-claude" or "Dropped by desktop-claude", because the root's author is who started the thread. The body follows, at most `--measure` wide, with `--space-
|
|
548
|
+
- **Anatomy.** One message in a list (`<ol>`) of messages, as a flat row with no bubble or card. A grid of a 32px avatar column (`2rem`) and the body, with a `--space-3` gap, `0.375rem` `--space-2` padding, and `--radius-inline` corners. The avatar is 32px square with `--radius-inline` corners, a `--color-surface-muted` fill, and the author's initials in `--font-mono` `--text-xs` semibold `--color-muted`; it is `aria-hidden`, because the name follows it. The header line holds the author in semibold (an agent's name in `--font-mono` `--text-sm`), the Agent mark on an agent's message, an optional status, then the time in a `<time>` element, `--text-xs` `--color-muted`. The Agent mark is a neutral [badge](#badge) that reads "Agent"; the person's own messages carry no mark, so the mark sets agents apart where people and agents both post. Where every author but the reader is an agent, as on a board the reader shares only with agents, the mark is left out: the mono name already sets them apart. It goes in the header line of a group's first message; continuation rows carry no header, so the group's one mark covers them. On the selected row it takes the `--color-surface-raised` fill, because in light the selected tint nearly matches the neutral badge's. The status slot holds one status at most, in one of two tones:
|
|
549
|
+
- **Blocked on you:** a `--text-xs` semibold tag in `--color-text`, led by a 6px `--color-warning` dot `--space-1` before it, the tone of the thread's Blocked badge, on a question that stops the work until the reader answers. A question that does not block carries no tag: the list it sits in, such as Needs you, or the thread's Needs you badge, already says it waits. The status colour goes on the dot, not the words, as for every status outside a badge.
|
|
550
|
+
- **Resolution:** a `--text-xs` note in `--color-muted`, on the post that resolves a thread: "Resolved the thread", led by a 14px check icon in `--color-success` 4px (`--space-1`) before it, or "Dropped the thread", with no icon. The row's author is who resolved it. A resolution posted from a button has no body. Where a resolved thread shows only its root, as in a list of resolved threads, the root's note names the resolver instead: "Resolved by desktop-claude" or "Dropped by desktop-claude", because the root's author is who started the thread. The [body](#message-body) follows, at most `--measure` wide, with `--space-2` between its blocks. A new group starts `--space-2` below the row before it. The row holds a [hover toolbar](#hover-toolbar) at its top right.
|
|
526
551
|
- **States.** Rest; hover, which tints the row `--color-row-hover` at 55% over transparent and shows its [hover toolbar](#hover-toolbar); focus within, which shows the toolbar as hover does; and selected, the message whose thread is open (`aria-current="true"`), with the `--color-nav-current` fill, kept under hover.
|
|
527
|
-
- **Do.** Put the author and the time on every message that starts a group, mark the first message of each agent's group with the Agent badge, and show
|
|
552
|
+
- **Do.** Put the author and the time on every message that starts a group, mark the first message of each agent's group with the Agent badge where people and agents both post, and show the Blocked on you tag only while the question still blocks the work.
|
|
528
553
|
- **Don't.** A bubble, a card, or a per-message row of buttons; or a status badge on a message. The row stays flat, its actions live in the hover toolbar, and the thread's state badge lives in the thread panel's header.
|
|
529
554
|
- **Keyboard and screen reader.** The list is named for its channel or thread. A long name or URL in a row breaks anywhere (`overflow-wrap: anywhere` on the author and the body), so the page never scrolls sideways. Each row reads as its author, the Agent mark, the status, the time, and the body, in that order. The check icon is `aria-hidden`; the note's words carry it. The row itself takes no Tab stop: its links and its toolbar do.
|
|
530
555
|
- **Motion.** The fill changes over `--duration-fast` with `--ease-out`.
|
|
@@ -534,7 +559,7 @@ Layer: Core.
|
|
|
534
559
|
|
|
535
560
|
Layer: Core.
|
|
536
561
|
|
|
537
|
-
- **Anatomy.** A run of [message rows](#message-row). Consecutive messages by one author within about 5 minutes form a group: the first row shows the avatar, the author, the Agent mark for an agent, and the time, and each later row is a continuation row with no avatar, name, or mark and `0.125rem` top padding; the first row's mark covers the group. A different author, a longer gap, a day divider, or a message with a status starts a new group: a status sits in the header line, which a continuation row lacks, and a resolution names who resolved the thread. A continuation row shows its time in the avatar column while it is hovered or has focus within: `--text-xs`, `--color-muted`, tabular numbers, end-aligned. That time is `aria-hidden`; a visually hidden "author, time" before the body gives a screen reader both on every row. A day divider is a list item between groups: a `--text-xs` medium `--color-muted` label, such as "Today", between two 1px `--color-border-subtle` rules, with `--space-3` above it and `--space-1` below.
|
|
562
|
+
- **Anatomy.** A run of [message rows](#message-row). Consecutive messages by one author within about 5 minutes form a group: the first row shows the avatar, the author, the Agent mark for an agent where the [message row](#message-row) calls for one, and the time, and each later row is a continuation row with no avatar, name, or mark and `0.125rem` top padding; the first row's mark covers the group. A different author, a longer gap, a day divider, or a message with a status starts a new group: a status sits in the header line, which a continuation row lacks, and a resolution names who resolved the thread. A continuation row shows its time in the avatar column while it is hovered or has focus within: `--text-xs`, `--color-muted`, tabular numbers, end-aligned. That time is `aria-hidden`; a visually hidden "author, time" before the body gives a screen reader both on every row. A day divider is a list item between groups: a `--text-xs` medium `--color-muted` label, such as "Today", between two 1px `--color-border-subtle` rules, with `--space-3` above it and `--space-1` below.
|
|
538
563
|
- **States.** None: a group lays out message rows, which keep their own states.
|
|
539
564
|
- **Do.** Group by author and time only, and start a new group after a day divider or at a message with a status, even for the same author.
|
|
540
565
|
- **Don't.** A group that spans two authors, or a continuation row that hides its time from a screen reader.
|
|
@@ -542,6 +567,39 @@ Layer: Core.
|
|
|
542
567
|
- **Motion.** None: the gutter time appears at once with the row's toolbar.
|
|
543
568
|
- **Forced colors.** No change: the rules and the text take the system colours.
|
|
544
569
|
|
|
570
|
+
## Message body
|
|
571
|
+
|
|
572
|
+
Layer: Core.
|
|
573
|
+
|
|
574
|
+
- **Anatomy.** The text of a [message row](#message-row), at most `--measure` wide, rendered from the Markdown its author wrote. The host stores the exact text and renders it with no raw HTML and no images, and drops `javascript:` and `data:` links. Blocks sit `--space-2` apart, and `--space-1` apart inside a list item or a quote. It draws:
|
|
575
|
+
- **Paragraphs** in the row's text type, with **strong** text semibold.
|
|
576
|
+
- **Headings** at body size, `--text-md` semibold, so a `#` never reads as a page title.
|
|
577
|
+
- **Lists**, bulleted (discs, then circles in a nested list) and numbered (decimal), with `1.25rem` start padding and `0.125rem` between items. A **task list** item puts its checkbox, the item's first child or its first paragraph's, in the marker's place: a 14px box drawn as the [checkbox](#checkbox-and-radio) is, a 1px `--color-border` edge and `--radius-mark` corners, filled `--color-accent` with a check when checked. It is disabled but drawn at full strength, because it is a mark the reader reads, not a control.
|
|
578
|
+
- **Links** in `--color-link`, underlined wherever they sit.
|
|
579
|
+
- **Inline code** in `--font-mono` `--text-code` `--color-code-text`, on a `--color-code` fill with `0.0625rem` `0.25rem` padding and `--radius-mark` corners.
|
|
580
|
+
- **Code blocks** on the same fill, with `--space-2` `--space-3` padding, a transparent 1px border, `--radius-panel` corners, as the tool-call disclosure's detail box has, and `--leading-tight`. Long lines wrap rather than scroll.
|
|
581
|
+
- **Quotes** with `--space-3` start padding and a 2px `--color-border` rule at the start, in `--color-muted`.
|
|
582
|
+
- **Tables** in `--text-sm`, with `--space-1` `--space-2` cell padding and 1px `--color-border-subtle` cell edges; header cells are semibold. Cells wrap first. The host wraps each table in a `<div class="table-scroll">`, which scrolls a table still wider than the body inside itself, so the page never scrolls sideways.
|
|
583
|
+
- **Rules** as one 1px `--color-border-subtle` line.
|
|
584
|
+
- **States.** None: the body is static text. Its links take the link's own states.
|
|
585
|
+
- **Do.** Render what the author wrote, with its marks gone and the text unchanged, and keep the stored text byte for byte.
|
|
586
|
+
- **Don't.** Raw HTML, images, or a page-size heading in a message; or a code block that scrolls the page sideways.
|
|
587
|
+
- **Keyboard and screen reader.** The body keeps Markdown's semantics: real lists, headings, `<code>`, `<blockquote>`, and tables with `<th>` header cells. A heading's level comes from the Markdown, so a host may lower every level by the page's own depth. Links are Tab stops. A table's wrapper is a named region (`role="region"`, an `aria-label` such as "Table" or the table's caption, and `tabindex="0"`), so a keyboard can scroll a wide table. A task list's checkboxes are disabled, so they take no Tab stop; each takes its item's text as its name (`aria-label`), so it reads as that item, checked or not checked. A code block needs no Tab stop, because it never scrolls.
|
|
588
|
+
- **Motion.** None: the body is static.
|
|
589
|
+
- **Forced colors.** The code fills drop: inline code keeps its mono type, and a code block's transparent border draws as the system edge. Links, rules, and cell edges take the system colours. A task box's edge is `CanvasText`; a checked box opts out of adjustment and fills `Highlight` with a `HighlightText` check.
|
|
590
|
+
|
|
591
|
+
## Answer actions
|
|
592
|
+
|
|
593
|
+
Layer: Core.
|
|
594
|
+
|
|
595
|
+
- **Anatomy.** The answers under a question in a list of questions that wait for the reader, such as Needs you: a row (`.answers`) of two secondary `sm` [buttons](#button), Yes and No, `--space-2` apart, then a Reply link to the question's thread, in `--text-sm`, `--space-1` further on. The row sits in the question's [message body](#message-body), `--space-2` below its text. Yes and No post that word as the reader's reply; Reply opens the thread for anything longer. Below the questions, the ones the reader has answered fold into one disclosure (`<details class="answered">`), closed by default, whose summary is a [tool-call disclosure](#tool-call-disclosure)'s summary line, such as "You answered 2 · waiting for the agents", `--space-2` below the list. Open, it shows the reader's answers as message rows, each with its channel and "waiting for the agent".
|
|
596
|
+
- **States.** Open; sending, while the post is written: the tapped button is busy and the other one disabled, so a second tap sends nothing; and offline: both buttons disabled, with Reply still there, because reading a thread needs no connection. The answered summary takes the tool-call disclosure's hover and focus-visible states, and at tablet width it is at least `--control-touch` tall, a touch target like the buttons above it.
|
|
597
|
+
- **Do.** Offer Yes and No only on a question that a yes or a no answers, and keep Reply on every question.
|
|
598
|
+
- **Don't.** A primary button among the answers, a third quick answer, or answers on a message that asks nothing. Answers in the hover toolbar, which never shows on touch.
|
|
599
|
+
- **Keyboard and screen reader.** Yes and No are buttons whose names say what they answer when the list holds more than one question, such as `aria-label="Yes: add the sandbox exception"`; Reply is a link with the same kind of name. Once an answer posts, the question leaves the list and the reader's answer appears in the answered disclosure; focus moves to the next question's Yes, or to the summary after the last, and a polite live region says "Answered". A refused post keeps the question, returns focus to the tapped button, and says why in an [alert](#alert).
|
|
600
|
+
- **Motion.** None: the answers are static, and the disclosure opens at once.
|
|
601
|
+
- **Forced colors.** As for the button and the tool-call disclosure: the buttons keep their system edges, and the summary's hover fill drops.
|
|
602
|
+
|
|
545
603
|
## Hover toolbar
|
|
546
604
|
|
|
547
605
|
Layer: Core.
|
|
@@ -568,7 +626,7 @@ Layer: Core.
|
|
|
568
626
|
| Resolved as done | Success: "Done" |
|
|
569
627
|
| Resolved as dropped | Neutral: "Dropped" |
|
|
570
628
|
|
|
571
|
-
Blocked is the stronger form of Needs you, so a thread shows one of the two, never both.
|
|
629
|
+
Blocked is the stronger form of Needs you, so a thread shows one of the two, never both. A blocking question's message carries the Blocked on you tag, whose dot takes the Blocked badge's warning tone; a question that does not block carries no tag. A resolved thread has no Resolve button. Its last reply is the resolving post, a [message row](#message-row) whose author is who resolved it and whose status says how, and its composer's hint says that a reply reopens it. The body scrolls: the root message with its facts and actions, a reply-count rule (a `--text-xs` `--color-muted` label such as "3 replies", then a `--color-border-subtle` rule to the end), and the replies as [message rows](#message-row). A [composer](#composer) sits at the bottom. The pane's start edge is a resize handle: a 6px hit area (`0.375rem`) centred on the edge, with `cursor: col-resize`. The pane is 26rem wide by default, and from 20rem to 40rem as the reader resizes it, and never so wide that the channel beside it drops below 16rem; the separator reports that limit as its maximum.
|
|
572
630
|
- **States.** Open or closed. The thread's own state (open, needs you, blocked, done, or dropped) is content, shown by the badge, not an interactive state. Resolve takes the button's own states while the post is written. The resize handle takes an `--color-accent` tint at 40% while hovered, and the tint with an inset focus ring at focus-visible.
|
|
573
631
|
- **Do.** Open a thread beside its channel, so the reader keeps the channel in view, and mark its root message as selected in the list. Keep Resolve beside the state it changes, in the header.
|
|
574
632
|
- **Don't.** A thread in a dialog, or a second pane beside the first. One thread is open at a time. A Reopen button: a reply reopens a resolved thread.
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The conversation components as components.md specifies them: message row, message group,
|
|
3
|
-
* thread panel, composer, tool-call disclosure, and mention
|
|
4
|
-
*
|
|
2
|
+
* The conversation components as components.md specifies them: message row, message group, message body,
|
|
3
|
+
* answer actions, hover toolbar, thread panel, composer, tool-call disclosure, and mention; the list row and
|
|
4
|
+
* the app bar that an application screen around them uses; and the quiet action they hold. components.html
|
|
5
|
+
* links this file, so it is the one source of these rules; copy markup from the catalogue's sections.
|
|
5
6
|
*
|
|
6
7
|
* Load it after tokens.css. The rules are unlayered, as the catalogue's own rules are, so they outrank a
|
|
7
8
|
* page's @layer base element rules and any layered component stylesheet, such as ui-sdk.css.
|
|
8
9
|
*
|
|
9
10
|
* The parts these components hold come from their own components, which this file does not draw: the
|
|
10
|
-
* badge (the Agent mark and the thread's state) and the alert from feedback.css, the button (Resolve and
|
|
11
|
-
* the send button) and the field error from ui-sdk.css or the catalogue,
|
|
12
|
-
*
|
|
11
|
+
* badge (the Agent mark and the thread's state) and the alert from feedback.css, the button (Resolve, Yes and
|
|
12
|
+
* No, and the send button) and the field error from ui-sdk.css or the catalogue, the overflow menu (More) from
|
|
13
|
+
* the catalogue or ui-sdk's Menu, and the drawer that the app bar's Menu opens from ui-sdk's Drawer.
|
|
13
14
|
*/
|
|
14
15
|
|
|
16
|
+
/* ---------- Quiet action ---------- */
|
|
17
|
+
/* The shared recipe, with no specificity, so each component sets the action's size, place, and resting colour. It is the
|
|
18
|
+
catalogue's quiet action, which the example pages copy, plus color: inherit, because an app's base may leave a button
|
|
19
|
+
the browser's own text colour. */
|
|
20
|
+
:where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
21
|
+
@media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
|
|
22
|
+
.quiet-action:active:where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
23
|
+
.quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
24
|
+
|
|
15
25
|
/* ---------- Message row and message group ---------- */
|
|
16
26
|
/* Message rows: flat, with no bubble. A group is one author's consecutive messages: the first row shows the
|
|
17
27
|
avatar, name, and time; continuation rows show their time in the avatar column on hover or focus within. */
|
|
@@ -33,11 +43,10 @@
|
|
|
33
43
|
.author { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
|
|
34
44
|
.author.agent { font-family: var(--font-mono); font-size: var(--text-sm); }
|
|
35
45
|
.msg-head time { color: var(--color-muted); font-size: var(--text-xs); }
|
|
36
|
-
/* The
|
|
37
|
-
text colour, because a status colour goes on the mark, not the words. */
|
|
38
|
-
.tag {
|
|
39
|
-
.tag.
|
|
40
|
-
.tag:not(.resolved)::before { content: ""; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
|
|
46
|
+
/* The Blocked on you tag, on a question that stops the work: a dot in the Blocked badge's warning tone, and the label in
|
|
47
|
+
the text colour, because a status colour goes on the mark, not the words. An open question carries no tag. */
|
|
48
|
+
.tag { display: inline-flex; align-items: baseline; gap: var(--space-1); color: var(--color-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
|
|
49
|
+
.tag:not(.resolved)::before { content: ""; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--color-warning); }
|
|
41
50
|
/* The resolution note: the post that resolves a thread, by its author. A check leads "Resolved"; "Dropped" has none. */
|
|
42
51
|
.tag.resolved { color: var(--color-muted); font-weight: var(--weight-regular); }
|
|
43
52
|
/* The check is a line icon from the page's SVG sprite. Its size and stroke are set here, so the note needs no page icon class. */
|
|
@@ -45,10 +54,58 @@
|
|
|
45
54
|
/* The Agent badge keeps its own fill on the selected row, whose tint nearly matches the neutral badge in light. */
|
|
46
55
|
.msg[aria-current="true"] .msg-head .badge { background: var(--color-surface-raised); }
|
|
47
56
|
.msg-body { max-width: var(--measure); overflow-wrap: anywhere; }
|
|
48
|
-
.msg-body > * + * { margin-top: var(--space-1); }
|
|
49
57
|
/* Mention: an inline tint around @name. It is static text, not a link. */
|
|
50
58
|
.mention { padding: 0 0.1875rem; border-radius: var(--radius-mark); background: var(--color-nav-current); color: var(--color-nav-current-text); font-weight: var(--weight-medium); }
|
|
51
59
|
|
|
60
|
+
/* ---------- Message body ---------- */
|
|
61
|
+
/* The host renders the stored Markdown to HTML, with no raw HTML and no images, and these rules draw it. Blocks sit
|
|
62
|
+
--space-2 apart, inside a list item or a quote --space-1. :where keeps the resets below the spacing rules. */
|
|
63
|
+
.msg-body :where(p, ul, ol, pre, blockquote, table, h1, h2, h3, h4, h5, h6, hr) { margin: 0; }
|
|
64
|
+
.msg-body > * + * { margin-top: var(--space-2); }
|
|
65
|
+
.msg-body :where(li, blockquote) > * + * { margin-top: var(--space-1); }
|
|
66
|
+
/* A heading stays at body size, so a "#" in a message never reads as a page title; :is outranks a page's heading rule. */
|
|
67
|
+
.msg-body :is(h1, h2, h3, h4, h5, h6) { font-size: var(--text-md); font-weight: var(--weight-semibold); line-height: inherit; letter-spacing: 0; }
|
|
68
|
+
.msg-body strong { font-weight: var(--weight-semibold); }
|
|
69
|
+
/* Underlined wherever it sits, a list item or a table cell too, so colour is not the only sign of a link. */
|
|
70
|
+
.msg-body a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.18em; }
|
|
71
|
+
.msg-body :where(ul, ol) { padding-inline-start: 1.25rem; }
|
|
72
|
+
/* The body sits in a list item of the stream, so its bullets are set, not left to the nested-list default. */
|
|
73
|
+
.msg-body :where(ul) { list-style-type: disc; }
|
|
74
|
+
.msg-body :where(ul ul) { list-style-type: circle; }
|
|
75
|
+
.msg-body :where(ol) { list-style-type: decimal; }
|
|
76
|
+
.msg-body li + li { margin-top: 0.125rem; }
|
|
77
|
+
/* A component inside the body keeps its own row spacing. */
|
|
78
|
+
.tool-body li + li { margin-top: 0; }
|
|
79
|
+
/* A task list item: its checkbox takes the marker's place, as the item's first child, or its first paragraph's in a loose list. The renderer makes it disabled, and a browser greys a disabled
|
|
80
|
+
native box, so it is drawn here, as the checkbox is, at full strength: it is a mark, not a control the reader can use. */
|
|
81
|
+
.msg-body li:has(> input[type="checkbox"]:first-child, > p:first-child > input[type="checkbox"]:first-child) { list-style: none; }
|
|
82
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child { appearance: none; display: inline-grid; place-items: center; width: 0.875rem; height: 0.875rem; margin-block: 0; margin-inline: -1.25rem var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-mark); background: var(--color-surface-raised); vertical-align: middle; }
|
|
83
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked { border-color: var(--color-accent); background: var(--color-accent); }
|
|
84
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked::before { content: ""; width: 4px; height: 7px; margin-top: -2px; border: solid var(--color-accent-text); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
|
|
85
|
+
.msg-body code { padding: 0.0625rem 0.25rem; border-radius: var(--radius-mark); background: var(--color-code); color: var(--color-code-text); font-family: var(--font-mono); font-size: var(--text-code); }
|
|
86
|
+
/* A code block wraps its lines rather than scroll, so it needs no Tab stop and a phone reader never pans inside it. */
|
|
87
|
+
.msg-body pre { padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-code); color: var(--color-code-text); font-size: var(--text-code); line-height: var(--leading-tight); white-space: pre-wrap; }
|
|
88
|
+
.msg-body pre code { padding: 0; border-radius: 0; background: none; }
|
|
89
|
+
.msg-body blockquote { padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--color-border); color: var(--color-muted); }
|
|
90
|
+
.msg-body hr { border: 0; border-top: 1px solid var(--color-border-subtle); }
|
|
91
|
+
/* The host wraps each table in a .table-scroll region, which scrolls a table wider than the body inside itself, so the
|
|
92
|
+
page never scrolls sideways; the region takes a Tab stop, so a keyboard can scroll it. Cells wrap first. */
|
|
93
|
+
.msg-body .table-scroll { max-width: 100%; overflow-x: auto; }
|
|
94
|
+
.msg-body table { border-collapse: collapse; font-size: var(--text-sm); }
|
|
95
|
+
.msg-body :is(th, td) { padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border-subtle); text-align: start; vertical-align: top; }
|
|
96
|
+
.msg-body th { font-weight: var(--weight-semibold); }
|
|
97
|
+
|
|
98
|
+
/* ---------- Answer actions ---------- */
|
|
99
|
+
/* Under a question in Needs you: Yes and No as secondary buttons, then a Reply link to the thread. */
|
|
100
|
+
.answers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
|
|
101
|
+
.answers > .reply { display: inline-flex; align-items: center; min-height: var(--control-sm); margin-inline-start: var(--space-1); font-size: var(--text-sm); }
|
|
102
|
+
/* The questions the reader has answered fold into one summary line, drawn as the tool-call disclosure's summary. */
|
|
103
|
+
.answered { margin-top: var(--space-2); }
|
|
104
|
+
.answered[open] > summary { margin-bottom: var(--space-1); }
|
|
105
|
+
/* The link after a list that shows its closed items, such as "Show 5 resolved". */
|
|
106
|
+
.row-more { margin: var(--space-1) 0 0; padding-inline: var(--space-2); font-size: var(--text-sm); }
|
|
107
|
+
.row-more > a { display: inline-flex; align-items: center; min-height: var(--control-sm); }
|
|
108
|
+
|
|
52
109
|
/* ---------- Hover toolbar ---------- */
|
|
53
110
|
/* A floating strip at the row's top right. Its buttons sit 4px inside its outer edge, so their corners are the
|
|
54
111
|
strip's 12px minus 4px. It shows on hover or focus within, and never on a touch screen. */
|
|
@@ -66,11 +123,13 @@
|
|
|
66
123
|
|
|
67
124
|
/* ---------- Tool-call disclosure ---------- */
|
|
68
125
|
/* One quiet summary line; the detail opens in a box on the surface colour. */
|
|
69
|
-
.tool > summary { display: inline-flex; align-items: baseline; gap: var(--space-2); margin-inline-start: calc(var(--space-1) * -1); padding: 0.125rem var(--space-1); border-radius: var(--radius-inline); color: var(--color-muted); font-size: var(--text-sm); list-style: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
70
|
-
.tool > summary::-webkit-details-marker { display: none; }
|
|
71
|
-
.tool > summary::before { content: ""; flex: none; align-self: flex-start; width: 0.3125rem; height: 0.3125rem; margin-top: 0.5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--duration-fast) var(--ease-out); }
|
|
72
|
-
.tool[open] > summary::before { transform: rotate(45deg); }
|
|
73
|
-
@media (hover: hover) { .tool > summary:hover { background: var(--color-row-hover); color: var(--color-text); } }
|
|
126
|
+
:is(.tool, .answered) > summary { display: inline-flex; align-items: baseline; gap: var(--space-2); margin-inline-start: calc(var(--space-1) * -1); padding: 0.125rem var(--space-1); border-radius: var(--radius-inline); color: var(--color-muted); font-size: var(--text-sm); list-style: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
127
|
+
:is(.tool, .answered) > summary::-webkit-details-marker { display: none; }
|
|
128
|
+
:is(.tool, .answered) > summary::before { content: ""; flex: none; align-self: flex-start; width: 0.3125rem; height: 0.3125rem; margin-top: 0.5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--duration-fast) var(--ease-out); }
|
|
129
|
+
:is(.tool, .answered)[open] > summary::before { transform: rotate(45deg); }
|
|
130
|
+
@media (hover: hover) { :is(.tool, .answered) > summary:hover { background: var(--color-row-hover); color: var(--color-text); } }
|
|
131
|
+
/* The answered summary sits beside the stream's rows, not in a body, so its chevron lines up with their avatars. */
|
|
132
|
+
.answered > summary { margin-inline-start: var(--space-1); }
|
|
74
133
|
.tool > summary b { color: var(--color-text); font-weight: var(--weight-medium); }
|
|
75
134
|
.tool-body { margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface); font-size: var(--text-sm); }
|
|
76
135
|
.tool-body ul { display: grid; gap: 0.125rem; margin: 0; padding-inline-start: var(--space-4); }
|
|
@@ -108,6 +167,42 @@
|
|
|
108
167
|
.thread-pane > .composer { padding: 0 var(--space-3) var(--space-3); }
|
|
109
168
|
.msg-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
|
|
110
169
|
|
|
170
|
+
/* ---------- List row ---------- */
|
|
171
|
+
/* One-line rows for scanning a list, such as todos or work items; the thread holds the conversation. A row's link
|
|
172
|
+
stretches over the whole row, so the row is one target, and the row draws the link's focus ring. min-width: 0 keeps
|
|
173
|
+
a long one-line text from widening the list's grid track, so the text ends in its ellipsis instead. */
|
|
174
|
+
.rows { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
175
|
+
.rows > li { position: relative; display: flex; align-items: center; gap: var(--space-3); min-width: 0; min-height: var(--row); padding: var(--space-1) var(--space-2); border-radius: var(--radius-inline); font-size: var(--text-sm); transition: background-color var(--duration-fast) var(--ease-out); }
|
|
176
|
+
@media (hover: hover) { .rows > li:hover { background: var(--color-row-hover); } }
|
|
177
|
+
.rows > li[aria-current="true"] { background: var(--color-nav-current); }
|
|
178
|
+
.row-text { flex: 1; min-width: 0; overflow: hidden; color: var(--color-text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
|
|
179
|
+
.row-text.wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
|
|
180
|
+
/* Outranks the message body's link rule, for rows inside a message. */
|
|
181
|
+
.rows .row-text { color: var(--color-text); text-decoration: none; }
|
|
182
|
+
.rows > li + li { margin-top: 0; }
|
|
183
|
+
a.row-text::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
|
|
184
|
+
a.row-text:hover { text-decoration: none; }
|
|
185
|
+
a.row-text:focus-visible { outline: none; }
|
|
186
|
+
.rows > li:has(> a.row-text:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
187
|
+
/* A control in the row sits above the stretched link. */
|
|
188
|
+
.rows > li > :is(button, a:not(.row-text)) { position: relative; }
|
|
189
|
+
.row-meta { flex: none; color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
190
|
+
/* An open todo's mark: an empty 16px box. It is aria-hidden; the list's name says what the rows are. */
|
|
191
|
+
.row-check { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-mark); }
|
|
192
|
+
|
|
193
|
+
/* ---------- App bar ---------- */
|
|
194
|
+
/* An application screen's one top line at tablet width: Menu, which opens the navigation drawer, the current view's
|
|
195
|
+
name, and an optional action such as Search. Wider screens show the sidebar instead, so it hides there. */
|
|
196
|
+
.appbar { display: flex; align-items: center; gap: var(--space-1); min-height: 3rem; padding: 0.125rem var(--space-2); border-bottom: 1px solid var(--color-border-subtle); }
|
|
197
|
+
.appbar > :is(h1, h2, h3, h4) { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
|
|
198
|
+
.appbar > .quiet-action { flex: none; width: var(--control-touch); height: var(--control-touch); padding: 0; }
|
|
199
|
+
/* :where keeps the muted rest below the quiet action's hover colour. */
|
|
200
|
+
:where(.appbar) > .quiet-action { color: var(--color-muted); }
|
|
201
|
+
/* Inset: the 44px action nearly fills the bar, so an outer ring would cross its rule. */
|
|
202
|
+
.appbar > .quiet-action:focus-visible { outline-offset: calc(var(--focus-width) * -1); }
|
|
203
|
+
.appbar > .quiet-action > svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
204
|
+
@media (min-width: 801px) { .appbar { display: none; } }
|
|
205
|
+
|
|
111
206
|
/* ---------- Forced colors ---------- */
|
|
112
207
|
@media (forced-colors: active) {
|
|
113
208
|
/* The inset accent line drops, so a focused composer draws the system ring just inside its edge. */
|
|
@@ -117,12 +212,22 @@
|
|
|
117
212
|
/* An SVG keeps the colour it sets, and the tag's dot is a fill, so both take the system text colour; the words carry them. */
|
|
118
213
|
.tag.resolved .icon { color: CanvasText; }
|
|
119
214
|
.tag:not(.resolved)::before { forced-color-adjust: none; background: CanvasText; }
|
|
215
|
+
/* The selected list row loses its fill too, so it takes the same leading border. */
|
|
216
|
+
.rows > li[aria-current="true"] { border-inline-start: 2px solid Highlight; padding-inline-start: calc(var(--space-2) - 2px); }
|
|
217
|
+
.row-check { border-color: CanvasText; }
|
|
218
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child { border-color: CanvasText; }
|
|
219
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
|
|
220
|
+
.msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked::before { border-color: HighlightText; }
|
|
120
221
|
}
|
|
121
222
|
|
|
122
223
|
/* ---------- Tablet and phone ---------- */
|
|
123
224
|
@media (max-width: 800px) {
|
|
124
225
|
/* Touch: the hover toolbar never shows; a tap opens the thread, whose header holds More. */
|
|
125
226
|
.msg-tools { display: none; }
|
|
227
|
+
/* A list row and the answered summary are touch targets. */
|
|
228
|
+
.rows > li { min-height: var(--control-touch); }
|
|
229
|
+
.answered > summary { min-height: var(--control-touch); align-items: center; }
|
|
230
|
+
.answered > summary::before { align-self: center; margin-top: 0; }
|
|
126
231
|
.composer-box textarea { min-height: var(--control-touch); padding-block: calc((var(--control-touch) - 1lh) / 2); }
|
|
127
232
|
/* The thread pane takes the full width below the message list, and the handle hides. */
|
|
128
233
|
.thread-pane { border-left: 0; border-top: 1px solid var(--color-border-subtle); }
|
package/language/decisions.md
CHANGED
|
@@ -37,6 +37,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
37
37
|
| Navigation row corners | Core | Navigation rows, header and strip rows, list-selection rows, collapsible group labels, and tabs take the row corner (`--radius-inline`), as rows inside a floating menu do (see Floating-menu rows). The owner chose the more rectangular rows from the Gate M mockup (2026-11-09), at 6px; since radius scale B (2026-11-22) rows, actions, and fields share 8px. | 10px (`--radius-field`), the previous corners, shared with fields. | row corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; Foundations swatch: `tests/design-foundations.test.mjs` "the Foundations current-row swatch and radius list follow the navigation row radius" |
|
|
38
38
|
| Floating-menu rows | Core | Rows inside a floating menu, such as the project menu, are concentric with the menu: `calc(var(--radius-panel) - var(--space-1))`, as select picker rows are. That was 12px inside a 16px menu; since radius scale B (2026-11-22) it is 8px inside a 12px menu, the row corner. The owner approved it from the DS-3b comparison. | 6px like rail rows: a 6px row inside a 16px panel looks pinched. | row corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
|
|
39
39
|
| One-line non-action controls | Core | A one-line control that is not an action takes the field corner (`--radius-field`, 8px since radius scale B, 2026-11-22; 10px before), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. Since radius scale B (2026-11-22) actions and fields both take 8px (see Shape follows role), so both tokens render the same; these controls keep the field token, so a later change to the action corner leaves them alone. | The action corner (`--radius-control`), a pill until 2026-11-22: a pill meant an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | field corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; the field token rather than the action token: no test, because both render 10px |
|
|
40
|
+
| Quieter conversation | Core | Owner approval of the devchat mockups, revision 4, on 2026-12-01. Only a blocking question carries a tag (Blocked on you); an open question carries none, because the Needs you list and the thread's Needs you badge already say it waits. The Agent mark is left out where every author but the reader is an agent, because the mono name sets them apart. Questions in Needs you take answer actions: Yes and No as secondary buttons and a Reply link, and the answered ones fold into one disclosure line. A message body renders its Markdown, headings at body size and code blocks that wrap. Lists for scanning, such as todos and work items, are one-line list rows, not message rows. At tablet width an application screen has one app bar (Menu, the view's name, one action) and its sidebar moves into ui-sdk's drawer, whose backdrop is the scrim. `conversation.css` ships these rules and the quiet action's shared recipe, so an app that loads only the package draws the app bar's icon actions. The open todo's mark is `.row-check`, not `.check`, which is the catalogue's checkbox label. | An "Asks you" tag on every open question: in a list of questions it repeated the list's own name on each row. Sideways-scrolling lists on a phone: most items sat off screen. A separate `.scrim` class: ui-sdk's drawer backdrop draws it already. Code blocks that scroll: a scrolling region needs a Tab stop, and a phone page scrolled sideways. Message rows for todos: an avatar and a header line on every item made a list to scan read as a conversation. Ghost icon-only buttons in the app bar: an icon with no fill at rest is a quiet action. | parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs`; the new parts drawn from the package stylesheets alone: `tests/catalogue/package-styles.spec.ts` |
|
|
40
41
|
| Optical label centring | Core | A text-only navigation row and the breadcrumb centre their label on the cap height with `text-box: trim-both cap alphabetic`, inside `@supports`; a row becomes a block with `align-content: center` for it, and `--space-2` block padding keeps a wrapped label clear of its fill's edges. Browsers without `text-box` keep the flex centring of the line box. Buttons, tabs, and segmented options already centre their ink within 0.5px, so they are unchanged; Chromium does not trim a button's label in any case. | Centring the line box alone: it keeps descender room, so a label without descenders, such as "Overview", sat 1.25px above centre in the 44px header row (15.75px above the ink, 18.25px below). `text-box` on the flex row itself: Chromium trims only block containers, and the label's anonymous flex item does not inherit the trim. A fixed nudge in em: it depends on the font's metrics, which an identity can change. | label inside the fill, and centred: `tests/site/site.spec.ts` "a wrapped navigation row or crumb keeps its label inside the fill and focus ring in ${colorScheme}", "the breadcrumb centres its link's ink in ${colorScheme}" |
|
|
41
42
|
| Rail current section | Core | In a section rail the current section takes the current-page look: `--color-nav-current` fill, `--shadow-nav-current`, and `--color-nav-current-text`, with no pip. It keeps `aria-current="location"`. Strips and contents lists keep the pip. In forced colors it takes the current page's 2px `Highlight` leading border. The owner chose it at Gate M, so the rail's place reads like the live site's current page. | The pip in the rail too, as in strips and contents lists: the owner preferred the rail to match the site's current-page look. | rule present on pages: `tests/design-foundations.test.mjs` "example pages copy the state rules of every component variant their markup uses"; recipe: no test yet |
|
|
42
43
|
| Tab glide | Core | The selected tab's fill is a `::before` layer that glides between tabs like the segmented thumb: `glide-left` and `glide-right`, 260ms leading and 300ms trailing, with CSS `ease`. No glide on first render or under reduced motion, and no layer in forced colors. The owner chose it at Gate M. | The fill jumping from tab to tab, unlike the segmented control beside it. | glide and reduced motion: `tests/catalogue/catalogue.spec.ts` "the tab fill glides to the new tab", "the tab fill moves at once" |
|
|
@@ -50,7 +51,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
50
51
|
| Tab density | Core | A tab has the button's box: at least `--control-md` (32px) tall, 10px inline padding, no block padding, and line height 1; `data-size="sm"` tabs, for app screens, are 28px with 8px padding. Tabs grow to `--control-touch` at tablet width. The list keeps its 4px padding, which keeps the selected tab's shadow whole where the list clips. The owner asked for narrower tabs with less dead space on 2026-11-24. | The tab before: `--space-2` `--space-3` padding with line height 1.6 made a 38px tab, taller than every control beside it, and 84px wide for "Overview". 2px list padding: it clips the selected tab's `--shadow-nav-current`, which reaches 4px below the tab. | heights: `tests/catalogue/catalogue.spec.ts` "renders control sizes" (tabs at their exact control height) |
|
|
51
52
|
| Code wrap toggle | Core | Every multi-line code block (one with a header, or a live example's source) has a Wrap lines toggle before Copy: an icon-only quiet action with a fixed name and `aria-pressed`. It is off by default, per block, and not saved. Astryx offers wrapping only as a caller prop (`CodeBlock` spec: "optional wrapping"); this departs from it with a reader control, as T3 Code's code blocks have. The owner asked for it on 2026-11-24. | Wrapping by default: it would reflow every code block on the five sites, and the spec has the panel scroll. A name that flips between Enable and Disable line wrap, as T3 Code's tooltip does: with `aria-pressed` it would announce the state twice. Saving the choice: one more stored setting for a per-block reading aid. A toggle on compact blocks: they hold one line. | toggle, wrapping, and copy: `tests/catalogue/catalogue.spec.ts` "Wrap lines wraps a code block, and Copy still copies its lines" |
|
|
52
53
|
| Astryx as the reference system | Core | When a value or behaviour is not decided here, start from Astryx's (`meta/astryx`, MIT, read at `7032abf`), and record any departure in this file. Take the idea and the values, never the code. The identity stays this system's: its type pair, the theme hues, quiet depth, and the forced-colors rules. The owner chose this on 2026-11-22 so the system stops re-deciding settled questions; the quiet action fill, the focus ring, field focus, the radius scale, and the compact controls already follow Astryx. React apps keep ui-sdk for behaviour: `ui-sdk.css` draws it. | Astryx's React components in React apps, themed with these tokens: it reverses the board's ui-sdk choice, and the Vue library could not use them. Making the design system a wrapper of ui-sdk: `@filipgutica/ui` (Vue) and the static sites use the design system, ui-sdk is React-only here and in beta, and `ui-sdk.css` already draws ui-sdk's parts. Deciding each value from scratch: it re-decided questions Astryx has answered, and the results drifted toward it anyway. | No test: a working rule for authors |
|
|
53
|
-
| Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one status at most, in two tones: the
|
|
54
|
+
| Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one status at most, in two tones: the Blocked on you tag, `--color-text` semibold led by a dot in the Blocked badge's warning tone, only while a question blocks the work (an "Asks you" tag in the info tone marked every open question until the quieter conversation below), and a muted resolution note on the post that resolves a thread, whose author is the resolver, or on a resolved thread's root shown alone, which names the resolver ("Resolved by …"). An agent's message carries a neutral Agent badge, and the person's own carry none, so agents are the marked exception (added 2026-11-27 for devchat; left out where every author but the reader is an agent since the quieter conversation below). It is an identity mark, the one badge that repeats down a list against "badge the exceptions": it goes in the header line of a group's first message, and continuation rows carry no header, so the group's one mark covers them, and the owner kept it after the visual review (2026-11-27). A thread's state (Needs you, Blocked, Done, Dropped; none while open) is one badge in the thread panel's header, beside a secondary Resolve button; a reply reopens a resolved thread, so there is no Reopen. A message with a status starts a new group, so its author shows. The thread's badge and a message's tag may both be in view, such as Blocked in the header and Blocked on you on the reply: the badge says the thread's state, and the tag says which message it is about, so neither repeats the other. `conversation.css` holds these components' rules, and the catalogue links it after its own stylesheet, so devchat and the catalogue draw from one file; it is unlayered like the catalogue's rules, and the catalogue's pinned states outrank its rules by specificity. The badge and the alert they hold ship the same way, in `feedback.css`, because ui-sdk 0.1.0-beta.5 has no badge or alert part for `ui-sdk.css` to draw. A mention is static text, not a link. | Bubbles or cards around messages: the board read as busy, and Slack, T3 Code, and ChatGPT use flat rows. A row of buttons on every message: it repeats the same actions down the stream. A toolbar as a `role="group"`: three Tab stops for each message in a long stream. A thread in a dialog: it hides the channel the reader is replying about. Building the components in the board app first: the app's code would become the only definition. Status badges on messages: beside the Agent badge they made two pills in a header line, and the thread's badge already carries its state. A resolution as a separate event line with no author: it hid who resolved the thread, which a message row shows already. An all-caps "AGENT" label: the language keeps the source text's case. A "You" badge on the person's messages: it marks the default, not the exception. The tag in `--color-nav-current-text`: it drew the thread's state in a second hue beside the header's badge. The tag's words in the status colour: outside badges a status colour goes on the mark, not the label. Only one of the thread badge and the message tag: the badge alone hides which message needs the reader, and the tag alone hides a blocked or done thread whose question has scrolled away. The rules in the catalogue's inline style only, copied into the app: two copies drift. A split inline style with the file linked between its halves: the site build swaps the one `</style>` and checks the one shared style. `@layer components`, as `ui-sdk.css` uses: the catalogue's unlayered rules would then outrank every conversation rule. Resolve as the primary button: the composer's send is the pane's one filled action. | rendered corners by role and the conversation keyboard paths: `tests/catalogue/catalogue.spec.ts`, with "the composer sends on Enter and keeps the field, starts a new line on Shift+Enter, and sends no blank text" and "Resolve marks the thread done, ends its replies with the resolution, and moves focus to the pane heading"; parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
|
|
54
55
|
| Phone header | Core | The family shell, option A, which the owner chose on 2026-11-11: the site's header matches the other family sites. At tablet width the static header has two rows, the project switcher and the appearance control, then the Pages strip. Where both do not fit, as at 320px, the appearance control wraps to its own row at the start, as UiSiteHeader does on PluginBench and Filip Stack, and the project name never truncates. The rule below the header is the family's solid `--color-text` line. Just below it, at the start, the labelled trigger ("Components: By purpose") opens the drawer from the left, the side it sits on. The drawer is titled with the rail's name and holds Find and the rail's groups. `/` opens it with Find focused. Without JavaScript nothing moves. | The Gate M single sticky row with the site name, then icon-only Find and Menu buttons, with the pages and appearance in the Menu drawer: the site had no way to the other family sites, and the Menu button sat at the right while the drawer slid in from the left. Option B, keeping that row and sliding the drawer in from the right: it kept the site apart from the other seven family sites. Truncating the project name at 320px so both controls shared row 1: the family wraps the picker instead, and the name should never truncate. | `tests/site/site.spec.ts` "the switcher and appearance share the first row, then the pages, then the trigger", "the switcher and appearance take a row each, then the pages, then the trigger", "every clipped strip link shows at least 16px", "the trigger opens the drawer from the left edge, titled with the rail and holding Find and the rail only", "the trigger label follows the current section as the page scrolls"; `tests/catalogue/catalogue.spec.ts` "the trigger opens the drawer on the current row, and a link closes it and focuses the target" |
|
|
55
56
|
| Drawer instead of a long strip | Core | A horizontal strip holds 6 links or fewer; a longer list moves into the drawer at tablet width. | The catalogue's 26-link strip on phones: most links sat off screen, and the page broke its own drawer spec. | rail moves into the drawer: `tests/catalogue/catalogue.spec.ts` "resizing moves the rail between the page and the drawer, and the pages and appearance stay in the header"; six-link strip limit: no test yet |
|
|
56
57
|
| Drawer and slideout | Core | Owner decision, 2026-11-25: two components for two jobs. A drawer holds navigation and opens from the leading edge; a slideout holds filters or secondary detail, opens from the trailing edge by default (the top or bottom when the page names it), is `min(75%, 384px)` wide, and may have a footer whose actions stack on phones. Both share the floating layer, backdrop, page-scroll lock, and slide, and every slideout close returns focus to its trigger. | One drawer for navigation and detail: the owner reads "drawer" as a navigation menu, so a filter panel called a drawer read as the wrong component, and the one spec could not say which edge or width a panel takes. | spec parts: `tests/component-parts.test.mjs` "every component section has every part, or says None with a reason"; edge, width, close, scroll lock, and footer: `tests/catalogue/catalogue.spec.ts` "slideout" |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filipgutica/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "Filip's design language, tokens, and component catalogue for any framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
},
|
|
73
73
|
"homepage": "https://github.com/filipgutica/design-system#readme",
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@axe-core/playwright": "4.14.
|
|
75
|
+
"@axe-core/playwright": "4.14.1",
|
|
76
76
|
"@commitlint/cli": "21.2.4",
|
|
77
77
|
"@commitlint/config-conventional": "21.2.4",
|
|
78
78
|
"@playwright/test": "1.65.1",
|
|
79
79
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
80
80
|
"@semantic-release/git": "10.0.1",
|
|
81
|
-
"@types/node": "24.19.
|
|
81
|
+
"@types/node": "24.19.4",
|
|
82
82
|
"@types/react": "19.3.0",
|
|
83
83
|
"@types/react-dom": "19.3.0",
|
|
84
84
|
"@ui-sdk/core": "0.1.0-beta.5",
|