Update taskbar.js (#9314)

* Update taskbar.js

add aria-label to make the link text discernible to screen readers.

* place quotes around attribute value

Co-authored-by: Peter Jaszkowiak <p.jaszkow@gmail.com>
This commit is contained in:
preetykumar
2021-02-28 17:57:19 -05:00
committed by GitHub
parent b9fd2c87f3
commit 2826c6986c

View File

@@ -156,7 +156,7 @@ define('taskbar', ['benchpress', 'translator'], function (Benchpress, translator
.addClass(data.options.className)
.html('<a href="#"' + (data.options.image ? ' style="background-image: url(\'' + data.options.image + '\'); background-size: cover;"' : '') + '>' +
(data.options.icon ? '<i class="fa ' + data.options.icon + '"></i> ' : '') +
'<span component="taskbar/title">' + title + '</span>' +
'<span aria-label="' + title + '" component="taskbar/title">' + title + '</span>' +
'</a>')
.attr({
title: title,