Skip to content

Commit d667b0d

Browse files
committed
Merge pull request #360 from PolymerElements/less-excited-aria
aria-hide the label since it's not needed
2 parents 8cfe5c5 + 9341fed commit d667b0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

paper-input-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
</style>
311311

312312
<template is="dom-if" if="[[!noLabelFloat]]">
313-
<div class="floated-label-placeholder">&nbsp;</div>
313+
<div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div>
314314
</template>
315315

316316
<div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]]">

paper-input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
<content select="[prefix]"></content>
9797

98-
<label hidden$="[[!label]]">[[label]]</label>
98+
<label hidden$="[[!label]]" aria-hidden="true">[[label]]</label>
9999

100100
<input is="iron-input" id="input"
101101
aria-labelledby$="[[_ariaLabelledBy]]"

paper-textarea.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">
4545

46-
<label hidden$="[[!label]]">[[label]]</label>
46+
<label hidden$="[[!label]]" aria-hidden="true">[[label]]</label>
4747

4848
<iron-autogrow-textarea id="input" class="paper-input-input"
4949
bind-value="{{value}}"

0 commit comments

Comments
 (0)