Forced-colours audit: status-report icons, chevron and tabledrag

Scope: the icons you flagged after reviewing the patch gallery under forced colours. Tested in Chromium forced-colours emulation and on the live Drupal 12 lab at /admin/reports/status. The live lab theme is restored exactly afterwards.

Confirmed issue: status-report icons disappear

All five .system-status-general-info__item-icon items use a masked ::before over:

background-color: var(--admin-color-primary);

Under forced colours the author background is replaced with Canvas. The mask is then painted in the same colour as the page background:

Mode Page background Icon ::before background Result
Forced light rgb(255,255,255) Canvas rgb(255,255,255) Invisible
Forced dark rgb(0,0,0) Canvas rgb(0,0,0) Invisible

This affects images/logos/drupal.svg and the server, clock, PHP and database status icons. The SVG itself is fine; the problem is the background colour behind the mask.

This is pre-existing in the before revision as well as MR head; it is not introduced by !16166. It is still a real forced-colours defect worth fixing.

Proposed fix

Add a system-colour override inside the icon block:

@media (forced-colors: active) {
  .system-status-general-info__item-icon::before {
    background-color: CanvasText;
  }
}

Applied only in forced-colours mode; the normal --admin-color-primary circle remains unchanged.

Measured after the fix: forced light drupalBg = rgb(0,0,0) on rgb(255,255,255); forced dark drupalBg = rgb(255,255,255) on rgb(0,0,0).

Chevron-down

Tabledrag handle

Limitations