Skip to content

Extend MatFormFieldDefaultOptions with color. #24438

Closed
@infacto

Description

@infacto

Setting color on every element:

<mat-form-field color="accent" />

could be replaced by global setting in app module:

{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill', color: 'accent' } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions