TextField labels centered when focused in beta.45 #11283
Labels
bug 🐛
Something doesn't work
component: text field
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
When Textfields are in a container that has
text-align: center
, their labels become centered when you focus them as of beta.45. This didn't occur in previous versions.Expected Behavior
The labels' alignment should stay the same regardless of focus state. Ideally (and previously) they should always be left aligned. If inheriting the parent's text alignment was a purposeful change in beta.45, it should respect it in both focused and unfocused states.
Current Behavior
The labels become centered only when focused.
Steps to Reproduce (for bugs)
https://codesandbox.io/s/x7wp3kx634
Context
Your Environment
The text was updated successfully, but these errors were encountered: