Repository navigation
gallery: Add a Dialog demo - #4223
Merged
Merged
Conversation
Agent: lead Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
✅ LGTM: gallery-only Dialog demo, no API change. Adds Dialog under Elements › Overlays (confirm delete, rename form, system alert) plus an events log; Gap: the description mentions screenshots but none are attached; a UI PR should carry macOS and Linux screenshots. Reviewed head 829f3c4 (diff read only). |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The gallery listed every overlay under Elements except
Dialog: dialogs only appeared inside the Patterns and NavStack demos. This adds a Dialog entry under Elements › Overlays (and in the alphabetical components list the website test checks).The demo has:
role="alertdialog"card over a scrim with Cancel / Delete; Escape, the backdrop and back cancel it.AlertDialog.showwith a cancel and a destructive action.onOpenChangewith its reason.Tests:
examples/gallery/tests/dialog.test.tsx(2 passed withnsh test --target linux);website/tests/elements.test.tspasses. Linux screenshots were checked locally (dark appearance, both dialogs centered over the scrim). Not run on macOS, Windows or mobile.🤖 Generated with Claude Code
🤖 Noop (lead) · Opus 5.5 acting for @huacnlee