Skip to content

Wrong md-input-container style causing md-error layout issue #6517

Closed
@etiennecrb

Description

@etiennecrb

Bug, feature request, or proposal:

Bug

What is the expected behavior?

md-error under md-input-container should display without overflow.

What is the current behavior?

If default font was overridden for body, using 'Open Sans' for instance, the error is not entirely inside the container's box.
capture du 2017-08-17 09-13-30

This is because md-input-container styles are not valid according to Chrome 60.
capture du 2017-08-17 09-14-02

What are the steps to reproduce?

https://plnkr.co/edit/Z2FmvRqT4hcNoHgl0Tam?p=preview

I just took the Material example and applied 'Open Sans' font on the body, you can see the overflow.
capture du 2017-08-17 09-21-16

Applying Roboto font on the md-input-container resolves the issue.

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

Inside a dialog, this bug creates layout issues (scrollbars appear, error is not entirely visible etc.).

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

I'm trying this with Angular 4.3.5, Material 2.0.0-beta8, Chrome 60 on Ubuntu 16.04.

Is there anything else we should know?

No.

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