components icon indicating copy to clipboard operation
components copied to clipboard

bug(ThemePalette): ThemePalette for Material 3

Open seneric opened this issue 1 year ago • 0 comments

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

Currently in some components (radio-button for example) the color is typed themePalette. But themePalette only allows 'primary', 'accent' and 'warn' colors. So if we try to use it with a Material 3 palette it is not possible to specify a 'primary', 'secondary', 'tertiary' and 'error' color.

color.ts contain `/** Possible color palette values. */

export type ThemePalette = 'primary' | 'accent' | 'warn' | undefined;`

Reproduction

StackBlitz link: Steps to reproduce: 1. 2.

Expected Behavior

ThemePalette Marerial 3 compatible

Actual Behavior

ThemePalette only Marerial 2 compatible

Environment

  • Angular: 17.3.1
  • CDK/Material: 17.3.1
  • Browser(s): all
  • Operating System (e.g. Windows, macOS, Ubuntu): all

seneric avatar Apr 18 '24 09:04 seneric