Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

fix: add accessible DialogTitle and DialogDescription to IDKitWidget#395

Open
0xpinara wants to merge 1 commit into
worldcoin:mainfrom
0xpinara:fix/dialog-title-accessibility
Open

fix: add accessible DialogTitle and DialogDescription to IDKitWidget#395
0xpinara wants to merge 1 commit into
worldcoin:mainfrom
0xpinara:fix/dialog-title-accessibility

Conversation

@0xpinara

Copy link
Copy Markdown

Summary

  • Fixes React IDKitWidget DialogTitle Error Message Next.js 15.5.4 #378 — DialogContent requires a DialogTitle error on Next.js 15.5.4
  • Moved Dialog.Title inside Dialog.Content with real text for screen readers
  • Added Dialog.Description for full Radix UI accessibility compliance
  • Both elements are visually hidden so the widget looks the same

Test plan

  • Open IDKitWidget on Next.js 15.5.4 — no more console error
  • Check screen reader announces World ID Verification when dialog opens
  • Confirm widget looks unchanged visually

Fixes worldcoin#378 - DialogContent requires a DialogTitle error on Next.js 15.5.4.
Moved Dialog.Title inside Dialog.Content with actual text and added
Dialog.Description. Both are visually hidden so the UI stays the same.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

React IDKitWidget DialogTitle Error Message Next.js 15.5.4

1 participant