MDL-28235 form: Help button popup close accessibility improved
AMOS BEGIN CPY [close,editor],[close,form] AMOS END
This commit is contained in:
@@ -1733,6 +1733,7 @@ class core_renderer extends renderer_base {
|
||||
$output = html_writer::tag('a', $output, $attributes);
|
||||
|
||||
$this->page->requires->js_init_call('M.util.help_icon.add', array(array('id'=>$id, 'url'=>$url->out(false))));
|
||||
$this->page->requires->string_for_js('close', 'form');
|
||||
|
||||
// and finally span
|
||||
return html_writer::tag('span', $output, array('class' => 'helplink'));
|
||||
@@ -1798,6 +1799,7 @@ class core_renderer extends renderer_base {
|
||||
$output = html_writer::tag('a', $output, $attributes);
|
||||
|
||||
$this->page->requires->js_init_call('M.util.help_icon.add', array(array('id'=>$id, 'url'=>$url->out(false))));
|
||||
$this->page->requires->string_for_js('close', 'form');
|
||||
|
||||
// and finally span
|
||||
return html_writer::tag('span', $output, array('class' => 'helplink'));
|
||||
|
||||
Reference in New Issue
Block a user