Skip to content

feat: deltag-aarhus mock — WCAG fixes, new CTAs, and "Enig" vote#28

Merged
yepzdk merged 1 commit into
mainfrom
feature/deltag-aarhus-wcag-and-cta
Jun 11, 2026
Merged

feat: deltag-aarhus mock — WCAG fixes, new CTAs, and "Enig" vote#28
yepzdk merged 1 commit into
mainfrom
feature/deltag-aarhus-wcag-and-cta

Conversation

@yepzdk

@yepzdk yepzdk commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Accessibility fixes plus two interaction experiments for the deltag.aarhus.dk hearing-detail prototypes (Vosnæs + Uniparken). All changes are in the self-contained mocks under docs/public/projects/deltag-aarhus/mocks/ — no design-system files touched.

Accessibility (WCAG)

  • Borders (cards, inputs, dropdowns, dividers) raised to #8c8c8c (3.36:1, SC 1.4.11) via the --border-default/--border-subtle tokens; hardcoded --gray-200/--gray-350 separators repointed at the semantic token
  • Muted text: --text-muted#767676 (4.54:1, SC 1.4.3). Footer links → --gray-350 (9.48:1) — they sit on a dark #333 background where darkening would have failed
  • Submission-form hint/notice text darkened to --text-secondary (~7:1) and de-italicised; the notice info icon now follows the text colour instead of the near-invisible --gray-400 (from browser-feedback)

Call-to-action experiment

  • Outline "Skriv et høringssvar" in the header (hidden on the closed variant) + a centered primary one below the answers list, alongside the existing one; all wired via a shared js-submit-horingssvar class
  • Help text on the Kategori select, linked with aria-describedby
  • Tip on the closed ("Afsluttet") variant linking down to the statistics section

Vote experiment

  • "synes om" like reframed as an agreement vote: handshake icon (fa-regular fa-handshake, confirmed free) + "{antal} er enig(e)" (singular-aware via DM.enigeLabel); sort option renamed "Flest enige". Applied to cards and the detail modal across both prototypes. The underlying likes data field is unchanged.

Test plan

  • task dev → open …/projects/deltag-aarhus/mocks/index.html (closed) and ?variant=open
  • Borders and muted text clearly readable; spot-check contrast (borders ≥ 3:1, text ≥ 4.5:1)
  • Open variant: all three "Skriv et høringssvar" buttons open the MitID modal
  • Closed variant: header outline button hidden; the two primary buttons disabled with deadline tooltip; tip appears and scrolls to statistics
  • Kategori hint shows under the select in the submission form
  • Cards + detail modal show the handshake icon and "er enige"; clicking increments; sort reads "Flest enige"; handshake renders (no blank glyph)
  • Same vote/CTA behaviour holds in the Uniparken mock

Generated with Claude Code

Several experiments and accessibility fixes for the Vosnæs/Uniparken
hearing-detail prototypes, so the mocks read well for low-vision users
and let the team trial alternative interactions.

Accessibility (WCAG):
- Raise card/input/dropdown/divider borders to a 1.4.11-compliant #8c8c8c
  (3.36:1) via --border-default/--border-subtle; repoint hardcoded
  --gray-200/--gray-350 separators at the semantic token
- Fix muted text contrast: --text-muted -> #767676 (4.54:1); dark-footer
  links -> --gray-350 (9.48:1) since darkening would have failed there
- Darken submission-form hint/notice text to --text-secondary and
  de-italicise the hint; notice info icon now follows the text colour
  instead of the near-invisible --gray-400

Call-to-action experiment:
- Add an outline "Skriv et høringssvar" in the header (hidden when closed)
  and a centered primary one below the answers list, alongside the existing
  one; all share a js-submit-horingssvar hook
- Add help text to the Kategori select, linked via aria-describedby
- Add a closed-variant tip linking down to the statistics section

Vote experiment:
- Reframe the "synes om" like as an agreement vote: handshake icon and
  "{antal} er enig(e)" (singular-aware via DM.enigeLabel), sort option
  renamed "Flest enige"; applied to cards and detail modal across both
  prototypes. The likes data field is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
@yepzdk yepzdk merged commit f7d0148 into main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant