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

Side by Side Diff: chrome/browser/resources/settings/people_page/password_prompt_dialog.html

Issue 2441043004: Accessibility fixes for quick unlock settings. (Closed)
Patch Set: Address comments, fix test Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
5 <link rel="import" href="/i18n_setup.html">
5 <link rel="import" href="/settings_shared_css.html"> 6 <link rel="import" href="/settings_shared_css.html">
6 <link rel="import" href="/settings_shared_css.html"> 7 <link rel="import" href="/settings_shared_css.html">
7 8
8 <dom-module id="settings-password-prompt-dialog"> 9 <dom-module id="settings-password-prompt-dialog">
9 <template> 10 <template>
10 <style include="settings-shared"> 11 <style include="settings-shared">
11 #passwordInput { 12 #passwordInput {
12 display: inline-block; 13 display: inline-block;
13 } 14 }
14 15
15 .settings-box { 16 .settings-box {
16 padding: 0; 17 padding: 0;
17 } 18 }
18 </style> 19 </style>
19 20
20 <dialog is="cr-dialog" id="dialog" on-close="onClose_"> 21 <dialog is="cr-dialog" id="dialog" on-close="onClose_">
21 <div class="title">$i18n{passwordPromptTitle}</div> 22 <div class="title">$i18n{passwordPromptTitle}</div>
22 <div class="body"> 23 <div class="body">
23 24
24 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> 25 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div>
25 26
26 <paper-input id="passwordInput" type="password" autofocus 27 <paper-input id="passwordInput" type="password"
27 label="$i18n{passwordPromptPasswordLabel}" 28 label="$i18n{passwordPromptPasswordLabel}"
28 no-label-float 29 no-label-float
29 value="{{password_}}" 30 value="{{password_}}"
30 on-keydown="onKeydown_" 31 on-keydown="onKeydown_"
31 invalid$="[[passwordInvalid_]]" 32 invalid$="[[passwordInvalid_]]"
32 error-message="$i18n{passwordPromptInvalidPassword}" 33 error-message="$i18n{passwordPromptInvalidPassword}"
33 aria-disabled="false"> 34 aria-disabled="false">
34 </paper-input> 35 </paper-input>
35 36
36 <div class="button-strip"> 37 <div class="button-strip">
37 <paper-button class="cancel-button" on-tap="onCancelTap_"> 38 <paper-button class="cancel-button" on-tap="onCancelTap_">
38 $i18n{cancel} 39 $i18n{cancel}
39 </paper-button> 40 </paper-button>
40 41
41 <paper-button class="action-button" on-tap="submitPassword_" 42 <paper-button class="action-button" on-tap="submitPassword_"
42 disabled$="[[!enableConfirm_(password_, 43 disabled$="[[!enableConfirm_(password_,
43 passwordInvalid_)]]"> 44 passwordInvalid_)]]">
44 $i18n{confirm} 45 $i18n{confirm}
45 </paper-button> 46 </paper-button>
46 </div> 47 </div>
47 </div> 48 </div>
48 </dialog> 49 </dialog>
49 </template> 50 </template>
50 <script src="password_prompt_dialog.js"></script> 51 <script src="password_prompt_dialog.js"></script>
51 </dom-module> 52 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698