Skip to content

Commit

Permalink
Update #86byan3tr accessibility issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaalshaikh committed Jul 8, 2024
1 parent 65b1f7e commit bb389cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block_quickcourselist.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,13 @@ public function get_content() {
$anchor = html_writer::tag('a', '', ['name' => 'efquicklistanchor']);
$inputattrs = [
'autocomplete' => 'off',
'type' => 'search',
'name' => 'efquicklistsearch',
'id' => 'efquicklistsearch',
'class' => 'form-control',
'value' => $search,
'aria-label' => 'Search for courses',
'aria-description' => 'Search results will appear below',
];
$input = html_writer::empty_tag('input', $inputattrs);

Expand All @@ -148,6 +151,7 @@ public function get_content() {
'id' => 'quickcourseform',
'method' => 'post',
'action' => $this->page->url->out() . '#efquicklistanchor',
'role' => 'search',
];
$form = html_writer::tag('form', $input . $progress . $submit, $formattrs);

Expand Down

0 comments on commit bb389cc

Please sign in to comment.