mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6796] [Issue]: Game Mode's Inventory button has no accessible name on phones #3805
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#3805
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 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6796
Originally assigned to: @kolacheee on GitHub.
Summary
In Game Mode, the Inventory button under the narration has no usable name on phone-width screens. Its text label is hidden below the
smbreakpoint, and the button has noaria-labelortitle, so a screen reader announces only the item count badge (for example "1"), or nothing at all when the inventory is empty.Expected behavior
The button is announced as the inventory at every width, for example "Inventory" or "Inventory, 3 items". The Logs button beside it already does this with an
aria-label, and the fight button with atitle.Actual behavior
packages/client/src/components/game/GameNarration.tsxrenders the Inventory button in two places (around lines 5417 and 5494 on staging50249cee9):Below
smthe label isdisplay: none, so the button's only text is the count badge. It also cannot be found by name in tests:getByRole("button", { name: /Inventory/ }), whiche2e/game-inventory-bags.e2e.tsande2e/game-inventory-stacks.e2e.tsuse, finds nothing in themobile-chromiumPlaywright project and times out.Steps to reproduce
smbreakpoint (640 px).Or run
pnpm regression:ui e2e/game-inventory-bags.e2e.ts --project=mobile-chromium --workers=1: the test times out waiting for the Inventory button.Environment
50249cee9)mobile-chromiumproject; the markup is the same in every browserLogs, screenshots, or video
Found while testing the inventory at phone width: the button shows only the box icon and the count badge.
Additional context
A likely fix is an
aria-labelandtitleon both Inventory buttons, fromui.game.gamecharactersheet.inventory, with the count added through a new key inpackages/client/src/localization/locales/en.json(for example "Inventory, {{count}} items"). The Logs and fight buttons in the same file are already named and need no change.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: