From 6990abff45290d033c4bb14c6677a8ad584344f7 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:03:06 +0100 Subject: [PATCH] fix: keep the proofreading forced-colours rules after the main forced-colours block #1397 --- app/accessibility.css | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/accessibility.css b/app/accessibility.css index 60ba4140a..e016d2204 100644 --- a/app/accessibility.css +++ b/app/accessibility.css @@ -279,17 +279,6 @@ html.dark[data-contrast="more"] { --text-issue-style: #fcd34d; --text-issue-other: #e5e7eb; } -@media (forced-colors: active) { - .tiptap .text-issue { - text-decoration-color: CanvasText; - text-decoration-thickness: 2px; - } - .tiptap .text-issue-active { - forced-color-adjust: none; - background-color: Highlight; - color: HighlightText; - } -} /* ---------- Reduced transparency ---------- */ @@ -517,3 +506,16 @@ html.dark[data-contrast="more"] { :root[data-simple-mode="on"] [data-simple-hide] { display: none !important; } + +/* Proofreading underlines in forced colours: one colour, so the line styles tell the kinds apart. */ +@media (forced-colors: active) { + .tiptap .text-issue { + text-decoration-color: CanvasText; + text-decoration-thickness: 2px; + } + .tiptap .text-issue-active { + forced-color-adjust: none; + background-color: Highlight; + color: HighlightText; + } +}