Skip to content

width in mat-form-field-theme mixin makes it problematic to have multiple themes #6932

@james-schwartzkopf

Description

@james-schwartzkopf

Bug, feature request, or proposal:

Using classes to change from a default theme changes the specificity of form field widths.

What is the expected behavior?

Changing theme should not change form field widths.

What is the current behavior?

Using a theme class changes the specificity of the default form field width.

What are the steps to reproduce?

http://plnkr.co/edit/WcreafWOoGGgLxNuSZh0?p=preview

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

Changing theme shouldn't cause the width of form fields to change.

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

beta 10

Is there anything else we should know?

It seems like the width in mat-form-field-theme() should be in a mixin called by mat-core instead?

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