Skip to content

Using mat-grey palette with white and black color #6599

@petervatler

Description

@petervatler

Bug, feature request, or proposal:

  • Pure white and black hue cannot be used while using mat-grey palette.

What is the expected behavior?

  • To be able to use pure white and black colors.

What is the current behavior?

It cannot be compiled.

What are the steps to reproduce?

  • Use 0 or 1000 as hue parameter while using mat-color with mat-grey palette. It cannot be compiled because: "If this is a value between 0 and 1, it will be treated as opacity."
    Providing a Plunker (or similar) is the best way to get the team to see your issue.
    Plunker template: https://goo.gl/DlHd6U

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

  • These are very basic colors and commonly used and there are cases when these colors should be constant.

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

  • Tested on 4.x but I think it's a global issue.

Is there anything else we should know?

  • None

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