mirror of https://github.com/MISP/MISP
Accessibility: added a "role" attribute so the global/local nature of tags are read correctly by all screen readers.
parent
3996af54ba
commit
dc5518db33
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue