OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |