add aria label to colors

This commit is contained in:
daria 2026-05-21 15:36:18 +03:00
parent ab252784f2
commit 5ab37fffc0
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701

View File

@ -4407,6 +4407,7 @@ define([
var $color = $(h('button.cp-palette-color'));
all.push($color);
$color.addClass('cp-palette-'+(color || 'nocolor'));
$color.attr('aria-label', Messages['color' + i]);
const checkIcon = Icons.get('check');
$(checkIcon).addClass('cp-check-icon is-hidden'); // added hidden class to overcome Lucide rendering
$color.append(checkIcon);