Accessibility: added a "role" attribute so the global/local nature of tags are read correctly by all screen readers.

pull/9373/head
Olivier BERT 2023-11-14 15:09:52 +01:00
parent 3996af54ba
commit dc5518db33
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if (isset($tag_display_style)) {
}
$aText = h($aText);
$span_scope = !empty($hide_global_scope) ? '' : sprintf(
'<span class="%s" title="%s" aria-label="%s"><i class="fas fa-%s"></i></span>',
'<span class="%s" title="%s" role="img" aria-label="%s"><i class="fas fa-%s"></i></span>',
'black-white tag',
!empty($tag['local']) ? __('Local tag') : __('Global tag'),
!empty($tag['local']) ? __('Local tag') : __('Global tag'),