Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint text on md-input isn't announced by JAWS #2798

Closed
bsteffl opened this issue Jan 25, 2017 · 1 comment · Fixed by #2856
Closed

Hint text on md-input isn't announced by JAWS #2798

bsteffl opened this issue Jan 25, 2017 · 1 comment · Fixed by #2856
Assignees
Labels
Accessibility This issue is related to accessibility (a11y) P2 The issue is important to a large percentage of users, with a workaround

Comments

@bsteffl
Copy link

bsteffl commented Jan 25, 2017

Bug, feature request, or proposal:

Hint text on md-input is not being announced or read by JAWS.

What is the expected behavior?

The hint text should be read aloud or accessible to screen readers as well.

What is the current behavior?

The hintlabel text isn't read aloud by JAWS screenreader.

What are the steps to reproduce?

<md-input-container hintLabel="Help text not read by JAWS">
     <input md-input placeholder="Amount">
     <span md-prefix>$&nbsp;</span>
     <span md-suffix>.00</span>
</md-input-container>

What is the use-case or motivation for changing an existing behavior?

To meet accessibility requirements.

Which versions of Angular, Material, OS, browsers are affected?

Version: 2.0.0-beta.1

Is there anything else we should know?

Using aria-describedby on the input to point to the hint text would likely solve this problem. Unfortunately you would have to have a unique id to point to.

Potential output
<div class="md-input-wrapper">
   <div class="md-input-table">
        <div class="md-input-prefix">...</div>
        <div class="md-input-infix">
            <input class="md-input-element" md-input placeholder="Amount" placeholder="Amount" id="md-input-1" aria-describedby="uniqueID">
           <label class="md-input-placeholder md-empty md-float" for="md-input-1">Amount</label>
        </div>
        <div class="md-input-suffix">...</div>
   </div>
   <div class="md-input-underline"><span class="md-input-ripple"></span></div>
   <div class="md-hint" id="uniqueID">Help text not read by JAWS</div>
</div>
@jelbourn jelbourn added Accessibility This issue is related to accessibility (a11y) P2 The issue is important to a large percentage of users, with a workaround labels Jan 25, 2017
@crisbeto crisbeto self-assigned this Jan 29, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Jan 29, 2017
Adds the `aria-describedby` to inputs within `md-input-container`, which allows screen readers to pick them up and present them to the user.

Fixes angular#2798.
@kara kara closed this as completed in #2856 Feb 1, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants