Mat form field value alignment issue when density is -3

Discussão em 'Angular' iniciado por userdac, Outubro 30, 2024.

  1. userdac

    userdac Guest

    I'm having trouble centering the value of the input vertically.

    When the density is -3 and the font size is 1em the value of the input is not centered correctly.

    Also the label alignment when there's no value inside the input is not exactly ok as its a bit lower.

    Does anyone know which is the best approach to handle this issue ?

    I know I can set a top positioning for the input but I'm not sure if its the best approach. Does anyone else has a better idea?

    See example: https://stackblitz.com/edit/b328rv-mayvac?file=package.json

    Continue reading...

Compartilhe esta Página