From d0ec073bb90a88b9b99ee1232f8765f98f4bd106 Mon Sep 17 00:00:00 2001 From: agessaman Date: Tue, 15 Sep 2026 22:43:12 -0700 Subject: [PATCH] fix(region): accessible chart and alert colors in both themes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bootstrap's .text-warning is #ffc107, which is 1.6:1 on a white card — the headline percentage and the "daily cap reached" line were close to invisible in light mode. The chart fills had the same shape of problem in reverse: the grey "couldn't tell" band sat at 2.1:1 against a white card and 2.9:1 against a dark one. Each color is now a token chosen per theme against the surface it lands on: text clears 4.5:1, fills clear 3:1. Measured in the browser in both themes. --- .../web_viewer/templates/region_warnings.html | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/modules/web_viewer/templates/region_warnings.html b/modules/web_viewer/templates/region_warnings.html index e65021a..e1a1be9 100644 --- a/modules/web_viewer/templates/region_warnings.html +++ b/modules/web_viewer/templates/region_warnings.html @@ -4,12 +4,31 @@ {% block extra_css %}