MDL-67813 core: Add for attribute to search input label in filepicker
authorMihail Geshoski <mihail@moodle.com>
Tue, 26 May 2020 03:06:08 +0000 (11:06 +0800)
committerMihail Geshoski <mihail@moodle.com>
Thu, 28 May 2020 04:06:32 +0000 (12:06 +0800)
Adds the missing for attribute in the label that identifies the
search input in the filepicker. This is an accessibility improvement.

lib/templates/filemanager_default_searchform.mustache

index 1e6b24a..2bf592e 100644 (file)
@@ -23,6 +23,6 @@
     {}
 }}
 <div class="fp-def-search form-group">
-    <label class="sr-only">{{#str}}searchrepo, repository{{/str}}</label>
+    <label class="sr-only" for="reposearch">{{#str}}searchrepo, repository{{/str}}</label>
     <input type="search" class="form-control" id="reposearch" name="s" placeholder="{{#str}}search, repository{{/str}}"/>
 </div>