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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1 Polymer({
2 Polymer({
3 is: 'paper-icon-button', 2 is: 'paper-icon-button',
4 3
5 hostAttributes: { 4 hostAttributes: {
6 role: 'button', 5 role: 'button',
7 tabindex: '0' 6 tabindex: '0'
8 }, 7 },
9 8
10 behaviors: [ 9 behaviors: [
11 Polymer.PaperInkyFocusBehavior 10 Polymer.PaperInkyFocusBehavior
12 ], 11 ],
(...skipping 26 matching lines...) Expand all
39 }, 38 },
40 39
41 _altChanged: function(newValue, oldValue) { 40 _altChanged: function(newValue, oldValue) {
42 var label = this.getAttribute('aria-label'); 41 var label = this.getAttribute('aria-label');
43 42
44 // Don't stomp over a user-set aria-label. 43 // Don't stomp over a user-set aria-label.
45 if (!label || oldValue == label) { 44 if (!label || oldValue == label) {
46 this.setAttribute('aria-label', newValue); 45 this.setAttribute('aria-label', newValue);
47 } 46 }
48 } 47 }
49 }); 48 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698