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

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

Issue 2441043004: Accessibility fixes for quick unlock settings. (Closed)
Patch Set: Initial patch Created 4 years, 2 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 fc13095d5eec9c815c1c54e713b4f6206a0a0f11..f752a7dd32e5e398a58de5062be607cea2189415 100644
--- a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
+++ b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
@@ -15,6 +15,8 @@ Polymer({
is: 'cr-dialog',
extends: 'dialog',
+ behaviors: [I18nBehavior],
tommycli 2016/10/25 18:13:50 hopefully this is unneeded per the previous commen
jdufault 2016/10/26 22:38:36 It's needed :(. I could remove it by calling loadT
+
/** @override */
created: function() {
// If the active history entry changes (i.e. user clicks back button),
@@ -42,4 +44,8 @@ Polymer({
getCloseButton: function() {
return this.$.close;
},
+
+ getCloseA11yText_: function() {
+ return this.i18n('close');
+ }
});

Powered by Google App Engine
This is Rietveld 408576698