Repository navigation
fix(website): pause control works with storage blocked and reads consistently - #5091
Merged
Merged
Conversation
…istently The footer pause did nothing where the browser blocks site storage: saving the choice threw before the pause was dispatched. It now pauses first and saves last. Screen readers heard "Play background, pressed" while paused; the label is now fixed and only the pressed state changes. The button stays hidden without JavaScript, where there is no field to pause, and a still field redraws at most once per frame while scrolling. Three comments and one spec line that still described the copper or light theme are corrected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5078, which merged one commit early. On the new site, the footer "Pause background" button did nothing in browsers that block site storage, and screen readers heard "Play background, pressed" while it was paused. Now it pauses first and remembers the choice last, keeps a fixed label with only the pressed state changing, and stays hidden without JavaScript, where there is nothing to pause. Also fixes three comments and one spec line that still described the copper or light theme, and caps still-field redraws to one per frame while scrolling.
Test plan
cd website && npx vitest run— 238 pass;astro check0 errorsaria-pressedflips with the label fixed, the choice survives a reload, resume restarts motion, no console errors