| Index: third_party/polymer/v1_0/components-chromium/paper-radio-button/paper-radio-button-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/paper-radio-button/paper-radio-button-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-radio-button/paper-radio-button-extracted.js
|
| index befc6409072f1410a8f4be005d3de49b7fbc6c6e..79806d30ecb36d704bc832eb64be9126873a8880 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/paper-radio-button/paper-radio-button-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/paper-radio-button/paper-radio-button-extracted.js
|
| @@ -1,10 +1,8 @@
|
| -
|
| - Polymer({
|
| +Polymer({
|
| is: 'paper-radio-button',
|
|
|
| behaviors: [
|
| - Polymer.PaperInkyFocusBehavior,
|
| - Polymer.IronCheckedElementBehavior
|
| + Polymer.PaperCheckedElementBehavior
|
| ],
|
|
|
| hostAttributes: {
|
| @@ -26,39 +24,15 @@
|
| * @event iron-change
|
| */
|
|
|
| - ariaActiveAttribute: {
|
| - value: 'aria-checked'
|
| - }
|
| - },
|
| -
|
| - attached: function() {
|
| - this._isReady = true;
|
| -
|
| - // Don't stomp over a user-set aria-label.
|
| - if (!this.getAttribute('aria-label')) {
|
| - this.updateAriaLabel();
|
| + ariaActiveAttribute: {
|
| + type: String,
|
| + value: 'aria-checked'
|
| }
|
| },
|
|
|
| - /**
|
| - * Update the checkbox aria-label. This is a temporary workaround not
|
| - * being able to observe changes in <content>
|
| - * (see: https://github.com/Polymer/polymer/issues/1773)
|
| - *
|
| - * Call this if you manually change the contents of the checkbox
|
| - * and want the aria-label to match the new contents.
|
| - */
|
| - updateAriaLabel: function() {
|
| - this.setAttribute('aria-label', Polymer.dom(this).textContent.trim());
|
| - },
|
| -
|
| - _buttonStateChanged: function() {
|
| - if (this.disabled) {
|
| - return;
|
| - }
|
| - if (this._isReady) {
|
| - this.checked = this.active;
|
| - }
|
| + // create the element ripple inside the `radioContainer`
|
| + _createRipple: function() {
|
| + this._rippleContainer = this.$.radioContainer;
|
| + return Polymer.PaperInkyFocusBehaviorImpl._createRipple.call(this);
|
| }
|
| - })
|
| -
|
| + });
|
|
|