Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

themes: Allow primary and accent colors to be the same palette. #8260

@ErinCoughlan

Description

@ErinCoughlan

Currently, Material throws an warning when primary and accent colors are the same (here). This is not disallowed in the Material spec, so the warning should be removed.

The workaround is to duplicate palettes and change the name:

$mdThemingProvider.definePalette(
      'grey-accent', $mdThemingProvider.extendPalette('grey', {}));
$mdThemingProvider.definePalette(
      'grey-background', $mdThemingProvider.extendPalette('grey', {}));

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions