Skip to content

refactor: use Ark UI Dialog for DisconnectConfirmModal#60

Merged
mkobayashime merged 1 commit intomainfrom
discon-modal-ark-ui
Feb 12, 2026
Merged

refactor: use Ark UI Dialog for DisconnectConfirmModal#60
mkobayashime merged 1 commit intomainfrom
discon-modal-ark-ui

Conversation

@mkobayashime
Copy link
Owner

Summary

Refactored DisconnectConfirmModal to use @ark-ui/react Dialog component for consistency with the rest of the codebase.

Changes

  • Replaced custom modal implementation with Ark UI Dialog primitives
  • Added Dialog.Root with open and onOpenChange props for controlled state
  • Used Dialog.Backdrop, Dialog.Positioner, Dialog.Content for layout structure
  • Replaced h2/p with Dialog.Title/Dialog.Description for semantic structure
  • Wrapped buttons with Dialog.CloseTrigger for proper close behavior
  • Unified styling with other modals (border-zinc-800, bg-zinc-950)

@mkobayashime mkobayashime merged commit 9f1ca80 into main Feb 12, 2026
1 check passed
@mkobayashime mkobayashime deleted the discon-modal-ark-ui branch February 12, 2026 17:24
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.

1 participant

Comments