Skip to content

Commit

Permalink
fix(sidebar-07): add title and describe by
Browse files Browse the repository at this point in the history
right now it is throwing:
`DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users.

If you want to hide the `DialogTitle`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/dialog

and warning:
Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}.
  • Loading branch information
mikaelkristiansson authored Jan 7, 2025
1 parent 1081536 commit 3f0bfd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/www/registry/new-york/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ const Sidebar = React.forwardRef<
} as React.CSSProperties
}
side={side}
title="Sidebar"
aria-describedby={undefined}
>
<div className="flex h-full w-full flex-col">{children}</div>
</SheetContent>
Expand Down

0 comments on commit 3f0bfd4

Please sign in to comment.