mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-35823 - Accessibility - Readding Focus to header in the help popup
This commit is contained in:
parent
fc7defef99
commit
083c15e640
@ -1583,7 +1583,7 @@ M.util.help_icon = {
|
||||
var contentnode, heading;
|
||||
contentnode = Y.Node.create('<div role="alert">' + content + '</div>');
|
||||
this.overlay.set('bodyContent', contentnode);
|
||||
heading = contentnode.one('h1');
|
||||
heading = contentnode.one('h2');
|
||||
if (heading) {
|
||||
heading.set('tabIndex', 0);
|
||||
heading.focus();
|
||||
|
Loading…
x
Reference in New Issue
Block a user