Commit 28ee1350 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1567187: Added correct screenreader tags

in select/edit buttons for folder and files


Change-Id: Icf89b2add901828470dff50fb18cc39ef2f31056
parent 64f3693f
......@@ -28,6 +28,8 @@ $string['clickanddragtomovefile'] = 'Move %s by clicking and dragging or by pres
$string['moveto'] = 'Move to %s';
$string['editfolderspecific'] = 'Edit folder "%s"';
$string['deletefolderspecific'] = 'Delete folder "%s"';
$string['editfilespecific'] = 'Edit file "%s"';
$string['selectspecific'] = 'Select "%s"';
$string['foldercontents'] = 'Folder contents';
$string['copyrightnotice'] = 'Copyright notice';
$string['create'] = 'Create';
......@@ -111,7 +111,7 @@
{if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent}
<button type="submit" class="btn btn-xs btn-default" name="{$prefix}_select[{$file->id}]" id="{$prefix}_select_{$file->id}" title="{str tag=select}">
<span class="icon icon-check icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{str tag=select}</span>
<span class="sr-only">{str tag=selectspecific section=artefact.file arg1=$displaytitle|escape:html|safe}</span>
{if $editmeta}
......@@ -121,7 +121,11 @@
{if !isset($file->can_edit) || $file->can_edit !== 0}
<button name="{$prefix}_edit[{$file->id}]" class="btn btn-default btn-xs" title="{str tag=edit}">
<span class="icon icon-pencil icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{$edittext|escape:html|safe}</span>
{if $file->artefacttype == 'folder'}
<span class="sr-only">{str tag=editfolderspecific section=artefact.file arg1=$displaytitle|escape:html|safe}</span>
<span class="sr-only">{str tag=editfilespecific section=artefact.file arg1=$displaytitle|escape:html|safe}</span>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment