Commit 5a66a2a
docs(pages): tighten demo cleanup
Follow-up to 1440849 — fixes flagged by code review:
- Drop unused `--paper-4` CSS variable.
- Remove empty `.demo__readout:not(:empty):not(:has(*))` ruleset (the
comment was its only content).
- Cache `$('#autocomplete-ajax-x')` as `$ghost` in demo.js so the per-
keystroke `onHint` callback doesn't re-query the DOM.
- Drop duplicate `aria-label="Suggestions render here"` on
`#suggestions-container` — the visible `<span>` text already conveys
it, so the label was causing duplicate screen-reader announcements.
- Replace sub-pixel `1.5px` border / `0.5px` padding on the match-
highlight `<strong>` with whole-pixel values (browsers were rounding
the sub-pixels inconsistently across rows).
- Drop the redundant `color` transition on `.autocomplete-suggestion`
(selected and default both resolve to `--ink`, so it was a no-op).
- Derive `.ghost-stack` height from `1lh + padding + border` rather
than a hardcoded `3.5rem`, with `min-height` as a fallback — keeps
the ghost field in sync with the input's actual line metrics
including on narrow viewports where font-size drops.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1440849 commit 5a66a2a
3 files changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
323 | | - | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
| |||
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | | - | |
| 362 | + | |
| 363 | + | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
455 | 454 | | |
456 | 455 | | |
457 | 456 | | |
458 | | - | |
| 457 | + | |
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
| |||
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
476 | | - | |
| 474 | + | |
| 475 | + | |
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments