Skip to content

fix(website): pause control works with storage blocked and reads consistently - #5091

Merged
kovtcharov-amd merged 1 commit into
mainfrom
kalin/website-pause-fixes
Oct 14, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
kalin/website-pause-fixes

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

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 check 0 errors
  • Built site in Chrome: pause stops the field, aria-pressed flips with the label fixed, the choice survives a reload, resume restarts motion, no console errors

…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.
@github-actions github-actions Bot added documentation Documentation changes website GAIA website (amd-gaia.ai) labels Oct 14, 2026
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 12ae918 Oct 14, 2026
@kovtcharov-amd
kovtcharov-amd deleted the kalin/website-pause-fixes branch October 14, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes website GAIA website (amd-gaia.ai)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant