Skip to content

Start the theme transition at the toggle button - #336

Merged
milanofthe merged 1 commit into
mainfrom
fix/theme-transition
Sep 14, 2026
Merged

milanofthe merged 1 commit into
mainfrom
fix/theme-transition

Conversation

@milanofthe

Copy link
Copy Markdown
Member

The theme reveal circle started at the top center instead of the theme toggle button on high-density displays.

The circle was placed in pixels on ::view-transition-new(root). When the browser sizes that snapshot in device pixels, a pixel center lands at half the distance. The center and radius are now given in percent of the snapshot box, which does not depend on its pixel scale.

@milanofthe
milanofthe merged commit f6f821d into main Sep 14, 2026
4 checks passed
@milanofthe
milanofthe deleted the fix/theme-transition branch September 14, 2026 20:14
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