-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[TextField] Fix label not being associated with native select #18141
Conversation
@@ -130,10 +130,25 @@ describe('<TextField />', () => { | |||
</TextField>, | |||
); | |||
|
|||
const select = getByRole('listbox'); |
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.
This was never correct. See A11yance/aria-query#24
Details of bundle changes.Comparing: 13b3a0d...466b49a
|
@@ -30,7 +30,7 @@ export default function ValidationTextFields() { | |||
/> | |||
<TextField | |||
error | |||
id="standard-error" | |||
id="standard-error-helper-text" |
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.
Otherwise we got duplicate ids. Including this here so that we recover lighthouse a11y score for this page completely (except contrast).
Closes #18097