When setting size='small' on a TextField the label is incorrectly positioned.
Looking at the code it appears the styling logic is correct, but the ownerState is missing the relevant size prop. This PR ensures the size prop is correctly passed from the TextField to fix the issue.
As part of this I also added a 'sizes' example to the doc site.
When setting
size='small'
on aTextField
the label is incorrectly positioned.Looking at the code it appears the styling logic is correct, but the
ownerState
is missing the relevantsize
prop. This PR ensures thesize
prop is correctly passed from theTextField
to fix the issue.As part of this I also added a 'sizes' example to the doc site.