question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Accessibility

See original GitHub issue

Feedback from @RichCaloggero:

General

  • Add live region which will receive messages about number of matches
    • add div containing aria-live=“{count} matches” somewhere on the page
    • move it off-screen to hide it from sighted users
    • Update on every character, but only if a minimum amount of time has elapsed since previous update (about 0.33 seconds to 0.5 seconds seems like a reasonable minimum interval)

Single-select

  • Hide hint input with aria-hidden since it shows up as a second input field which is confusing. It isn’t in the tab order, but screen reader users can still see it.

Multi-select

  • Allow arrowing into the list as with the single select case
  • Clicking a list item removes it from the list and places it before the input control
    • should either place it’s string value in the input field or use aria-describedby or aria-labelledby to link the chosen results with the input field

Tokens

  • Make delete button focusable so token can be deleted via keyboard
  • Better label (“delete” instead of “times”)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ericgiocommented, Feb 12, 2018

@bamab: You can use inputProps to do that:

<Typeahead
  inputProps={{'aria-label': 'my-label'}}
  options={options}
/>
1reaction
ericgiocommented, Feb 21, 2018

@bamab: No, not possible. That input has aria-hidden="true" though; is that not enough?

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Ways to Improve Web Accessibility - StarDust Testing
10 Tips for Web Accessibility · 2. Structure and organize with headers · 3. Assign alt tags for images · 4. Use descriptive...
Read more >
30 Web Accessibility Tips | AccessComputing
30 Web Accessibility Tips · Add proper alt text to images. · Use headings properly. · Create accessible PDFs. · Know when to...
Read more >
15 Ways to Improve Web Accessibility - Monsido
15 Practical Ways to Improve Web Accessibility · Include captions and text transcripts · Use proper color contrast ratios · Remove flickering ...
Read more >
5 Tips To Improve Your Website's Accessibility - CommonPlaces
5 Tips To Improve Your Website's Accessibility · 1. Mind The Colors · 2. Contextual Links, A Better Description · 3. Make More...
Read more >
Ten Guidelines To Improve The Usability And Accessibility Of ...
Ten Guidelines To Improve The Usability And Accessibility Of Your Site · 1. Include a Site Map · 2. Use Clear and Consistent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found