The Accessibility section of README.md says the aria-label will be set to the value of the heading attribute by default. However, setting the heading always sets the aria-label whether the aria-label attribute is already defined or not, making it impossible to explicitly define an aria-label for the card.
Expected outcome
The aria-label attribute keeps the value set by the programmer.
Actual outcome
The aria-label attribute is set to the value of the heading attribute.
Create a paper-card with a heading attribute and an aria-label attribute (or go to the above url)
Open the page in a web browser.
Inspect the paper-card.
Observe the aria-label attribute is set to the value of the heading attribute (the-heading) instead of the explicitly set aria-label attribute (the-aria-label).
Description
The Accessibility section of README.md says the
aria-label
will be set to the value of theheading
attribute by default. However, setting theheading
always sets thearia-label
whether thearia-label
attribute is already defined or not, making it impossible to explicitly define anaria-label
for the card.Expected outcome
The
aria-label
attribute keeps the value set by the programmer.Actual outcome
The
aria-label
attribute is set to the value of theheading
attribute.Live Demo
http://jsbin.com/qisubakiwi/1/edit?html,output
Steps to reproduce
paper-card
with a heading attribute and an aria-label attribute (or go to the above url)paper-card
.