Skip to content

MatFormField with appearance="outline" draws line through the label if the form field starts out as "display: none." #14031

Closed
@grant77

Description

@grant77

Bug, feature request, or proposal:

MatFormField with appearance="outline" draws line through the label if the form field starts out as "display: none." Is see Bug #12555, but I don't think it covers this scenario. I have provided a very simple stackblitz to duplicate.

What is the expected behavior?

There should not be a line going though the label.

What is the current behavior?

There is a line going though the label.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-ovrlab

What is the use-case or motivation for changing an existing behavior?

It's ugly.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/material": "7.0.2"

Is there anything else we should know?

No.

Metadata

Metadata

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions