-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Dialog] Fix labelledby and describedby placement #18032
Conversation
4feb80e
to
667203d
Compare
Details of bundle changes.Comparing: cec2f0c...667203d
|
@@ -240,6 +242,8 @@ const Dialog = React.forwardRef(function Dialog(props, ref) { | |||
<PaperComponent | |||
elevation={24} | |||
role="dialog" | |||
aria-describedby={ariaDescribedby} | |||
aria-labelledby={ariaLabelledby} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation for applying these aria props on the Paper?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's the role just one line above. They are not applied to the Paper specifically but the dialog. They were attached to a generic container before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the precision
Closes #17999
The initial focus is something we can't meaningful solve at the library level. It shouldn't focus the full dialog but some element inside (e.g. a confirm button, or the first paragraph, or a selection list etc).