Skip to content

MatFormField floatLabel can not be set to "never" when using appearance outline #18267

@jwittekind

Description

@jwittekind

Reproduction

Angular Material 8.2.3
<mat-form-field appearance="outline" floatLabel="never"> <mat-label>Input Field</mat-label> <input matInput> </mat-form-field>

Steps to reproduce:

  1. Create a form field with an input (angular v8.2.3)
  2. Add floatLabel="never" tag // <-- still works
  3. Add appearance="outline" tag // <-- doesn't work

Expected Behavior

The MatFormField label shouldn't float when floatLabel tag is set to "never" and appearance is set to "outline".

Actual Behavior

The label is still floating when floatLabel tag is set to "never" and appearance is set to "outline".

Environment

  • Angular:
  • CDK/Material: v8.2.3
  • Browser(s): Chrome/Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions