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

Side by Side Diff: chrome/browser/resources/settings/languages_page/edit_dictionary_page.html

Issue 2670963003: MD Settings: in spell-check page, disable add button when input is empty. (Closed)
Patch Set: gets rid of confusing selector 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.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/iron-a11y-keys/iron-a11 y-keys.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
8 <link rel="import" href="../settings_shared_css.html"> 8 <link rel="import" href="../settings_shared_css.html">
9 9
10 <dom-module id="settings-edit-dictionary-page"> 10 <dom-module id="settings-edit-dictionary-page">
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 paper-button { 34 paper-button {
35 -webkit-margin-start: 16px; 35 -webkit-margin-start: 16px;
36 } 36 }
37 </style> 37 </style>
38 <div class="settings-box first"> 38 <div class="settings-box first">
39 <iron-a11y-keys id="keys" keys="enter esc" 39 <iron-a11y-keys id="keys" keys="enter esc"
40 on-keys-pressed="onKeysPress_"></iron-a11y-keys> 40 on-keys-pressed="onKeysPress_"></iron-a11y-keys>
41 <div class="start"> 41 <div class="start">
42 <paper-input id="newWord" no-label-float 42 <paper-input id="newWord" no-label-float value="{{newWordValue_}}"
43 label="$i18n{addDictionaryWordLabel}"></paper-input> 43 label="$i18n{addDictionaryWordLabel}"></paper-input>
44 </div> 44 </div>
45 <paper-button class="secondary-button" on-tap="onAddWordTap_"> 45 <paper-button class="secondary-button" on-tap="onAddWordTap_"
46 disabled="[[!validateWord_(newWordValue_)]]">
46 $i18n{addDictionaryWordButton} 47 $i18n{addDictionaryWordButton}
47 </paper-button> 48 </paper-button>
48 </div> 49 </div>
49 <div class="settings-box continuation block"> 50 <div class="settings-box continuation block">
50 <h2>$i18n{customDictionaryWords}</h2> 51 <h2>$i18n{customDictionaryWords}</h2>
51 <div class="list-frame"> 52 <div class="list-frame">
52 <iron-list id="list" items="{{words_}}"> 53 <iron-list id="list" items="{{words_}}">
53 <template> 54 <template>
54 <div class="list-item"> 55 <div class="list-item">
55 <div class="word text-elide">[[item]]</div> 56 <div class="word text-elide">[[item]]</div>
56 <paper-icon-button icon="cr:clear" on-tap="onRemoveWordTap_" 57 <paper-icon-button icon="cr:clear" on-tap="onRemoveWordTap_"
57 tabindex$="[[tabIndex]]"> 58 tabindex$="[[tabIndex]]">
58 </paper-icon-button> 59 </paper-icon-button>
59 </div> 60 </div>
60 </template> 61 </template>
61 </iron-list> 62 </iron-list>
62 </div> 63 </div>
63 </div> 64 </div>
64 </template> 65 </template>
65 <script src="edit_dictionary_page.js"></script> 66 <script src="edit_dictionary_page.js"></script>
66 </dom-module> 67 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698