Initials avatars fail WCAG AA contrast: WG hue text on its own tint
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css
- Domain
- accessibility
Research direction
Start with .mc-avatar--initials in assets/css/site.css around line 743, then search for the listed sibling selectors and Summer School faculty monograms. Check computed contrast in both themes at desktop and phone widths; done means the initials meet 4.5:1 while their backgrounds and borders stay unchanged.
Written by the indexing model from the issue text.
Description
What's happening
.mc-avatar--initials (assets/css/site.css, line 743) sets the initials in the Working Group hue, var(--wg-accent, var(--accent-2)), on a 14% tint of the same hue. At 1.1rem and weight 600 the text needs 4.5:1. Measured on a glass card in light mode: WG4 1.88:1, WG2 2.17:1, the --accent-2 fallback 3.0:1, WG1 3.75:1, WG3 3.77:1. In dark mode WG1 and WG3 measure 3.25:1.
Why it matters
Every initials avatar fails WCAG 2.1 AA 1.4.3 in light mode, and the WG1 and WG3 ones fail in dark mode too. They appear wherever a member has no headshot, and the accessibility statement claims AA for both themes.
Fix path
Set the text colour to the hue mixed with --ink, which flips with the theme:
color: color-mix(in srgb, var(--wg-accent, var(--link)) 55%, var(--ink));
Measured results: light 4.9:1 (WG4) to 7.5:1 (WG3), dark 6.3:1 (WG1) to 8.5:1 (--link). Keep the background and border as they are. Grep for siblings that set a WG hue as text on its own tint (.spotlight-initials, .fg-initials, the Summer School faculty monograms) and apply the same rule. Verify with getComputedStyle at desktop and phone width in both themes.
Target
v1.16.0
Generated by Claude Code
- Dominant language
- HTML
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 163
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EISSeuropa/netsec.github.io
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
EISSeuropa/netsec.github.io#2302 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
EISSeuropa/netsec.github.io#2218 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
EISSeuropa/netsec.github.io#1995 ·
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
EISSeuropa/netsec.github.io#1941 ·
Maintainers usually reply within 1 day
-
contributor A help wanted
Difficulty 2/5 1-2 days Newbie friendliness 72/100
EISSeuropa/netsec.github.io#1631 · 3 comments ·
Maintainers usually reply within 1 day
All issues in EISSeuropa/netsec.github.io
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Urigo/accounter-fullstack#5302 ·
Maintainers usually reply within 2 days
-
Login form: duplicate IDs (username, password) if a page contains more than one login formPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
contao/contao#10654 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
nightly-labs/openbot#21221 ·
Maintainers usually reply within 1 day
-
issue(a11y): at 320 px wide, the EXPERIMENTAL badge breaks in the middle of the wordPossibly taken A pull request linked to this issue is open or already merged. Openbug confirmed issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100
open-webui/open-webui#35507 · 2 comments ·
Maintainers usually reply within 1 day