fix(marketing): A-2.8b — Loi 25 badge contrast (WCAG AA) + stale docstring

- Loi 25 article number badges (Art. 3.3, 3.5, 14): change from
  `grad-bg text-white text-xs font-black` to `bg-brand-navy text-white
  text-xs font-black`. White-on-grad-bg failed AA on the cyan/green
  portion of the gradient (~2:1 contrast); solid navy gives ~16:1.
- Update routes.py module docstring to past tense (A-2.8b is now done).
- Add regression assertion ensuring badges use solid navy, not grad-bg.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Allison
2026-04-27 21:37:05 -04:00
parent 3646a5e64d
commit d45c9c9349
3 changed files with 9 additions and 2 deletions

View File

@@ -219,6 +219,13 @@ def test_conformite_loi25_3_articles():
# Article topics
for topic in ['EFVP', 'Audit trail', 'Consentement']:
assert topic in body, f"Conformité missing Loi 25 topic: {topic}"
# I-1 fix: badge must use solid bg-brand-navy (not grad-bg) — WCAG AA
# text-on-grad-bg only achieves ~2:1 contrast on the cyan/green portion
assert 'bg-brand-navy text-white text-xs font-black' in body, \
"Loi 25 badges must use solid navy background for WCAG AA contrast (not grad-bg)"
# The grad-bg should NOT appear with the small badge text combo
assert 'grad-bg text-white text-xs font-black' not in body, \
"Removed grad-bg + small white text combo (WCAG AA fail)"
def test_conformite_agpl_section_with_external_links():