This commit is contained in:
Lea Verou
2025-03-17 10:53:44 -04:00
parent f05c8f7b84
commit 67437b719d

View File

@@ -861,7 +861,7 @@ let paletteAppSpec = {
* @param {string} hue - Hue (literal or semantic)
*/
setRoleColor(role, hue) {
if (!this.seedHues[hue] && hue !== 'gray') {
if (!this.seedHues[hue] && hue !== 'gray' && !ROLES.includes(hue)) {
// We're also adding it
this.addColor(this.coreColors[hue]);
}