mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 02:48:24 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user