mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Accessibility fix for avatar in settings
This commit is contained in:
parent
174e9bde70
commit
08801fd747
@ -1956,7 +1956,9 @@ define([
|
||||
common.displayAvatar($avatar, val, name, () => {
|
||||
if (!val) { return; }
|
||||
// avatar cb: append delete button
|
||||
$avatar.find('.cp-settings-avatar-delete').remove();
|
||||
const delButton = h('button.cp-settings-avatar-delete.btn.btn-danger.fa.fa-times', {
|
||||
'aria-label': Messages.profile_remove_avatar,
|
||||
title: Messages.profile_remove_avatar
|
||||
});
|
||||
$avatar.append(delButton);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user