Skip to content

minor: hook up Dialog.Title better in modal to fix Radix errors#2608

Merged
david-crespo merged 1 commit intomainfrom
dialog-title
Dec 6, 2024
Merged

minor: hook up Dialog.Title better in modal to fix Radix errors#2608
david-crespo merged 1 commit intomainfrom
dialog-title

Conversation

@david-crespo
Copy link
Collaborator

Fixed the DialogTitle error, which, I was dismayed to see, is not suppressed in production. Maybe for good reason, because it got me to fix it.

Screenshot 2024-12-06 at 2 07 30 PM

Note that the accessible title was actually not broken in production — the problem here is that we were hooking up the title ID to the dialog ourselves rather than letting Radix dialog handle it, so it thought we weren't doing it.

image

@vercel
Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Dec 6, 2024 8:13pm

{children}
<Dialog.Close
className="absolute right-2 top-4 flex items-center justify-center rounded p-2 hover:bg-hover"
className="absolute right-2 top-3.5 flex items-center justify-center rounded p-2 hover:bg-hover"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was very slightly too low.

@david-crespo david-crespo enabled auto-merge (squash) December 6, 2024 20:21
@david-crespo david-crespo merged commit 927c8b6 into main Dec 6, 2024
@david-crespo david-crespo deleted the dialog-title branch December 6, 2024 20:22
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