frontend: give links and license operators sufficient contrast #1640
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 226 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1640"
general
weight: 0.35
Sigmanificient
The Lighthouse accessibility audit (as in PageSpeed Insights) gives "Background and foreground colors do not have a sufficient contrast ratio" for the links in the light theme. The minimum contrast for normal text is 4.5:1.
--link-color#007dbbhad 4.32:1 on the header background#fafafa(for example "Functions" and "NixOS Wiki") and 4.21:1 on thecodebackground#f7f7f9(the license links). Now it is#0078b4, which has the same hue and 4.52:1 or more on the light backgrounds.--search-result-title-color#08chad 3.89:1 on white. Now it isvar(--link-color), as in the dark theme..license-operator(AND,OR,WITH) hadopacity: 0.75, with 3.36:1 in the light theme and 3.41:1 in the dark theme. The bold weight keeps the operators different from the license names, thus the opacity is removed.The audit "Links rely on color to be distinguishable" also failed: the links in a license expression and the Repology link in the package details were different from the text around them only by color. Now they are underlined. The license item gets the class
package-licensefor this.The dark theme colors of links do not change.
Test
With
axe-core(the engine of Lighthouse) in headless Chromium, the rulescolor-contrastandlink-in-text-blockgive no findings in the light and the dark theme on:/packagesand/optionswithout a query/packages?query=opensslwith the details ofopensslandrPackages.opensslopen/options?query=opensslwith an option open/flakes?query=nixBefore this change, the light theme gave 2 to 100 findings on each of these pages.
elm-format --validatepasses.elm-reviewgives the same findings as onmain.Assisted-by: Claude:claude-opus-5-5
https://claude.ai/code/session_01RbKyH4BqJsALnGLHTjmKKo