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

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

Issue 2441043004: Accessibility fixes for quick unlock settings. (Closed)
Patch Set: Address comments 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 3f906ef06ed653a3d999a1a4c1b7f477677667f8..ec26ea2f44148e280e6995ae450822005f4c282d 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],
+
properties: {
/**
* True if the dialog should remain open on 'popstate' events. This is used
@@ -53,4 +55,8 @@ Polymer({
getCloseButton: function() {
return this.$.close;
},
+
+ getCloseA11yText_: function() {
+ return this.i18n('close');
Dan Beam 2016/10/27 00:26:27 this 'close' message is added where? in a setting
jdufault 2016/10/27 19:13:55 Yep
+ }
});

Powered by Google App Engine
This is Rietveld 408576698