@apliteni/apliteni-ui 0.76.0 → 0.76.1

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.
@@ -56,13 +56,13 @@
56
56
 
57
57
  <!-- rule: disabled-legibility -->
58
58
 
59
- **Rule:** Give a disabled control its own ink and surface pair, and take the accent off it.
59
+ **Rule:** Give a disabled control its own ink, surface and edge, and take the accent off it.
60
60
 
61
61
  **Do:** Unavailable reads as unavailable with the pointer nowhere near it.
62
62
 
63
63
  **Don't:** Unavailable keeps the live paint, so only the cursor reports the state.
64
64
 
65
- **Except:** A disabled label must stay legible, so the pair changes rather than fades. Only the label-free switch track may fade.
65
+ **Except:** A disabled label must stay legible, so the pair changes rather than fades. Only the label-free switch track may fade, and a control that draws no box when it is on — a ghost button — draws none when it is off, so its ink carries the state alone. Where the browser fades a control for you, as Chromium does a disabled select, reset that fade: it takes the edge and the words down together, and the words are what a reader still has to read.
66
66
 
67
67
  ## Touch field text
68
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.76.0",
3
+ "version": "0.76.1",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -55,6 +55,9 @@
55
55
  UA's grey-out, so a disabled one had looked exactly like a live one.
56
56
  `background-color`, not `background` — the shorthand also resets the three
57
57
  longhands the chevron is drawn with (#511). Held by stories/select-chevron.test.js.
58
+ `opacity` is the other half of that grey-out, and no colour here outranks it, so
59
+ the fade is reset below — it took the edge and the words down together. #564,
60
+ argued at docs/specification.md#colour-and-contrast.
58
61
  why: docs/specification.md#icons-and-glyphs */
59
62
  .ui-input:disabled,
60
63
  .ui-select:disabled,
@@ -62,6 +65,7 @@
62
65
  background-color: var(--disabled-surface); /* ring-gap: inherit — control paint; its focus indicator uses the containing surface. */
63
66
  border-color: var(--disabled-border);
64
67
  /* muted-ink: state — unavailable control */ color: var(--disabled-ink);
68
+ opacity: 1; /* fade-reset: the UA's select:disabled grey-out. #564 */
65
69
  cursor: not-allowed;
66
70
  }
67
71
 
@@ -194,7 +194,11 @@
194
194
  why: docs/specification.md#colour-and-contrast */
195
195
  --disabled-ink: var(--muted);
196
196
  --disabled-surface: var(--surface);
197
- --disabled-border: var(--border);
197
+ /* One rung below the hairline, so an off box is not the live box with quieter words
198
+ in it: dark answered both with --border. 1.16:1 on the card against the live
199
+ 1.27:1, and as far down as the headroom goes. #564
200
+ why: docs/specification.md#colour-and-contrast */
201
+ --disabled-border: var(--surface-3);
198
202
  /* The ink of a disabled control that paints no box of its own — a ghost button. With
199
203
  no surface beside it, it is read on whatever is behind it, so it is set to clear the
200
204
  floor on the dullest ground there is (--surface-3). #273
@@ -371,6 +375,8 @@
371
375
  /* Disabled text stays on the card surface; its ink marks the unavailable state. */
372
376
  --disabled-ink: var(--muted);
373
377
  --disabled-surface: var(--surface);
378
+ /* The hairline, where dark takes the rung under it: light's field edge is already
379
+ --border-strong, so the two states read 1.52:1 and 1.24:1. #564 */
374
380
  --disabled-border: var(--border);
375
381
  --disabled-ink-bare: #585e6c;
376
382