Skip to content

Fix inline theme script and SV labelling inconsistency in week-ahead articles#1090

Merged
pethers merged 2 commits intonews/week-ahead-2026-03-12-fdefb7d9076a6614from
copilot/sub-pr-1087
Mar 12, 2026
Merged

Fix inline theme script and SV labelling inconsistency in week-ahead articles#1090
pethers merged 2 commits intonews/week-ahead-2026-03-12-fdefb7d9076a6614from
copilot/sub-pr-1087

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

Addresses two review comments from PR #1087.

  • External theme-init.js: Replaced inlined anti-flash theme initializer with <script src="../js/theme-init.js"></script> across all 14 language versions, matching the shared implementation used by other news pages
  • SV label alignment: Standardized "Vecka Framåt" → "Veckan som kommer" in title, H1, og:title, Schema.org headline, and BreadcrumbList to match established convention
<!-- Before -->
<script>(function(){var key='riksdagsmonitor-theme';var t=null;try{t=localStorage.getItem(key);}catch(e){} ... }());</script>

<!-- After -->
<script src="../js/theme-init.js"></script>

All 14 articles pass HTMLHint validation.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…nd align SV labelling

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add week ahead parliamentary preview for multiple languages Fix inline theme script and SV labelling inconsistency in week-ahead articles Mar 12, 2026
@pethers pethers marked this pull request as ready for review March 12, 2026 16:30
@pethers pethers merged commit 28694f9 into news/week-ahead-2026-03-12-fdefb7d9076a6614 Mar 12, 2026
@pethers pethers deleted the copilot/sub-pr-1087 branch March 12, 2026 16:30
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