Skip to content

bug(mat-select): has different height than matInput #24446

@kroeder

Description

@kroeder

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

13.2.3

Description

If you render a mat-input and a mat-select component next to each other you can see that mat-select is slightly higher than the mat-input. This is a specific appearance="outline" issue. Using appearance="fill" the height is the exact same. (see https://material.angular.io/components/form-field/examples)

Mat Input

mat-form-field

image

.mat-form-field-infix

image

Mat Select

mat-form-field

image

.mat-form-field-infix

image

Reproduction

StackBlitz Demo

Expected Behavior

All form components should have the same height.

Actual Behavior

The height is different when using appearance="outline"

Environment

  • Angular: 13.0.x
  • CDK/Material: 13.2.3
  • Browser(s): Chrome 98.0.4758.102
  • Operating System Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/select

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions