[GH-ISSUE #6904] [Issue]: Game Mode's inventory window close button has no accessible name #3872

Closed
opened 2026-10-21 06:08:21 +07:00 by bsakaguchi · 2 comments
Owner

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.tsx renders the button with only an icon inside it (lines 482 to 487 on staging 6f3fc7bfb):

<button
  onClick={onClose}
  className="rounded p-1 text-white/40 transition-colors hover:bg-white/10 hover:text-white/70"
>
  <X size={14} />
</button>

It has no text, aria-label or title, 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 (as e2e/game-ruleset-money.e2e.ts in #6903 does).

Steps to reproduce

  1. Open a Game Mode chat and click Inventory under the narration.
  2. Inspect the X button in the window's top right corner with a screen reader or the browser's accessibility tree.
  3. The button has no name.

Environment

  • Marinara Engine version: staging 6f3fc7bfb (2.4.6)
  • Install type: source
  • OS + version: Fedora 44
  • Browser or app shell: Chromium (Playwright)

Logs, screenshots, or video

Accessibility tree of the window header: button with 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:

  • I DID NOT read this template and provide the requested details.
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.tsx` renders the button with only an icon inside it (lines 482 to 487 on staging `6f3fc7bfb`): ```tsx <button onClick={onClose} className="rounded p-1 text-white/40 transition-colors hover:bg-white/10 hover:text-white/70" > <X size={14} /> </button> ``` It has no text, `aria-label` or `title`, 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 (as `e2e/game-ruleset-money.e2e.ts` in #6903 does). ## Steps to reproduce 1. Open a Game Mode chat and click **Inventory** under the narration. 2. Inspect the X button in the window's top right corner with a screen reader or the browser's accessibility tree. 3. The button has no name. ## Environment - Marinara Engine version: staging `6f3fc7bfb` (2.4.6) - Install type: source - OS + version: Fedora 44 - Browser or app shell: Chromium (Playwright) ## Logs, screenshots, or video Accessibility tree of the window header: `button` with 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:08:21 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kolacheee commented on GitHub (Oct 2, 2026):

Re-opening after version bump

<!-- gh-comment-id:5962707377 --> @kolacheee commented on GitHub (Oct 2, 2026): Re-opening after version bump
Author
Owner

@kolacheee commented on GitHub (Oct 17, 2026):

Will re-open after latest release

<!-- gh-comment-id:6233655567 --> @kolacheee commented on GitHub (Oct 17, 2026): Will re-open after latest release
bsakaguchi 2026-10-24 04:03:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3872
No description provided.