Skip to content

Comments

Fix accessibility: heading hierarchy, reduced motion, and Nordic language terminology#320

Merged
pethers merged 2 commits intoindexdashboardfrom
copilot/sub-pr-319
Feb 19, 2026
Merged

Fix accessibility: heading hierarchy, reduced motion, and Nordic language terminology#320
pethers merged 2 commits intoindexdashboardfrom
copilot/sub-pr-319

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Addresses PR #319 review feedback: improper heading hierarchy breaking screen reader navigation, shimmer animations ignoring motion preferences, and incorrect Nordic parliamentary terminology.

Heading Hierarchy (WCAG 2.1 AA)

  • Changed news-navigation heading from <h2> to <p> across all 14 language files
  • Prevents <h2> appearing before page's main <h1>, maintaining proper document outline
<!-- Before: breaks hierarchy -->
<nav class="news-navigation">
  <h2>AI-Disrupted Political Journalism</h2>
  ...
</nav>
<header>
  <h1>Riksdagsmonitor</h1>
  ...
</header>

<!-- After: proper hierarchy -->
<nav class="news-navigation">
  <p class="news-navigation-heading">AI-Disrupted Political Journalism</p>
  ...
</nav>
<header>
  <h1>Riksdagsmonitor</h1>
  ...
</header>

CSS Animation Accessibility

  • Added prefers-reduced-motion: reduce overrides for .dashboard-cta::before and .news-navigation::before shimmer animations
  • Global * selector doesn't cover pseudo-elements; explicit rules required
@media (prefers-reduced-motion: reduce) {
  .dashboard-cta::before,
  .news-navigation::before {
    animation: none;
  }
}

Nordic Language Terminology

Finnish (index_fi.html):

  • EduskuntakysymyksetValtiopäiväkysymykset (Eduskunta is Finland's parliament, not Sweden's Riksdag)
  • PuolueprestandaPuolueiden suorituskyky (grammatically correct Finnish)

Norwegian (index_no.html):

  • StortingsspørsmålParlamentsspørsmål (Stortinget is Norway's parliament)
  • panelenpanelet (correct Bokmål definite form)

Danish (index_da.html):

  • panelenpanelet (correct definite form)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Enhance news navigation and add Intelligence Dashboard CTA Fix accessibility: heading hierarchy, reduced motion, and Nordic language terminology Feb 19, 2026
Copilot AI requested a review from pethers February 19, 2026 02:09
@pethers pethers marked this pull request as ready for review February 19, 2026 02:11
@pethers pethers merged commit f172c6e into indexdashboard Feb 19, 2026
@pethers pethers deleted the copilot/sub-pr-319 branch February 19, 2026 02:11
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.

2 participants