Repository navigation
Make the side panel on phones a proper dialog - #399
Merged
abhishekgahlot2 merged 1 commit intoNov 2, 2026
Merged
Conversation
On a phone the side panel is a bottom sheet, but it behaved like a plain panel: focus stayed behind it, Tab walked the conversation and VoiceOver could swipe into it. Add useSheetDialog, which applies the WAI-ARIA modal dialog pattern to the always-mounted rail. Portalled primitives would remount the terminal, browser and editors, and showModal() would sit above the command palette. The same behaviour covers the too-narrow split on wider screens.
coolestnick
force-pushed
the
fix/phone-side-panel-dialog
branch
from
October 31, 2026 19:45
ae06e4f to
7349fba
Compare
3 tasks
Contributor
|
Merged, thanks @coolestnick! The phone panel finally behaves like a real dialog. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #347
What changed
useSheetDialoghook follows the WAI-ARIA modal pattern on the existing panel. A portalled Modal or Drawer would remount the terminal, browser and editors, andshowModal()would sit above the command palette.aria-hiddenis now a direct dependency, at the version already installed through Radix.Testing
Real Chrome at 390px, production build:
Desktop is unchanged.
bun run test(1795 pass),bun run typecheck,bun run lint,bun run buildandbun test scripts/agent-docs.test.tsall pass.Not tested: VoiceOver on a real iPhone, and "Ask agent to redo" in a browser (unit tests only).
Screenshots
The layout doesn't change, so these look alike.



Need help on this PR? Tag
@codesmith-botwith what you need.