remove hardcoded English alt text, hide image from screenreaders

This commit is contained in:
ansuz 2022-09-08 14:06:29 +05:30
parent a35299d390
commit 3be2a12e3e

View File

@ -1739,7 +1739,10 @@ define([
tag: 'div',
attributes: {'class': 'cp-user-menu-logo'},
content: h('span', [
h('img', {src: '/customize/CryptPad_logo_grey.svg',alt: 'CryptPad logo',}), // XXX hardcoded alt text?
h('img', {
src: '/customize/CryptPad_logo_grey.svg',
"aria-hidden": true,
}),
h('span.cp-user-menu-logo-text', "CryptPad")
]),
});