add aria-label

This commit is contained in:
daria 2026-03-10 11:50:31 +02:00
parent 87064ac689
commit e2df7a3420
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701

View File

@ -246,7 +246,9 @@ define([
$chat.find('.cp-app-contacts-history-cleared').remove();
var closeButton = h('button.cp-help-close', [Icons.get('close')]);
var closeButton = h('button.cp-help-close',
{ 'aria-label': Messages.history_close },
[Icons.get('close')]);
var container = h('div.cp-help-container.cp-app-contacts-history-cleared', [
Icons.get('help'),
h('span.cp-help-text', Messages.contacts_historyCleared),
@ -282,7 +284,8 @@ define([
var moreHistory = h('span', {
class: 'cp-app-contacts-more-history',
tabindex: '0',
role: 'button'
role: 'button',
'aria-label': Messages.contacts_fetchHistory
});
moreHistory.append(Icons.get('history', {title: Messages.contacts_fetchHistory}));
@ -354,7 +357,8 @@ define([
var removeHistory = h('span', {
'class': 'cp-app-contacts-remove-history',
'tabindex': '0',
'role': 'button'
'role': 'button',
'aria-label': Messages.contacts_removeHistoryTitle
});
removeHistory.append(Icons.get('remove-history', {title: Messages.contacts_removeHistoryTitle}));