-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MDCTextField: Use em over px for sizing #4164
Comments
rem
over px
for text field sizing
By basing it on |
When trying to fix this exact same issue in AngularJS Material, the solution was to use angular/material@1df5336#diff-74a081d9d358e41d6c52623c1b29422dR31 But unfortunately, our fix came along way too late in the framework lifecycle so, ultimately, we couldn't risk breaking design layouts. I suggest adding this sooner than later. The other question you'll have is, if you resize the input label from 16sp, is the label meant to be 12sp or 75% of the input label? I haven't been able to find an answer for that. MD2015 changed all samples to use 16sp instead of varying height. It used to look like this, showing to use 12sp no matter what size the input was. But with the newer redesign, there are no such samples selectively showing large font. It was changed to this. That's something you'd have to either take a guess at, or ask for some explicit direction from the Googlers. |
Since we changed font-size to |
Google internally needs
rem
overpx
for sizing of text field content to solve for accessible scaling.An example working codepen has already been created: https://codepen.io/williamernest/pen/bmOKeQ
Related to #2731, #4142
The text was updated successfully, but these errors were encountered: