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>
v1.18.x
preetykumar 4 years ago committed by GitHub
parent b9fd2c87f3
commit 2826c6986c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save