MDL-35927 filepicker: add aria attribute to display modal error
This commit is contained in:
+2
-2
@@ -803,8 +803,8 @@ class core_files_renderer extends plugin_renderer_base {
|
||||
*/
|
||||
private function fp_js_template_message() {
|
||||
$rv = '
|
||||
<div class="file-picker fp-msg">
|
||||
<p class="{!}fp-msg-text"></p>
|
||||
<div class="file-picker fp-msg" role="alertdialog" aria-live="assertive" aria-labelledby="fp-msg-labelledby">
|
||||
<p class="{!}fp-msg-text" id="fp-msg-labelledby"></p>
|
||||
<button class="{!}fp-msg-butok">'.get_string('ok').'</button>
|
||||
</div>';
|
||||
return preg_replace('/\{\!\}/', '', $rv);
|
||||
|
||||
Reference in New Issue
Block a user