Handoff — Drupal MR !16166 SVG review

Status: MR !17967 is open. This is an independent review lab, not an official Drupal repository, and not RTBC.

2026-11-25 revision

Status: branch and MR published. Issue-fork branch 3603162-svg-revision; MR !17967 is open. No Drupal.org issue comment has been posted.

The revision restores the autocomplete and media-edit icons, fixes dark disabled checkbox and select states, keeps status masks visible in forced colours, replaces the invalid sticky-loader pseudo-element, and makes tabledrag tree strokes use currentColor. It removes 15 unused assets and 20 registry entries, and adopts 45 pixel-identical SVGO results; 41 existing SVGs are smaller, 2 are larger, and 2 are new pretints.

Executed: 64 SVGs validated with 0 errors; reference audit 0 undefined/missing/unused; 46 regression tests; 14 theme Unit/Kernel tests with 209 assertions; axe 0 violations on three pages; Stylelint, Twig lint and Core CSS build checks pass.

Not executed: 8 functional PHPUnit tests (no test web server), native Windows High Contrast, Firefox or WebKit. Full AJAX Save/Preview was not exercised; Drupal's real progress markup was injected. No WCAG 2.2 AA claim.

The sections below describe the earlier nine-patch proposal and are historical.

Read this first

Start with the proposed reports index for the current revision and the full report list.

The repo contains proposed fixes, cleanup and optimisation built on top of the MR. It is not a mirror of the MR. “After-side” means the MR tree; “proposed” means this working tree. “Unused — optional removal” is a cleanup recommendation, not an MR deletion.

The unused conclusion comes from a literal source + CSS-variable alias scan, not a rendered-page audit. See the usage method.

What is verified

What is NOT verified

Patch order

Apply in this order to a checkout at the MR head:

# Patch Purpose
1 proposed/interdiff-checkmark.patch Dark disabled checkmark contrast
2 proposed/interdiff-forced-colors-status-icons.patch Status icons in forced colours
3 proposed/interdiff-svg-optimization-required.patch Required marker optimisation
4 proposed/interdiff-svg-cleanup.patch Remove unused after-side assets
5 proposed/interdiff-svg-optimization-status-family.patch Status family optimisation
6 proposed/interdiff-loader-currentcolor.patch Sticky loader currentColor/mask
7 proposed/interdiff-svg-metadata-normalization.patch Decorative ARIA/viewBox consistency
8 proposed/interdiff-svg-high-use-optimization.patch Repeated controls
9 proposed/interdiff-svg-over-300-optimization.patch Latest: every SVG over 300 B
git apply -p1 proposed/interdiff-checkmark.patch
git apply -p1 proposed/interdiff-forced-colors-status-icons.patch
git apply -p1 proposed/interdiff-svg-optimization-required.patch
git apply -p1 proposed/interdiff-svg-cleanup.patch
git apply -p1 proposed/interdiff-svg-optimization-status-family.patch
git apply -p1 proposed/interdiff-loader-currentcolor.patch
git apply -p1 proposed/interdiff-svg-metadata-normalization.patch
git apply -p1 proposed/interdiff-svg-high-use-optimization.patch
git apply -p1 proposed/interdiff-svg-over-300-optimization.patch

Do not apply patch 7 independently of patches 1–6: it is generated against the preceding working tree.

Current totals

Measure Before / after
SVG set 41,981 → 28,661 bytes (−31.7%)
Compiled icons.css 40,615 → 25,587 bytes (−37.0%)
Proposed SVG count 74 after-side → 61 (14 optional removals + 1 new pretint)
Over-300 files 39 attempted; 38 adopted; help.svg skipped
High-use set 21 files; 562 SVG bytes; 1,492 compiled CSS bytes

menu.svg is an important nuance: the supplied hamburger path is used, but the proposed source is 438 B versus the MR's 421 B because it restores viewBox/ARIA. The compiled hamburger data URI is still smaller: 432 B proposed vs 451 B after-side.

Recommended upstream subset

Do not submit all nine patches as one change. Proposed split:

  1. Confirmed accessibility fixes: checkmark, forced-colours status icons.
  2. Confirmed currentColor fix: loader, after a real component test.
  3. Structural metadata: optional, if maintainers want it.
  4. Cleanup and optimisation: separate decisions. The optional removals need a rendered-usage audit; optimisation needs maintainer agreement on scope/design.

Files to read

Release rule

This release is a review artefact. No upstream Drupal push, no MR comment, and no RTBC claim were made. Any upstream submission needs explicit authorization and a maintainer-scoped subset.