Prevent scales not in palette from showing up in contrast tables

This commit is contained in:
Lea Verou
2025-03-14 17:39:24 -04:00
parent 0a938d5cf3
commit c70ea3627c
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
</tr>
</thead>
{% for hue in hues -%}
<tr data-hue="{{ hue }}">
<tr data-hue="{{ hue }}" v-if="'{{hue}}' in paletteScales">
<th>{{ hue | capitalize }}</th>
{% for tint_bg in tints -%}
{% set color_bg = palettes[paletteId][hue][tint_bg] %}

View File

@@ -480,7 +480,7 @@ let paletteAppSpec = {
},
contrasts() {
return getContrasts(this.colors, this.originalContrasts);
return getContrasts(this.paletteScales, this.originalContrasts);
},
baseCoreColors() {