angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.39k stars 6.76k forks source link

bug(theme): schematic doesn't ask for error hex color #29969

Open AnkitaSood opened 2 weeks ago

AnkitaSood commented 2 weeks ago

Is this a regression?

The previous version in which this bug was not present was

No response

Description

As of v18.2, a theme can be generated with a custom color with the following schematic: ng generate @angular/material:m3-theme

The schematic then prompts for hex codes for primary, secondary, tertiary, neutral colors.

It auto generates an error code palette based on the primary hex provided. It doesn't prompt the user to enter their own error color.

Reproduction

StackBlitz link: Steps to reproduce:

  1. Ensure app and material are on latest stable version - v18.2
  2. Run the schematic ng generate @angular/material:m3-theme to generate a custom theme.
  3. Notice that the schematic doesn't prompt to enter hex color to be used to represent the error color palette.

Expected Behavior

The schematic should prompt user to enter hex code that is used to represent the error color palette.

Actual Behavior

Schematic doesn't prompt to enter hex color to be used to represent the error color palette.

Environment

wagnermaciel commented 2 weeks ago

@mmalerba Is this working as intended?

isochronous commented 2 weeks ago

It also does not offer the crucial "exact color match" option that the actual theme generation utility includes.