Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb05960

Browse files
committed
bug #49224 [WebProfilerBundle] Fix an accessibility issue in the search form of the header (javiereguiluz)
This PR was merged into the 6.2 branch. Discussion ---------- [WebProfilerBundle] Fix an accessibility issue in the search form of the header | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The Profiler redesign introduced in 6.2 had an accessibility issue in the search form of the header. I fixed it following the best practices explained in https://www.w3.org/WAI/tutorials/forms/labels/ Commits ------- 7b4f2bf [WebProfilerBundle] Fix an accessibility issue in the search form of the header
2 parents f143a1c + 7b4f2bf commit fb05960

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/header.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<div class="search">
55
<form method="get" action="https://symfony.com/search" target="_blank">
66
<div class="form-row">
7-
<input name="q" id="search-id" type="search" placeholder="search on symfony.com">
7+
<input name="q" id="search-id" type="search" placeholder="search on symfony.com" aria-label="Search on symfony.com">
8+
<button type="submit" class="visually-hidden">Search</button>
89
</div>
910
</form>
1011
</div>

0 commit comments

Comments
 (0)