Transform palette color title to uppercase

This commit is contained in:
Julian Descottes 2017-06-03 15:53:55 +02:00
parent b977a146e9
commit 94160d8fc4
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@
var html = colors.map(function (color, index) {
return pskl.utils.Template.replace(this.paletteColorTemplate_, {
color : color,
index : index + 1
index : index + 1,
title : color.toUpperCase()
});
}.bind(this)).join('');
this.colorListContainer_.innerHTML = html;

View File

@ -14,7 +14,7 @@
<div class="palettes-list-color"
data-color="{{color}}"
data-color-index="{{index}}"
title="{{color}}">
title="{{title}}">
<div data-color="{{color}}" style="background:{{color}}"></div>
</div>
</script>