Skip to content

A second click on the "…" button closes its menu - #364

Merged
elripalda merged 2 commits into
elripalda:mainfrom
Xarishark:feat/menu-toggle-three-dot-cfb1d1
Nov 20, 2026
Merged

elripalda merged 2 commits into
elripalda:mainfrom
Xarishark:feat/menu-toggle-three-dot-cfb1d1

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Clicking a game's "…" button while its menu was open closed the menu and opened it again right away: the page's click handler closes any open menu first, then the button opened a new one. Now the second click just closes it.

menu() keeps aria-expanded on the button that opened it, the same way the version picker already does, and a click on that button while it's true closes the menu instead of reopening it. This covers every menu opened from a button (the game "…" menus on tiles and game pages, and the Play picker), and screen readers now hear whether the menu is open.

node --test tests/*.test.cjs: 559 passed, 4 of them new in tests/menu-toggle.test.cjs (open, close, reopen, and moving to another game's "…"). Also tried by hand in Chrome on a page built from the real menu() and app.css.

Patch notes (Beta 67)

For docs/PATCH-NOTES-0.90-beta-67.md, under Everything else:

  • A second click on a game's "…" button closes its menu, instead of opening it again. — Fixed by @Xarishark (#364).

For the website (SDK guide): none.

@Xarishark
Xarishark marked this pull request as draft November 20, 2026 16:04
@Xarishark
Xarishark marked this pull request as ready for review November 20, 2026 20:51
@elripalda
elripalda merged commit 8781fdb into elripalda:main Nov 20, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/menu-toggle-three-dot-cfb1d1 branch November 23, 2026 23:56
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.

2 participants