feat(SettingsDialog): add close button - #829
Open
netchampfaris wants to merge 1 commit into
Open
Conversation
The SettingsDialog renders the base Dialog in bare mode, which suppresses Dialog's own close button. That left the dialog with no visible close affordance — only Esc or a backdrop click. Add a floating ghost X button in the top-right corner that closes the dialog via its v-model, so route-driven consumers still react through their own open-state watcher.
Contributor
Confidence Score: 5/5Minimal, well-scoped change that adds a missing UI affordance without altering any logic or API surface. The button placement, styling, and close mechanism all match the existing base Dialog pattern verbatim, and the No files require special attention. Reviews (1): Last reviewed commit: "feat(SettingsDialog): add close button" | Re-trigger Greptile |
|
Looks good — adds a floating close X to
Nit (not blocking):
|
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.
Problem
SettingsDialogrenders the baseDialoginbaremode, and in bare mode the base Dialog deliberately skips its own close button. That left the settings dialog with no visible close affordance — users could only dismiss it via Esc or a backdrop click, which isn't discoverable.Change
Add a floating ghost X button in the dialog's top-right corner. It closes the dialog by setting the
v-model, so route-driven consumers (e.g. Gameplan, whose open state is derived from the URL) still react through their own open-state watcher — no consumer changes needed.TabsRootcontainerrelativeto anchor the button.Dialog(ghost variant,lucide-x,text-ink-gray-9).Verification
Verified in Gameplan against the local demo site: opening Settings shows the X in the top-right (no overlap with panel header content), and clicking it closes the dialog and navigates back to the underlying page.
Docs preview: https://ui.frappe.io/pr-preview/pr-829/
Coverage: 68.81% (+0.01% vs
main)