Remove the 'gyp_config' concept from MB.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-icon-button / paper-icon-button-extracted.js
blobec51fd04602abfa51d9381ff94b7b0e9de51eef9
1 Polymer({
2 is: 'paper-icon-button',
4 hostAttributes: {
5 role: 'button',
6 tabindex: '0'
7 },
9 behaviors: [
10 Polymer.PaperInkyFocusBehavior
13 properties: {
14 /**
15 * The URL of an image for the icon. If the src property is specified,
16 * the icon property should not be.
18 src: {
19 type: String
22 /**
23 * Specifies the icon name or index in the set of icons available in
24 * the icon's icon set. If the icon property is specified,
25 * the src property should not be.
27 icon: {
28 type: String
31 /**
32 * Specifies the alternate text for the button, for accessibility.
34 alt: {
35 type: String,
36 observer: "_altChanged"
40 _altChanged: function(newValue, oldValue) {
41 var label = this.getAttribute('aria-label');
43 // Don't stomp over a user-set aria-label.
44 if (!label || oldValue == label) {
45 this.setAttribute('aria-label', newValue);
48 });