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

Commit 3654fbf

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(theming): remove console warn for same primary and accent palettes
- This is not disallowed in the Material spec, so the warning should be removed fixes #8260 Closes #8564
1 parent a55ce9c commit 3654fbf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/core/services/theming/theming.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,6 @@ function generateTheme(theme, name, nonce) {
670670
}
671671
});
672672

673-
674-
if (theme.colors.primary.name == theme.colors.accent.name) {
675-
console.warn('$mdThemingProvider: Using the same palette for primary and' +
676-
' accent. This violates the material design spec.');
677-
}
678-
679673
GENERATED[theme.name] = true;
680674
}
681675

0 commit comments

Comments
 (0)