From dc5518db33f1c2f8bc614dcf3a6dda56d2c54ef8 Mon Sep 17 00:00:00 2001 From: Olivier BERT Date: Tue, 14 Nov 2023 15:09:52 +0100 Subject: [PATCH] Accessibility: added a "role" attribute so the global/local nature of tags are read correctly by all screen readers. --- app/View/Elements/rich_tag.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/View/Elements/rich_tag.ctp b/app/View/Elements/rich_tag.ctp index c7a70f97a..8fdecdeef 100644 --- a/app/View/Elements/rich_tag.ctp +++ b/app/View/Elements/rich_tag.ctp @@ -35,7 +35,7 @@ if (isset($tag_display_style)) { } $aText = h($aText); $span_scope = !empty($hide_global_scope) ? '' : sprintf( - '', + '', 'black-white tag', !empty($tag['local']) ? __('Local tag') : __('Global tag'), !empty($tag['local']) ? __('Local tag') : __('Global tag'),