MDL-35823 - Accessibility - Readding Focus to header in the help popup
authorJason Fowler <phalacee@gmail.com>
Wed, 6 Feb 2013 06:17:29 +0000 (14:17 +0800)
committerJason Fowler <phalacee@gmail.com>
Wed, 6 Feb 2013 06:17:29 +0000 (14:17 +0800)
lib/javascript-static.js

index 1c38504..d709396 100644 (file)
@@ -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();