1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular Material "Form-Field" with appearance="outline" is cut off from other labels

Discussão em 'Angular' iniciado por killexe, Junho 13, 2025.

  1. killexe

    killexe Guest

    After updating to Angular Material v15 our form fields look like this (sometimes - depending on if there is a margin/padding from the element above):

    [​IMG]

    This is how it looked like before:

    [​IMG]

    From what I can see (and what they also write in the documentation) they changed the margins. Compare (new version):

    [​IMG]

    vs previous version:

    [​IMG]

    Also to proof that it's not only in our application I prepared a stackblitz sample that shows this behavior as well, see: Stackblitz example

    I have fixed the label being "cut off" by adding a padding-top: 8px to all mat-form-fields. However, this feels like a workaround. Is there any better solution for this?

    Continue reading...

Compartilhe esta Página