Index: third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js |
diff --git a/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js |
index 6181650ab7e9b19d7940711c03b021a17b0bd5b7..a4b23fc5399987ea96d4f94b29f348b6e14988a5 100644 |
--- a/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js |
+++ b/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js |
@@ -12,29 +12,29 @@ |
/** |
* If true, the button should be styled with a shadow. |
- * |
- * @attribute raised |
- * @type boolean |
- * @default false |
*/ |
raised: { |
type: Boolean, |
reflectToAttribute: true, |
value: false, |
- observer: '_buttonStateChanged' |
+ observer: '_calculateElevation' |
} |
- |
}, |
- ready: function() { |
- if (!this.hasAttribute('role')) { |
- this.setAttribute('role', 'button'); |
+ _calculateElevation: function() { |
+ if (!this.raised) { |
+ this._elevation = 0; |
+ } else { |
+ Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this); |
} |
}, |
- _buttonStateChanged: function() { |
- this._calculateElevation(); |
+ _computeContentClass: function(receivedFocusFromKeyboard) { |
+ var className = 'content '; |
+ if (receivedFocusFromKeyboard) { |
+ className += ' keyboard-focus'; |
+ } |
+ return className; |
} |
- |
}); |