Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js

Issue 2700063002: MD Settings: focus header when dialog shows to signal to AT what's going on (Closed)
Patch Set: dpapad@ review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
diff --git a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
index d15ed9b8173a769d12afe886806d1509a99cfffc..3e29f9fcb60fe9ee6eb56748814f412c4397903d 100644
--- a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
+++ b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
@@ -41,6 +41,13 @@ Polymer({
}.bind(this));
},
+ /** @override */
+ attached: function() {
+ var title = this.getContentChildren('[select=".title"]');
dpapad 2017/02/24 20:46:10 Nit(optional): Perhaps use queryEffectiveChildren
Dan Beam 2017/02/24 22:08:31 that's different. that gets all the distributed c
+ if (title.length)
+ title[0].tabIndex = -1;
+ },
+
cancel: function() {
this.fire('cancel');
HTMLDialogElement.prototype.close.call(this, '');

Powered by Google App Engine
This is Rietveld 408576698