Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Hide floating labels from screenreaders
Browse files Browse the repository at this point in the history
Related to #48 Remaining accessibility issues
  • Loading branch information
dfreedm committed Aug 22, 2014
1 parent af83f98 commit 2fa5e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<link href="paper-input.css" rel="stylesheet">
<core-style ref="paper-input"></core-style>

<div class="floated-label" hidden?="{{!floatingLabel}}" invisible?="{{!inputValue && !(type === 'number' && !validity.valid) || labelAnimated}}">
<div class="floated-label" aria-hidden="true" hidden?="{{!floatingLabel}}" invisible?="{{!inputValue && !(type === 'number' && !validity.valid) || labelAnimated}}">
<!-- needed for floating label animation measurement -->
<span id="floatedLabelText" class="label-text">{{label}}</span>
</div>
Expand All @@ -74,7 +74,7 @@

<div id="mirror" class="mirror-text" invisible aria-hidden="true"></div>

<div class="label" fit>
<div class="label" fit aria-hidden="true">
<!-- needed for floating label animation measurement -->
<span id="labelText" class="label-text" invisible?="{{inputValue || !inputValue && type === 'number' && !validity.valid}}" animated?=
"{{labelAnimated}}">{{label}}</span>
Expand Down

0 comments on commit 2fa5e87

Please sign in to comment.