Skip to content

fix(web): close the first steps panel on Escape, and shadow the mobile drawer only while open - #394

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/panel-escape-drawer-shadow
Nov 24, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/panel-escape-drawer-shadow

Conversation

@harenome

@harenome harenome commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #391

What

Escape closes the First steps panel when the focus is on its toggle or inside the panel, as its Hide does, and puts the focus on the toggle. Escape elsewhere on the page leaves the panel alone, so other menus keep their own Escape; the welcome dialog keeps its native one. The mobile drawer's shadow moves from .side to .side.drawer-open, so the closed drawer no longer darkens the page's left edge.

Touches

templates and static

Before and after

Before After
before-first-steps-escape-1280 after-first-steps-escape-1280
before-drawer-closed-390-light after-drawer-closed-390-light

Rows: Escape on the open panel at 1280 px; the closed drawer at 390 px, light.

Verified

  • Backend suite (2856) and route suite (662), in a clean container.
  • New Node test beside the welcome dialog's: Escape on the toggle or inside the panel closes it (state, aria-expanded, panel removed) and focuses the toggle; Escape elsewhere leaves it open. It fails on main.
  • Chromium, 1280 px: Escape on the toggle and from the panel's Hide left aria-expanded="true"; now "false", panel gone, focus on the toggle.
  • Chromium, 390 px, closed drawer: the left edge reads 214 against the page's 248 in light, now 248; dark 11, now 13. The open drawer keeps its shadow.

Risk

A script that relied on Escape passing through the panel would now see it close. Undone by a revert.

…e drawer only while open

Escape from the panel's toggle or from inside the panel closes it and focuses the toggle; the welcome dialog keeps its own Escape. The closed drawer, off screen, no longer darkens the page's left edge.
@harenome
harenome merged commit 1a7246b into ThinkFlowLab:main Nov 24, 2026
2 checks passed
@harenome
harenome deleted the fix/panel-escape-drawer-shadow branch November 24, 2026 14:33
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.

Escape leaves the First steps panel open, and the closed mobile drawer shadows the page edge

1 participant