Skip to content

fix(verifier): keyboard shortcut overlay visible on load, Esc no-op#57

Merged
jakebromberg merged 1 commit into
mainfrom
verifier-overlay-fix
May 12, 2026
Merged

fix(verifier): keyboard shortcut overlay visible on load, Esc no-op#57
jakebromberg merged 1 commit into
mainfrom
verifier-overlay-fix

Conversation

@jakebromberg
Copy link
Copy Markdown
Member

Summary

The keyboard-shortcut overlay was visible on every page load and could not be dismissed. CSS #shortcut-overlay { display: flex } had higher specificity than the UA [hidden] rule, so the hidden attribute on the overlay div was a no-op and the JS toggle paths (Esc, ?, backdrop click) silently flipped a useless attribute.

Scoping the layout block to #shortcut-overlay:not([hidden]) lets the UA display: none apply when hidden is set.

Test plan

  • Load /verifier/ (index mode) — overlay not visible.
  • Load /verifier/?bundle=… (edit mode) — overlay not visible.
  • Press ? — overlay opens.
  • Press Esc — overlay closes.
  • Press ? to reopen, then click the dimmed backdrop — overlay closes.

Closes #56

The overlay's `#shortcut-overlay { display: flex }` rule had higher specificity than the UA `[hidden] { display: none }` rule, so the HTML `hidden` attribute on the overlay div had no visual effect. The overlay showed on every reload and the JS toggle paths (Esc, ?, backdrop click) silently flipped the attribute without changing what the user saw.

Scoping the layout block to `#shortcut-overlay:not([hidden])` lets the UA rule take over when hidden is set.

Closes #56
@jakebromberg jakebromberg merged commit 997f462 into main May 12, 2026
3 checks passed
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.

Verifier shortcut overlay: visible on every load, Esc has no effect

1 participant