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

[Feature]: Disable warning about "DialogContent requires a DialogTitle" #1565

Open
2 tasks
strokirk opened this issue Jan 18, 2025 · 0 comments
Open
2 tasks

Comments

@strokirk
Copy link

Describe the feature

https://www.radix-vue.com/components/dialog#title logs a warning if the DialogTitle and DialogDescription sub-components aren't used:

Warning: DialogContent requires a DialogTitle for the component to be accessible for screen reader users.

However, as a user of for example nuxt-ui, it's not always possible to provide these elements to the packaged Modal element: nuxt/ui#2383

It would help greatly if there either was another way to pass the title to work more easily in nested use cases (trying to pass a DialogTitle via slot doesn't work, since it gives the error Component must be used within DialogRoot), or disable it.

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant