Skip to content

bug(theme-generator): errorColor and neutralVariantColor missing in schema #30571

Closed
@RobSlgm

Description

@RobSlgm

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

#30321 added options to customize colors for neutral variant and error color.

These options are not available on the command line, e.g.

 ng generate @angular/material:theme-color ... --error-color=#ff0022 --neutral-variant-color=#a09890 

fails as neither 'error-color' or 'neutral-variant-color' are known.

The options are missing in @angular\material\schematics\ng-generate\theme-color\schema.json.

Reproduction

The issue is related to the usage on the command line, see statement above.

Expected Behavior

Add the options to the schema.json.

Actual Behavior

The command line statements returns with
Error: Unknown arguments: error-color, neutral-variant-color

Environment

  • CDK/Material: 19.2.1
  • Node: v22.14.0

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: ng-generateSchematics that generate code in user projects

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions