P2: DialogContent missing DialogTitle — accessibility warning #22
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P2 — Medium
Problem: Radix UI
DialogContentrequires aDialogTitlefor screen reader accessibility. The browser console shows:Impact: Accessibility violation. Screen readers cannot identify the dialog purpose.
Where: The
Sheetcomponent (used for the mobile nav menu) is built on RadixDialogprimitives.SheetContentrenders inside aDialogPortalbut does not include aDialogTitle.Fix:
SheetTitle(visually hidden viaVisuallyHiddenfrom@radix-ui/react-visually-hidden) inside theSheetContentinHeader.jsxmobile menu<SheetTitle><VisuallyHidden>Navigation Menu</VisuallyHidden></SheetTitle>Reference: https://radix-ui.com/primitives/docs/components/dialog