mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6904] [Issue]: Game Mode's inventory window close button has no accessible name #3872
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3872
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6904
Originally assigned to: @kolacheee on GitHub.
Summary
In Game Mode, the inventory window's close button (the X in its top right corner) has no accessible name. A screen reader announces it only as "button", and tests cannot find it by name.
Expected behavior
The button is announced as closing the inventory, for example "Close inventory", the way other close buttons in the app are named (such as "Close Professor Mari chat" or "Close inline editor").
Actual behavior
packages/client/src/components/game/GameInventory.tsxrenders the button with only an icon inside it (lines 482 to 487 on staging6f3fc7bfb):It has no text,
aria-labelortitle, so its accessible name is empty. In Playwright,getByRole("button", { name: /close/i })finds nothing, and a test that needs the window closed has to reload the page instead (ase2e/game-ruleset-money.e2e.tsin #6903 does).Steps to reproduce
Environment
6f3fc7bfb(2.4.6)Logs, screenshots, or video
Accessibility tree of the window header:
buttonwith no name, beside the heading "Inventory".Additional context
Found while writing the e2e for #6903. Related: #6796 (the Inventory button that opens this window has no name on phones). The window also has no dialog role, and pressing Escape does not close it, which may be worth looking at together.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@kolacheee commented on GitHub (Oct 2, 2026):
Re-opening after version bump
@kolacheee commented on GitHub (Oct 17, 2026):
Will re-open after latest release