Skip to content

Commit 40cce30

Browse files
eliashaeusslerbnf
authored andcommitted
[TASK] Improve accessibility of live search button in backend toolbar
The "live search" button in the backend toolbar opens the live search as dialog, hence it should be marked as `aria-haspopup="dialog"`. In addition, the patch converts the link to a button, streamlining the behavior across all interactive elements in the backend toolbar. Resolves: #107706 Releases: main, 13.4 Change-Id: Ia15ee932e13afb21f9b33f69ed0583ce13b35d55 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91079 Tested-by: Michael Telgkamp <michael.telgkamp@typo3.org> Reviewed-by: Michael Telgkamp <michael.telgkamp@typo3.org> Tested-by: core-ci <typo3@b13.com> Tested-by: Benjamin Franzke <ben@bnf.dev> Reviewed-by: Benjamin Franzke <ben@bnf.dev>
1 parent 201e6dd commit 40cce30

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
class="topbar-button topbar-button-search t3js-topbar-button-search"
3939
title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.searchbarOpenClose')}"
4040
aria-label="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.searchbarOpenClose')}"
41+
aria-haspopup="dialog"
4142
>
4243
<core:icon identifier="actions-search" alternativeMarkupIdentifier="inline" />
4344
</button>
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<html xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
22

3-
<a href="#" class="toolbar-item-link t3js-topbar-button-search" title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.search')}">
3+
<button
4+
class="toolbar-item-link t3js-topbar-button-search"
5+
title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.search')}"
6+
aria-haspopup="dialog"
7+
>
48
<f:render partial="ToolbarItems/ToolbarItem" arguments="{
59
title: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.search',
610
icon: '{core:icon(identifier: \'apps-toolbar-menu-search\', size: \'small\', alternativeMarkupIdentifier: \'inline\')}'
711
}" />
8-
</a>
12+
</button>
13+
914
</html>

0 commit comments

Comments
 (0)