mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Prevent scales not in palette from showing up in contrast tables
This commit is contained in:
@@ -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] %}
|
||||
|
||||
@@ -480,7 +480,7 @@ let paletteAppSpec = {
|
||||
},
|
||||
|
||||
contrasts() {
|
||||
return getContrasts(this.colors, this.originalContrasts);
|
||||
return getContrasts(this.paletteScales, this.originalContrasts);
|
||||
},
|
||||
|
||||
baseCoreColors() {
|
||||
|
||||
Reference in New Issue
Block a user