diff --git a/paper-checkbox-light.html b/paper-checkbox-light.html index a17d4a4..4595197 100644 --- a/paper-checkbox-light.html +++ b/paper-checkbox-light.html @@ -219,7 +219,8 @@ }, noink: { - type: Boolean + type: Boolean, + observer: '_noinkChanged' }, }, @@ -251,6 +252,12 @@ this.setAttribute('aria-disabled', this.disabled); }, + _noinkChanged: function(noink) { + if (this._ripple) { + this._ripple.noink = noink; + } + }, + _updateInkSize: function() { var inkSize = this.getComputedStyleValue('--calculated-paper-checkbox-ink-size'); // If unset, compute and set the default `--paper-checkbox-ink-size`. @@ -317,6 +324,7 @@ var ripple = document.createElement('paper-ripple'); ripple.center = true; ripple.classList.add('circle'); + ripple.noink = this.noink; Polymer.dom(this.root).appendChild(ripple); this._ripple = ripple; } diff --git a/test/paper-checkbox-light.html b/test/paper-checkbox-light.html index 1edcb39..023daac 100644 --- a/test/paper-checkbox-light.html +++ b/test/paper-checkbox-light.html @@ -197,7 +197,7 @@ test('checkbox respects the user set aria-label', function() { var c = fixture('AriaLabel'); - assert.isTrue(c.getAttribute('aria-label') == "Batman"); + assert.isTrue(c.getAttribute('aria-label') == 'Batman'); }); a11ySuite('Basic');