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.
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.
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.
proposed/interdiff-forced-colors-status-icons.patch (2 files, 8 insertions)proposed/tests/forced_colors_status_icons.py (3 tests, passing)proposed/test/forced-status-after.html / forced-status-proposed.htmlscreens/live-status-forced-light-after.png, screens/live-status-forced-dark-after.pngscreens/live-status-forced-light-proposed.png, screens/live-status-forced-dark-proposed.pngscreens/forced-status-after-*.png / forced-status-proposed-*.pngMeasured 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).
images/icons/000f33/chevron-down.svg has a hard-coded #000f33 fill and is invisible on a forced-dark raw preview. It is not used by the MR.images/icons/chevron-down.svg is used as a select background. In forced colours the rule in form--select.pcss.css sets background-image: none and appearance: revert, so the browser draws the native select arrow.images/icons/tabledrag-handle.svg is a mask. Under forced colours the handle computes background-color: LinkText (blue in forced light, yellow in forced dark) and is visible.000f33/tabledrag-handle.svg and images/src/tabledrag-handle.svg), not after assets. They are removed/unused; their raw previews are not evidence of an after-side forced-colours bug.