material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

TextField label position when changing fontsize

Open mat4n opened this issue 9 years ago • 1 comments

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

mat4n avatar Sep 03 '17 08:09 mat4n

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.

oliviertassinari avatar Sep 03 '17 09:09 oliviertassinari