You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a SelectField component is inside another component having the css property text-align set, the label is also affected.
Steps to reproduce
Go to the select field demo page and put a text-align: center or right on any parent container (the "simple examples" for instance or the whole page). Then try this on the text field page. You'll see that you don't get the same behavior.
Versions
Material-UI: 0.15.2
React: 15.2.1
Browser: Chrome 51.0.2704.106
The text was updated successfully, but these errors were encountered:
oliviertassinari
changed the title
SelectField's label is influenced by text-align css property
[SelectField] label is influenced by text-align css property
Mar 26, 2017
Has this been fixed yet? I am experiencing this issue as well..A semi-workaround is making a CSS rule specific for that SelectField with text-align: left. This will fix the selected text, just not the floating label.
@mjsevilla Not sure if you've solved this for yourself but if you override the position: absolute, you could get the customization you need. But a better option would be to add text-align: left to the container element housing your select field.
Problem description
When a SelectField component is inside another component having the css property text-align set, the label is also affected.
Steps to reproduce
Go to the select field demo page and put a text-align: center or right on any parent container (the "simple examples" for instance or the whole page). Then try this on the text field page. You'll see that you don't get the same behavior.
Versions
The text was updated successfully, but these errors were encountered: