Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): remove className from dialog portals (shadcn-ui#1606)
Fixes shadcn-ui#1595, shadcn-ui#1644 This PR changes the components that use the `DialogPortal` element to be aliases rather than components that pass a className prop. The `DialogPortalProps` type from `@radix/react-dialog` recently had a patch update that probably should have been a minor or maybe a major update which is causing a few people to see the error `Property 'className' does not exist on type 'DialogPortalProps'`. Since the `DialogPortal` component doesn't actually output any DOM elements, it never technically supported the `className` prop and the fact that it surfaced that prop was really a bug. The `AlertDialog` and `Dialog` components were updated in shadcn-ui#1603, but the `Sheet` component still references `className` which is resolved in this PR.
- Loading branch information