[GH-ISSUE #2147] [Issue]: Game mode — character sheet: background nav fires through the open sheet; mobile sizing + aria-labels dropped #1057

Closed
opened 2026-10-21 05:25:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2147

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor (2 related GameCharacterSheet regressions).

  1. Background navigation fires through the open sheet. The sheet overlay lost data-game-skip-bg-nav="true" (and never had role="dialog"), so with wheel/middle-mouse nav enabled, scrolling over the sheet navigates the story behind it and clicking the backdrop fires a phantom next-action token in addition to closing.
  2. Header lost mobile-responsive sizing + aria-labels. Action buttons render full-text at all widths (vs icon-only on mobile in main), the avatar is fixed at 80px (vs h-16->sm:h-20), the wrap is unconstrained, and the action/close buttons dropped their aria-labels.

Expected behavior

Sheet opt-out from bg-nav while open; compact icon-only buttons + smaller avatar + aria-labels on narrow viewports.

Actual behavior

No skip attribute -> capture-phase bg-nav handlers still fire over the sheet; always-full-text buttons, fixed 80px avatar, no aria-labels.

Steps to reproduce

  1. Enable game-mode wheel/middle-mouse nav; open a party member's sheet.
  2. Wheel over the sheet text/backdrop -> the narration behind scrolls; left-click the backdrop -> a next-action token fires alongside closing.
  3. On a ~360-420px viewport, the full-text buttons crowd the header and the avatar stays large; screen readers get no labels.

Impact area

  • Game mode

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app (packages/client/src/components/game/GameCharacterSheet.tsx).

  • bg-nav: main :387 (data-game-skip-bg-nav="true"); refactor :396 (absent); consumer GameSurface.tsx:5773-5831 (SKIP_SELECTOR).
  • header: main :396/:409/:423/:435/:460/:411/:425/:437 (responsive + aria-labels); refactor :402/:408-442/:459/:449-454 (full-text, fixed avatar, no aria-labels).
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2147 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor (2 related GameCharacterSheet regressions).** 1. **Background navigation fires through the open sheet.** The sheet overlay lost `data-game-skip-bg-nav="true"` (and never had `role="dialog"`), so with wheel/middle-mouse nav enabled, scrolling over the sheet navigates the story behind it and clicking the backdrop fires a phantom next-action token in addition to closing. 2. **Header lost mobile-responsive sizing + aria-labels.** Action buttons render full-text at all widths (vs icon-only on mobile in main), the avatar is fixed at 80px (vs h-16->sm:h-20), the wrap is unconstrained, and the action/close buttons dropped their aria-labels. ## Expected behavior Sheet opt-out from bg-nav while open; compact icon-only buttons + smaller avatar + aria-labels on narrow viewports. ## Actual behavior No skip attribute -> capture-phase bg-nav handlers still fire over the sheet; always-full-text buttons, fixed 80px avatar, no aria-labels. ## Steps to reproduce 1. Enable game-mode wheel/middle-mouse nav; open a party member's sheet. 2. Wheel over the sheet text/backdrop -> the narration behind scrolls; left-click the backdrop -> a next-action token fires alongside closing. 3. On a ~360-420px viewport, the full-text buttons crowd the header and the avatar stays large; screen readers get no labels. ## Impact area - [x] Game mode ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app (`packages/client/src/components/game/GameCharacterSheet.tsx`). - bg-nav: main :387 (`data-game-skip-bg-nav="true"`); refactor :396 (absent); consumer `GameSurface.tsx:5773-5831` (SKIP_SELECTOR). - header: main :396/:409/:423/:435/:460/:411/:425/:437 (responsive + aria-labels); refactor :402/:408-442/:459/:449-454 (full-text, fixed avatar, no aria-labels).
bsakaguchi 2026-10-21 05:25:59 +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#1057
No description provided.