@slotted/angular 0.1.0-beta.17 → 0.1.0-beta.19

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.
Files changed (37) hide show
  1. package/docs/alert.json +1 -1
  2. package/docs/alert.md +1 -1
  3. package/docs/app-shell.json +19 -2
  4. package/docs/app-shell.md +3 -1
  5. package/docs/description-list.json +9 -1
  6. package/docs/description-list.md +2 -1
  7. package/docs/guidelines/composition.md +12 -0
  8. package/docs/guidelines/errors-and-conflicts.md +7 -6
  9. package/docs/guidelines/index.md +1 -0
  10. package/docs/guidelines/reading-permissions.md +2 -2
  11. package/docs/guidelines/reports.md +1 -1
  12. package/docs/index.md +2 -2
  13. package/docs/inline-message.json +5 -4
  14. package/docs/inline-message.md +6 -5
  15. package/fesm2022/slotted-angular-app-shell.mjs +16 -5
  16. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
  17. package/fesm2022/slotted-angular-collapsible.mjs +2 -2
  18. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
  19. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
  20. package/fesm2022/slotted-angular-description-list.mjs +15 -6
  21. package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
  22. package/fesm2022/slotted-angular-inline-message.mjs +2 -2
  23. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  24. package/fesm2022/slotted-angular-menubar.mjs +2 -1
  25. package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
  26. package/fesm2022/slotted-angular-page-header.mjs +2 -2
  27. package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
  28. package/package.json +3 -3
  29. package/types/slotted-angular-app-shell.d.ts +1 -1
  30. package/types/slotted-angular-app-shell.d.ts.map +1 -1
  31. package/types/slotted-angular-currency-field.d.ts +8 -8
  32. package/types/slotted-angular-currency-field.d.ts.map +1 -1
  33. package/types/slotted-angular-description-list.d.ts +11 -3
  34. package/types/slotted-angular-description-list.d.ts.map +1 -1
  35. package/types/slotted-angular-inline-message.d.ts +2 -2
  36. package/types/slotted-angular-menubar.d.ts +5 -4
  37. package/types/slotted-angular-menubar.d.ts.map +1 -1
package/docs/alert.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "binding": "angular",
5
5
  "catalog": {
6
6
  "group": "Feedback",
7
- "summary": "Static message with a tone, icon and actions."
7
+ "summary": "Framed notice heading a section, a form or a page."
8
8
  },
9
9
  "axes": {
10
10
  "tone": [
package/docs/alert.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- index: ./index.md -->
2
2
  # alert
3
3
 
4
- `data-ui="alert"` · Static message with a tone, icon and actions.
4
+ `data-ui="alert"` · Framed notice heading a section, a form or a page.
5
5
 
6
6
  ## Import
7
7
 
@@ -132,6 +132,8 @@
132
132
  "progress",
133
133
  "aside",
134
134
  "aside-resizer",
135
+ "line",
136
+ "grip",
135
137
  "aside-header",
136
138
  "aside-body",
137
139
  "aside-footer",
@@ -252,6 +254,18 @@
252
254
  "required": false,
253
255
  "purpose": "The pane’s inner edge, from the WAI-ARIA Window Splitter pattern: focusable, role=\"separator\", aria-controls the pane, its three values the extent as whole percentages of the shell. Placed inside the aside; rendering it is the capability. Drawn on the column alone — under asideMode=\"overlay\" or a closed pane it is hidden, and a row under the content hides it."
254
256
  },
257
+ {
258
+ "part": "line",
259
+ "element": "span inside the aside-resizer, aria-hidden",
260
+ "required": false,
261
+ "purpose": "One of the splitter family’s two hairlines on the pane’s edge, drawn from the splitter tokens: fading away from the grip at rest, running the strip under the hand, the drag and the keyboard."
262
+ },
263
+ {
264
+ "part": "grip",
265
+ "element": "span inside the aside-resizer, aria-hidden",
266
+ "required": false,
267
+ "purpose": "The dot matrix between the two lines, two columns by three rows, in the line’s step."
268
+ },
255
269
  {
256
270
  "part": "aside-header",
257
271
  "element": "div",
@@ -597,7 +611,6 @@
597
611
  "--slotted-app-shell-nav-surface",
598
612
  "--slotted-app-shell-radius",
599
613
  "--slotted-app-shell-rail-size",
600
- "--slotted-app-shell-resizer-color",
601
614
  "--slotted-app-shell-row-inset-size",
602
615
  "--slotted-app-shell-row-mark-size",
603
616
  "--slotted-app-shell-row-text-line-height",
@@ -608,7 +621,6 @@
608
621
  "--slotted-app-shell-tone-surface",
609
622
  "--slotted-border-strong",
610
623
  "--slotted-border-subtle",
611
- "--slotted-border-width-thick",
612
624
  "--slotted-border-width-thin",
613
625
  "--slotted-control-font-size-md",
614
626
  "--slotted-control-font-size-sm",
@@ -634,16 +646,21 @@
634
646
  "--slotted-font-weight-semibold",
635
647
  "--slotted-line-height-sm",
636
648
  "--slotted-radius-lg",
649
+ "--slotted-radius-sm",
637
650
  "--slotted-scrim",
638
651
  "--slotted-shadow-lg",
639
652
  "--slotted-shadow-md",
640
653
  "--slotted-shadow-xs",
641
654
  "--slotted-space-1",
655
+ "--slotted-space-12",
642
656
  "--slotted-space-2",
643
657
  "--slotted-space-3",
644
658
  "--slotted-space-4",
645
659
  "--slotted-space-5",
646
660
  "--slotted-space-6",
661
+ "--slotted-space-9",
662
+ "--slotted-splitter-line-active-color",
663
+ "--slotted-splitter-line-color",
647
664
  "--slotted-surface",
648
665
  "--slotted-surface-sunken",
649
666
  "--slotted-target-min",
package/docs/app-shell.md CHANGED
@@ -120,6 +120,8 @@ export class AppShellBasic {}
120
120
  | `progress` | the consumer’s element, holding one [slProgressBar] at placement="edge-start" | no |
121
121
  | `aside` | aside | no |
122
122
  | `aside-resizer` | any element carrying slAppShellAsideResizer | no |
123
+ | `line` | span inside the aside-resizer, aria-hidden | no |
124
+ | `grip` | span inside the aside-resizer, aria-hidden | no |
123
125
  | `aside-header` | div | no |
124
126
  | `aside-body` | div | no |
125
127
  | `aside-footer` | div | no |
@@ -207,7 +209,7 @@ export class AppShellBasic {}
207
209
 
208
210
  ## Tokens
209
211
 
210
- `--slotted-app-shell-aside-color`, `--slotted-app-shell-aside-extent`, `--slotted-app-shell-aside-size-lg`, `--slotted-app-shell-aside-size-md`, `--slotted-app-shell-aside-size-sm`, `--slotted-app-shell-aside-surface`, `--slotted-app-shell-banner-block-size`, `--slotted-app-shell-banner-color`, `--slotted-app-shell-banner-surface`, `--slotted-app-shell-border-color`, `--slotted-app-shell-brand-overflow`, `--slotted-app-shell-brand-wrap`, `--slotted-app-shell-canvas`, `--slotted-app-shell-color`, `--slotted-app-shell-elevation`, `--slotted-app-shell-footer-color`, `--slotted-app-shell-footer-surface`, `--slotted-app-shell-frame`, `--slotted-app-shell-frame-image`, `--slotted-app-shell-gutter`, `--slotted-app-shell-main-color`, `--slotted-app-shell-main-surface`, `--slotted-app-shell-nav-color`, `--slotted-app-shell-nav-overlay-size`, `--slotted-app-shell-nav-size-lg`, `--slotted-app-shell-nav-size-md`, `--slotted-app-shell-nav-size-sm`, `--slotted-app-shell-nav-surface`, `--slotted-app-shell-radius`, `--slotted-app-shell-rail-size`, `--slotted-app-shell-resizer-color`, `--slotted-app-shell-row-inset-size`, `--slotted-app-shell-row-mark-size`, `--slotted-app-shell-row-text-line-height`, `--slotted-app-shell-row-text-size`, `--slotted-app-shell-scrim`, `--slotted-app-shell-scrollbar-thumb-color`, `--slotted-app-shell-scrollbar-track-color`, `--slotted-app-shell-tone-surface`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-duration-medium`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
212
+ `--slotted-app-shell-aside-color`, `--slotted-app-shell-aside-extent`, `--slotted-app-shell-aside-size-lg`, `--slotted-app-shell-aside-size-md`, `--slotted-app-shell-aside-size-sm`, `--slotted-app-shell-aside-surface`, `--slotted-app-shell-banner-block-size`, `--slotted-app-shell-banner-color`, `--slotted-app-shell-banner-surface`, `--slotted-app-shell-border-color`, `--slotted-app-shell-brand-overflow`, `--slotted-app-shell-brand-wrap`, `--slotted-app-shell-canvas`, `--slotted-app-shell-color`, `--slotted-app-shell-elevation`, `--slotted-app-shell-footer-color`, `--slotted-app-shell-footer-surface`, `--slotted-app-shell-frame`, `--slotted-app-shell-frame-image`, `--slotted-app-shell-gutter`, `--slotted-app-shell-main-color`, `--slotted-app-shell-main-surface`, `--slotted-app-shell-nav-color`, `--slotted-app-shell-nav-overlay-size`, `--slotted-app-shell-nav-size-lg`, `--slotted-app-shell-nav-size-md`, `--slotted-app-shell-nav-size-sm`, `--slotted-app-shell-nav-surface`, `--slotted-app-shell-radius`, `--slotted-app-shell-rail-size`, `--slotted-app-shell-row-inset-size`, `--slotted-app-shell-row-mark-size`, `--slotted-app-shell-row-text-line-height`, `--slotted-app-shell-row-text-size`, `--slotted-app-shell-scrim`, `--slotted-app-shell-scrollbar-thumb-color`, `--slotted-app-shell-scrollbar-track-color`, `--slotted-app-shell-tone-surface`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-duration-medium`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-9`, `--slotted-splitter-line-active-color`, `--slotted-splitter-line-color`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
211
213
 
212
214
  ## Examples
213
215
 
@@ -30,6 +30,7 @@
30
30
  "columns": "1",
31
31
  "variant": "plain",
32
32
  "termWidth": "14rem",
33
+ "minColumnWidth": "md",
33
34
  "span": 1,
34
35
  "clamp": 0,
35
36
  "copy": false,
@@ -163,6 +164,13 @@
163
164
  "appliesTo": "slDescriptionList",
164
165
  "description": "Nothing between pairs, a rule between them, or a framed table"
165
166
  },
167
+ {
168
+ "name": "minColumnWidth",
169
+ "type": "'sm' | 'md'",
170
+ "defaultValue": "md",
171
+ "appliesTo": "slDescriptionList",
172
+ "description": "The narrowest column before the count folds: md holds two columns to 34rem of the list and three to 48rem; sm holds two to 25rem and three to 37.5rem"
173
+ },
166
174
  {
167
175
  "name": "termWidth",
168
176
  "type": "string",
@@ -254,7 +262,7 @@
254
262
  "type": "DescriptionListDefaults",
255
263
  "defaultValue": "—",
256
264
  "appliesTo": "Application",
257
- "description": "Sets layout, columns, variant and termWidth once for everything below it; an input on the list still wins"
265
+ "description": "Sets layout, columns, variant, termWidth and minColumnWidth once for everything below it; an input on the list still wins"
258
266
  },
259
267
  {
260
268
  "name": "id / aria-describedby",
@@ -55,6 +55,7 @@ Excerpt — not a complete module
55
55
  | `layout` | `'row' \| 'stack'` | row | slDescriptionList | The term beside its value, or above it |
56
56
  | `columns` | `1 \| 2 \| 3` | 1 | slDescriptionList | How many pairs stand side by side |
57
57
  | `variant` | `'plain' \| 'ruled' \| 'framed'` | plain | slDescriptionList | Nothing between pairs, a rule between them, or a framed table |
58
+ | `minColumnWidth` | `'sm' \| 'md'` | md | slDescriptionList | The narrowest column before the count folds: md holds two columns to 34rem of the list and three to 48rem; sm holds two to 25rem and three to 37.5rem |
58
59
  | `termWidth` | `string` | 14rem | slDescriptionList | The maximum width of the term column; the terms share one track sized to the widest of them, up to this |
59
60
  | `messages` | `PartialMessages<DescriptionListMessages>` | — | slDescriptionList | Words laid over the language in force, key by key: copy, copied, copyBlocked, reveal, collapse, placeholder |
60
61
  | `span` | `1 \| 2 \| 3` | 1 | slDescriptionListItem | How many columns the pair takes, clamped to the count the list has |
@@ -67,7 +68,7 @@ Excerpt — not a complete module
67
68
  | `defaultRevealed` | `boolean` | false | slDescriptionListDescription | What an uncontrolled description starts from, read once |
68
69
  | `ng-content` | `projection` | — | slDescriptionList, slDescriptionListDescription | Pairs are projected into the dl the component draws, and a value into the span that holds it |
69
70
  | `exportAs` | `string` | — | every directive | Reaches the instance from the template: slDescriptionList, slDescriptionListItem, slDescriptionListTerm, slDescriptionListHint, slDescriptionListDescription, slDescriptionListAction |
70
- | `provideDescriptionListDefaults()` | `DescriptionListDefaults` | — | Application | Sets layout, columns, variant and termWidth once for everything below it; an input on the list still wins |
71
+ | `provideDescriptionListDefaults()` | `DescriptionListDefaults` | — | Application | Sets layout, columns, variant, termWidth and minColumnWidth once for everything below it; an input on the list still wins |
71
72
  | `id / aria-describedby` | `string` | — | slDescriptionListTerm, slDescriptionListAction | A static attribute you wrote survives the host binding: the term keeps your id, and the action composes your description with the term’s |
72
73
  | `content` | `projection` | — | slDescriptionListDescription | A tag, a status indicator, a link or a skeleton — the value slot takes what the row needs |
73
74
 
@@ -25,6 +25,8 @@ triggers:
25
25
  ]
26
26
  families:
27
27
  [
28
+ alert,
29
+ inline-message,
28
30
  page-header,
29
31
  app-shell,
30
32
  top-navigation,
@@ -141,3 +143,13 @@ Why: A list at `bleed`, a record at `wide` and a form at `content` moved the col
141
143
  Do: Set `full` on every destination and `wide` on every form, on the page and nowhere else; a list keeps `fill` (LP-12); a form arranges its fields in a `grid` within that width.
142
144
  Don't: Give each page type a measure of its own, or cap a form's body with a width of the screen's own.
143
145
  Check: Move between two destinations of the navigation: the header's and the body's start and end edges stay on the same lines.
146
+
147
+ ### CP-11 · A message about a region is an alert
148
+
149
+ Level: SHOULD
150
+ Applies to: every message a screen shows that is not a `toast` — a notice, a warning, a refusal, a pending state, an absence explained
151
+ Rule: A message about one control or one value is an `inline-message` under or beside that control; a message about anything larger — a section, a form, a panel, a list, a record, the page — is an `alert` at the head of that region.
152
+ Why: `inline-message` is a line of muted text with no frame, sized to stay quieter than the control above it; standing alone at the head of a region it reads as a stray caption, and the region's notice loses the title, the frame and the actions that `alert` carries.
153
+ Do: Name the one control or value each `inline-message` is attached to; where there is none, use `alert` with the tone of the message, a title when the message has more than one sentence, and its actions part for what the reader does next. A control inside `field` takes the field's error and description parts, which render an `inline-message` already.
154
+ Don't: Put an `inline-message` at the top of a section, a card, a drawer, a dialog or a page; give it a larger size to make it read as a section notice; or stack several of them as a list of a region's problems.
155
+ Check: For each `inline-message` on the screen, point at the one control or value it describes, in the same row or the row above; a message with no such control, or one placed above a region's content, fails.
@@ -19,16 +19,17 @@ triggers:
19
19
  state,
20
20
  transition,
21
21
  ]
22
- families: [inline-message, toast, result-state, button, dialog]
22
+ families: [alert, inline-message, toast, result-state, button, dialog]
23
23
  ---
24
24
 
25
25
  # Errors and conflicts
26
26
 
27
- What a screen does with an answer that is not the one it asked for. The
28
- library gives `inline-message` six tones, `result-state` four statuses and
29
- `toast` a place for what is passing; it does not say which of them a refusal
30
- belongs in, or that two refusals a reader must answer differently should not
31
- look the same.
27
+ What a screen does with an answer that is not the one it asked for. A field's
28
+ refusal is an `inline-message` under the field; a command's refusal is an
29
+ `alert` at the head of the region the command acted on (CP-11); `result-state`
30
+ replaces a region that cannot be read, and `toast` holds what is passing. The
31
+ library does not say that two refusals a reader must answer differently should
32
+ not look the same.
32
33
 
33
34
  ### ER-01 · A refusal is classed before it is shown
34
35
 
@@ -31,6 +31,7 @@ Every active rule, one line each. Load this first; load a topic file when the ta
31
31
  | CP-08 | MUST | Switching the mode changes the words and the values in the region, never the size, the line count or the position of any box in it or around it; text whose length differs between modes stands on one line, cut with an ellipsis and read whole from its title. | `composition.md` |
32
32
  | CP-09 | MUST | The control's own state — the selected tab, the pressed segment — updates in the interaction's frame; the region renders from a deferred value (in React, useDeferredValue or startTransition) and states aria-busy while the shown value lags the selected one. | `composition.md` |
33
33
  | CP-10 | SHOULD | Every destination of the navigation — a list, a record, a dashboard, an overview — is `full`, so moving between destinations never moves the column's edges; a create or edit form is `wide` and lays its fields out in a grid of the form's own; a page of preferences read as prose is `measure`. | `composition.md` |
34
+ | CP-11 | SHOULD | A message about one control or one value is an `inline-message` under or beside that control; a message about anything larger — a section, a form, a panel, a list, a record, the page — is an `alert` at the head of that region. | `composition.md` |
34
35
  | CV-01 | MUST | From 600 pixels the conversation fills its region and scrolls on its own with the composer under it, and the record's context scrolls on its own beside it or behind a tab of the header; below 600 pixels the page scrolls, the composer is stuck to the bottom of the screen, and the record opens on its last message. | `conversations.md` |
35
36
  | CV-02 | SHOULD | A running clock says the business time left and the hour it falls due in the organization's zone, a passed one by how much and when it was due, a paused one that it is stopped and why; a queue's row says the span alone, and no clock is ever said in raw minutes. | `conversations.md` |
36
37
  | CV-03 | SHOULD | Each queue is a view of the list's `filter-bar`, a tree of the bar's own fields, labelled with the count of the rows it opens on; choosing it writes its pills, and editing a pill leaves a view the bar marks as changed. | `conversations.md` |
@@ -19,7 +19,7 @@ triggers:
19
19
  forbidden,
20
20
  scope,
21
21
  ]
22
- families: [data-grid, table, stat-card, inline-message, tabs, filter-bar]
22
+ families: [data-grid, table, stat-card, alert, tabs, filter-bar]
23
23
  ---
24
24
 
25
25
  # Reading under permissions
@@ -46,7 +46,7 @@ Level: SHOULD
46
46
  Applies to: a screen that left a value out under PM-01, where its absence changes what the remaining numbers mean
47
47
  Rule: One statement names the permission the value needs and the roles that hold it; two missing permissions are one statement, not two.
48
48
  Why: A figure row with a hole in it reads as a screen that failed rather than as a screen that was told not to say; and a reader who holds neither permission does not need to be told twice in two tones.
49
- Do: Put the statement where the absence changes the reading — under the figures on a record, above the rows on a list — and use the permission's own name, which is what a reader asks an administrator for.
49
+ Do: Put the statement in an `alert` where the absence changes the reading — under the figures on a record, above the rows on a list — and use the permission's own name, which is what a reader asks an administrator for.
50
50
  Don't: Repeat the statement per tab, per column or per card, or leave the absence unexplained where the rest of the numbers depend on it.
51
51
  Check: Sign in as a reader holding neither the price nor the cost permission: one sentence names both permissions and the roles that hold them.
52
52
 
@@ -19,7 +19,7 @@ triggers:
19
19
  history,
20
20
  ranking,
21
21
  ]
22
- families: [page-header, select, stat-card, chart, table, list, section, inline-message]
22
+ families: [page-header, select, stat-card, chart, table, list, section, alert]
23
23
  ---
24
24
 
25
25
  # Reports
package/docs/index.md CHANGED
@@ -85,9 +85,9 @@ Each family is documented in `./<family>.md`.
85
85
  - typography: Text and heading with type scale steps.
86
86
 
87
87
  ## Feedback
88
- - alert: Static message with a tone, icon and actions.
88
+ - alert: Framed notice heading a section, a form or a page.
89
89
  - import-export-center: Import and export jobs with progress.
90
- - inline-message: Short status message next to content.
90
+ - inline-message: The hint or error of one field; a region uses alert.
91
91
  - loading-overlay: Veil and indicator over a loading region.
92
92
  - notification-center: Read and unread notifications with actions.
93
93
  - progress-indicator: Progress bar or ring, known or indeterminate.
@@ -4,7 +4,7 @@
4
4
  "binding": "angular",
5
5
  "catalog": {
6
6
  "group": "Feedback",
7
- "summary": "Short status message next to content."
7
+ "summary": "The hint or error of one field; a region uses alert."
8
8
  },
9
9
  "axes": {
10
10
  "tone": [
@@ -115,7 +115,7 @@
115
115
  "type": "'sm' | 'md'",
116
116
  "defaultValue": "sm",
117
117
  "appliesTo": "slInlineMessage",
118
- "description": "The type step. sm is the message of a field, md the message of a section; both read the control scales, which the theme restates per density"
118
+ "description": "The type step. sm beside a compact field, md beside a large field; both read the control scales, which the theme restates per density"
119
119
  },
120
120
  {
121
121
  "name": "live",
@@ -206,6 +206,7 @@
206
206
  ],
207
207
  "events": [],
208
208
  "accessibility": [
209
+ "A message about a section, a page or a command’s outcome is an alert, at reach section or page. This family is the message of one field or one control, under or beside it.",
209
210
  "There is no WAI-ARIA APG pattern for a message attached to a field. Three documents cover it between them: the APG Alert Pattern (w3.org/WAI/ARIA/apg/patterns/alert/) for the announcing behaviour, MDN’s aria-errormessage reference for the wiring, and WCAG 2.2 Understanding 3.3.1 Error Identification for the requirement that the error be identified in text.",
210
211
  "The severity is a word, not only a colour and a mark. A reader who cannot see the message hears the sentence and nothing else, so the family writes “Error:”, “Warning:” or “Success:” in clipped text before it — GOV.UK’s Error message component publishes the idea for errors, and this generalises it to every severity and to a table an application replaces once through provideInlineMessageDefaults.",
211
212
  "The live role goes on the host. slAlert puts its role on an inner part because it has a dismiss button beside its text and MDN’s alert role reference restricts the role to text content; this family owns no controls, so the element that is the text is the element that announces. live defaults to off, because a message already present when the page finishes loading is announced by nothing whatever role it carries.",
@@ -259,9 +260,9 @@
259
260
  {
260
261
  "id": "sizes",
261
262
  "title": "The step the message sits at",
262
- "note": "sm is the message of a field and md the message of a section. Both read the control scales, so switching the toolbar to dense shrinks them with the rows around them.",
263
+ "note": "sm sits beside a compact field and md beside a large field. Both read the control scales, so switching the toolbar to dense shrinks them with the rows around them.",
263
264
  "language": "html",
264
- "source": "<p slInlineMessage size=\"sm\" tone=\"danger\">A mensagem de um campo.</p>\n<p slInlineMessage size=\"md\" tone=\"danger\">A mensagem de uma seção.</p>\n",
265
+ "source": "<p slInlineMessage size=\"sm\" tone=\"danger\">A mensagem de um campo compacto.</p>\n<p slInlineMessage size=\"md\" tone=\"danger\">A mensagem de um campo grande.</p>\n",
265
266
  "verdict": "excerpt"
266
267
  },
267
268
  {
@@ -1,7 +1,7 @@
1
1
  <!-- index: ./index.md -->
2
2
  # inline-message
3
3
 
4
- `data-ui="inline-message"` · Short status message next to content.
4
+ `data-ui="inline-message"` · The hint or error of one field; a region uses alert.
5
5
 
6
6
  ## Import
7
7
 
@@ -38,7 +38,7 @@ Excerpt — not a complete module
38
38
  | Name | Type | Default | Applies to | Description |
39
39
  | --- | --- | --- | --- | --- |
40
40
  | `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slInlineMessage | What the message is about, and therefore which mark it draws and which word a reader hears first. secondary is help: no mark, no word, and the neutral muted ink |
41
- | `size` | `'sm' \| 'md'` | sm | slInlineMessage | The type step. sm is the message of a field, md the message of a section; both read the control scales, which the theme restates per density |
41
+ | `size` | `'sm' \| 'md'` | sm | slInlineMessage | The type step. sm beside a compact field, md beside a large field; both read the control scales, which the theme restates per density |
42
42
  | `live` | `'off' \| 'polite' \| 'assertive'` | off | slInlineMessage | Whether the message announces itself. polite writes role="status" and assertive writes role="alert", both on the host — there are no controls inside it to keep out of the region. A role the template wrote is read first and kept |
43
43
  | `mark` | `'glyph' \| 'dot' \| 'none'` | glyph | slInlineMessage | Which mark is drawn. glyph is the tone’s own silhouette; dot is one neutral bullet in the tone’s ink, the same shape for every tone including help; none draws nothing, and the tone is said by the ink and the weight of the sentence. slField and slFieldGroup ask for none, because a silhouette under every control of a form is texture rather than a warning |
44
44
  | `prefix` | `string` | — | slInlineMessage | The word read before the message. Unstated is the tone’s own; the empty string removes it, for a sentence that already names the severity |
@@ -63,6 +63,7 @@ Excerpt — not a complete module
63
63
 
64
64
  ## Rules
65
65
 
66
+ - A message about a section, a page or a command’s outcome is an alert, at reach section or page. This family is the message of one field or one control, under or beside it.
66
67
  - There is no WAI-ARIA APG pattern for a message attached to a field. Three documents cover it between them: the APG Alert Pattern (w3.org/WAI/ARIA/apg/patterns/alert/) for the announcing behaviour, MDN’s aria-errormessage reference for the wiring, and WCAG 2.2 Understanding 3.3.1 Error Identification for the requirement that the error be identified in text.
67
68
  - The severity is a word, not only a colour and a mark. A reader who cannot see the message hears the sentence and nothing else, so the family writes “Error:”, “Warning:” or “Success:” in clipped text before it — GOV.UK’s Error message component publishes the idea for errors, and this generalises it to every severity and to a table an application replaces once through provideInlineMessageDefaults.
68
69
  - The live role goes on the host. slAlert puts its role on an inner part because it has a dismiss button beside its text and MDN’s alert role reference restricts the role to text content; this family owns no controls, so the element that is the text is the element that announces. live defaults to off, because a message already present when the page finishes loading is announced by nothing whatever role it carries.
@@ -91,13 +92,13 @@ Excerpt — not a complete module
91
92
 
92
93
  ### The step the message sits at
93
94
 
94
- sm is the message of a field and md the message of a section. Both read the control scales, so switching the toolbar to dense shrinks them with the rows around them.
95
+ sm sits beside a compact field and md beside a large field. Both read the control scales, so switching the toolbar to dense shrinks them with the rows around them.
95
96
 
96
97
  Excerpt — not a complete module
97
98
 
98
99
  ```html
99
- <p slInlineMessage size="sm" tone="danger">A mensagem de um campo.</p>
100
- <p slInlineMessage size="md" tone="danger">A mensagem de uma seção.</p>
100
+ <p slInlineMessage size="sm" tone="danger">A mensagem de um campo compacto.</p>
101
+ <p slInlineMessage size="md" tone="danger">A mensagem de um campo grande.</p>
101
102
  ```
102
103
 
103
104
  ### A message that is still waiting