material-ui
material-ui copied to clipboard
TextField label position when changing fontsize
Problem description
When you change TextField's fontSize, the label translate() position isn't changing according to font size. which leads to the label being too close to the text of the input.
Steps to reproduce
Take a text field, change font size, type. (40px for an example) before changing shrink translate - http://prntscr.com/gggmsg after changing - http://prntscr.com/gggmf0
Versions
- Material-UI: latest v1-beta
- React: latest
- Browser: chrome
Maybe we could be changing the InputLabel transformation value to take the font size into account in the formula, but I have some doubt about the viability of such rule.
So I think that the best way to handle this is to also change the translation value on userland.