Skip to content
Snippets Groups Projects
Commit 90d63485 authored by Christian Rath-Ulrich's avatar Christian Rath-Ulrich Committed by Christian Kuhn
Browse files

[TASK] Improve accessibility in ClearCacheToolbar dropdown

To improve accessibility in ClearCacheToolbar dropdown menu, the
descriptive text of each entry is hidden for screen readers and
re-inserted after the link.

Resolves: #104086
Releases: main, 12.4
Change-Id: I30f862cb420cb01f837014872174967c1041df2e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85531


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 36e5ed9a
No related branches found
No related tags found
No related merge requests found
......@@ -3,17 +3,18 @@
<ul class="dropdown-list">
<f:for each="{cacheActions}" as="cacheAction">
<li>
<a href="{cacheAction.href}" class="dropdown-item t3js-toolbar-cache-flush-action">
<a href="{cacheAction.href}" class="dropdown-item t3js-toolbar-cache-flush-action" aria-describedby="{cacheAction.id}-description">
<span class="dropdown-item-columns">
<span class="dropdown-item-column dropdown-item-column-icon text-{cacheAction.severity}">
<core:icon identifier="{cacheAction.iconIdentifier}" size="small" />
</span>
<span class="dropdown-item-column dropdown-item-column-text">
<f:translate key="{cacheAction.title}" /><br>
<small class="text-body-secondary">{f:translate(key: '{f:if(condition: cacheAction.description, then: cacheAction.description, else: cacheAction.title)}')}</small>
<small class="text-body-secondary" aria-hidden="true">{f:translate(key: '{f:if(condition: cacheAction.description, then: cacheAction.description, else: cacheAction.title)}')}</small>
</span>
</span>
</a>
<span id="{cacheAction.id}-description" class="visually-hidden">{f:translate(key: '{f:if(condition: cacheAction.description, then: cacheAction.description, else: cacheAction.title)}')}</span>
</li>
</f:for>
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment