diff --git a/paper-card.html b/paper-card.html index e3c0b23..8ab8e02 100644 --- a/paper-card.html +++ b/paper-card.html @@ -238,8 +238,12 @@ }, _headingChanged: function(heading) { - var label = this.getAttribute('aria-label'); - this.setAttribute('aria-label', heading); + var currentHeading = this.getAttribute('heading'), + currentLabel = this.getAttribute('aria-label'); + + if (typeof currentLabel !== 'string' || currentLabel === currentHeading) { + this.setAttribute('aria-label', heading); + } }, _computeHeadingClass: function(image) { diff --git a/test/basic.html b/test/basic.html index 525225b..acfa7c3 100644 --- a/test/basic.html +++ b/test/basic.html @@ -34,33 +34,90 @@ + + + + + + + +