Skip to content

merge queue: embarking main (c844ecb) and #11338 together#11343

Closed
mergify[bot] wants to merge 2 commits intomainfrom
mergify/merge-queue/6a569c1854
Closed

merge queue: embarking main (c844ecb) and #11338 together#11343
mergify[bot] wants to merge 2 commits intomainfrom
mergify/merge-queue/6a569c1854

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Apr 30, 2026

✨ The merge conditions cannot be satisfied due to failing checks. ✨

Branch main (c844ecb) and #11338 are embarked together for merge.

This pull request has been created by Mergify to speculatively check the mergeability of #11338.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.

Required conditions of queue rule default for merge:

Required conditions to stay in the queue:

---
checking_base_sha: c844ecba51083477e4a459989e318c0d9282225a
previous_failed_batches: []
pull_requests:
  - number: 11338
    scopes: []
scopes: []
...

jd and others added 2 commits April 30, 2026 15:13
Theme classes (theme-dark, dark) were lost on every navigation because
ClientRouter swaps the <html> element and the server renders it with
class="initial". The inline FOUC-prevention script only runs on initial
page load (Astro deduplicates identical inline scripts across
navigations), so nothing reapplied the theme after a swap.

Re-run the theme detection on astro:before-swap, applying the classes
to event.newDocument.documentElement so the swap completes with the
correct theme and no flash. Also handle both `theme-dark` and `dark`
classes for parity with ThemeToggleButton, since theme.css uses both
selectors.

Change-Id: I0b1115aac90e5944bac2d5ca6ea746b2273f1c05
@mergify mergify Bot deployed to Mergify Merge Protections April 30, 2026 15:41 Active
@mergify mergify Bot closed this Apr 30, 2026
@mergify mergify Bot deleted the mergify/merge-queue/6a569c1854 branch April 30, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant