[textfield] Use non-native label for <TextField select/>#47958
[textfield] Use non-native label for <TextField select/>#47958mj12albert merged 9 commits intomui:masterfrom
<TextField select/>#47958Conversation
<TextField select/>
Netlify deploy previewBundle size report
|
b7a4fad to
dd591cf
Compare
155b34f to
afffdab
Compare
35af8d8 to
4028882
Compare
49b1c2c to
96c18cc
Compare
96c18cc to
70c9981
Compare
Just to keep the issue open, the same error is all over the select page too since the demos compose InputLabel manually. We could consider a |
Or let the user handle it with |
|
ZeeshanTamboli
left a comment
There was a problem hiding this comment.
We could consider a
InputLabel nativeLabel={false}prop to make it easier to handle (non-breaking so no rush).
It can be handled in a separate PR, right? Approving this PR.
Breaking: The visible text label uses a
divinstead of alabelelement for<TextField select/>Only applies when it's the
<Select>component, not<NativeSelect>Part of #47489
Preview: https://deploy-preview-47958--material-ui.netlify.app/material-ui/react-text-field/#select
Avoids devtool errors about incorrect use of the label element; it's not strictly needed as the component is named with
aria-labelledbyalready.