Improve accessibility of iconfont icons
Iconfont icons are of no value to screenreader users; in our case, they get alternative text. By adding 'aria-hidden="true"' to the <span> holding the iconfont icon, we avoid the screenreader trying to announce the iconfont icon.
This commit is contained in:
@@ -269,7 +269,7 @@ switch($serendipity['GET']['adminAction']) {
|
||||
AND specific_catalog = '" . $serendipity['dbName'] . "'");
|
||||
if (is_array($r) && $r[0]['counter'] > 0) {
|
||||
$term = str_replace('&', '&', $term);
|
||||
$filter[] = "(
|
||||
$filter[] = "(
|
||||
to_tsvector('english', title) @@to_tsquery('$term') OR
|
||||
to_tsvector('english', body) @@to_tsquery('$term') OR
|
||||
to_tsvector('english', extended) @@to_tsquery('$term')
|
||||
@@ -402,7 +402,7 @@ switch($serendipity['GET']['adminAction']) {
|
||||
return; // blank content page, but default token check parameter is presenting a XSRF message when false
|
||||
}
|
||||
if (!is_array($serendipity['POST']['multiDelete'])) {
|
||||
echo '<div class="msg_notice"><span class="icon-attention-circled"></span> ' . sprintf(MULTICHECK_NO_ITEM, $_SERVER['HTTP_REFERER']) . '</div>'."\n";
|
||||
echo '<div class="msg_notice"><span class="icon-attention-circled" aria-hidden="true"></span> ' . sprintf(MULTICHECK_NO_ITEM, $_SERVER['HTTP_REFERER']) . '</div>'."\n";
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -445,4 +445,4 @@ if (!isset($data['formtoken'])) $data['formtoken'] = serendipity_setFormToken();
|
||||
|
||||
echo serendipity_smarty_show('admin/entries.inc.tpl', $data);
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
Reference in New Issue
Block a user