Skip to content

Commit

Permalink
Merge pull request #26 from tilde-nlp/fix/adding-alt-to-images
Browse files Browse the repository at this point in the history
added empty alt to images
  • Loading branch information
alexattt authored Jul 23, 2024
2 parents 49cdd0f + ad54958 commit 7211042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/ui/LanguageMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class LanguageMenu implements ILanguageSelect {

const menuArrow = document.createElement('img')
menuArrow.classList.add('menu-arrow')
menuArrow.alt = ""
menuArrow.src = this.internalOptions.ui.icons.menuIcon
menuArrow.setAttribute('role', 'presentation')

Expand Down Expand Up @@ -167,7 +168,8 @@ export class LanguageMenu implements ILanguageSelect {
if (item.machineTranslated) {
const img = document.createElement('img')
img.src = settingsIcon
img.role = "presentation";
img.alt = ""
img.role = "presentation"

this.subscriptions.push(
this.uiLocalization.subscribe({
Expand Down

0 comments on commit 7211042

Please sign in to comment.