Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(www): Unnecessary AlertDialogPortal and DialogPortal component removed #1603

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

iam-rohid
Copy link
Contributor

There are unnecessary AlertDialogPortal and DialogPortal components in alert-dialog and dialog. And they are accepting className props which is not required in AlertDialogPortal and DialogPortal component from radix-ui. So, I have removed them.

@vercel
Copy link

vercel bot commented Sep 26, 2023

@iam-rohid is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@shadcn
Copy link
Collaborator

shadcn commented Oct 3, 2023

Hmmm it looks like this was removed but released as a patch in radix-ui/primitives#2178

I'll review and merge.

@vercel
Copy link

vercel bot commented Oct 3, 2023

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

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 0:22am

Copy link
Collaborator

@shadcn shadcn left a comment

Choose a reason for hiding this comment

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

Thank you.

@shadcn shadcn merged commit 524e4b8 into shadcn-ui:main Oct 3, 2023
4 checks passed
@iam-rohid
Copy link
Contributor Author

Thanks for merging 😀

@lachieh
Copy link
Contributor

lachieh commented Oct 10, 2023

@shadcn you can close #1624 with this PR 👍🏻

Edit: nevermind, #1644 and #1595 both mention the Sheet component which is corrected in #1606

kodiakhq bot pushed a commit that referenced this pull request Oct 21, 2023
Fixes #1595, #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 #1603, but the `Sheet` component still references `className` which is resolved in this PR.
kjxbyz pushed a commit to muse-ui/muse-ui that referenced this pull request Jun 7, 2024
kjxbyz pushed a commit to muse-ui/muse-ui that referenced this pull request Jun 7, 2024
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.
artabr pushed a commit to artabr/shadcn-ui that referenced this pull request Dec 15, 2024
artabr pushed a commit to artabr/shadcn-ui that referenced this pull request Dec 15, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants