Skip to content

Commit

Permalink
Merge pull request #6 from Lesterhuis-Training-en-Consultancy/86byan3…
Browse files Browse the repository at this point in the history
…tr-accessibility-fix

86byan3tr accessibility fix #1
  • Loading branch information
luukverhoeven authored Jul 18, 2024
2 parents 65b1f7e + 208c743 commit fc67527
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2024050300;
$plugin->version = 2024070800;
$plugin->requires = 2014051200;
$plugin->component = 'block_quickcourselist';
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit fc67527

Please sign in to comment.