Skip to content

feat(a11y): Add support for screen readers - #148

Merged
vvo merged 26 commits into
algolia:masterfrom
kaelig:feature/a11y
Feb 7, 2017
Merged

vvo merged 26 commits into
algolia:masterfrom
kaelig:feature/a11y

Conversation

@kaelig

@kaelig kaelig commented Jan 21, 2017 •

Copy link
Copy Markdown
Contributor

Accessibility - fixes #78

  • Tested with good results in both NVDA and JAWS.
  • VoiceOver has mixed support for these complex controls:
    • The normal autocomplete works well,
    • The multi sections auto complete won't work (the one in DocSearch)

Demo: http://autocompletejs-a11y.surge.sh/test/playground.html

Other

  • Added a temporary fix for SyntaxError in IE11 #144 (more tests necessary)
  • Generated sourcemaps in the standalone build for easier debugging
  • Fixed two linting warnings in cc4a403
  • Fixed an input ID in the playground (9b3aac9)

To discuss

  • Where should we add tests for the correct behavior/a11y features? Integration tests seem to be the best place but I wasn't sure about it.
  • Commit history: let me know if my PR should be broken into multiple ones

@kaelig

kaelig commented Jan 21, 2017

Copy link
Copy Markdown
Contributor Author

Massive thanks to @maxiloc for the help on this piece of work!

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 88.889% when pulling eb9dc77 on kaelig:feature/a11y into c11e010 on algolia:master.

Comment thread src/autocomplete/dataset.js Outdated
.css(this.css.suggestions)
.attr({
role: 'group',
'aria-label': this.name

@kaelig kaelig Jan 21, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In DocSearch this value ends up being 1 and attached to "ds-suggestions". I might have to remove this.

@maxiloc

maxiloc commented Jan 21, 2017

Copy link
Copy Markdown
Contributor

Thanks @kaelig for working on that. This is great.

@vvo

vvo commented Jan 23, 2017

Copy link
Copy Markdown
Contributor

Awesome, I would be very interested by the same kind of feedback on our other libraries, like https://community.algolia.com/instantsearch.js/react/.

Or maybe there are some very good online resources that we could follow?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling 667b03a on kaelig:feature/a11y into c11e010 on algolia:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling cc96ae1 on kaelig:feature/a11y into c11e010 on algolia:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling 69fe4b7 on kaelig:feature/a11y into c11e010 on algolia:master.

@kaelig

kaelig commented Jan 24, 2017

Copy link
Copy Markdown
Contributor Author

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling fd4d536 on kaelig:feature/a11y into c11e010 on algolia:master.

@kaelig

kaelig commented Jan 24, 2017

Copy link
Copy Markdown
Contributor Author

Awesome, I would be very interested by the same kind of feedback on our other libraries, like https://community.algolia.com/instantsearch.js/react/.

I'm not sure I'll have time to cover other libraries but I'm hoping this PR will show the path and you'll be able to use it as an example to adapt other pieces of code!

Or maybe there are some very good online resources that we could follow?

Unfortunately it's kind of a detective work with a lot of testing. If like me you've been dealing with IE bugs in the early days of web development, this is kind of the same thing with screen readers.

@vvo

vvo commented Jan 24, 2017

Copy link
Copy Markdown
Contributor

Using Apple Voice Over on macos sierra:

  • Google chrome canary => manual provided tests are not working (names are not read)
  • Safari => cursor not in sync with voice, like you said in README. Then I wonder, is this something we should fix?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling 8601677 on kaelig:feature/a11y into d70ef46 on algolia:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-12.6%) to 76.267% when pulling 9a0e1ec on kaelig:feature/a11y into d70ef46 on algolia:master.

@kaelig

kaelig commented Jan 24, 2017

Copy link
Copy Markdown
Contributor Author

I couldn't get the Chrome/VO combo to work properly, unfortunately. It might be my code but I suspect that they simply don't function as expected.

Safari / cursor not in sync: it's tricky… but couldn't get it to work in sync, and it even happens with Apple's very own example: https://webkit.org/blog-files/aria1.0/combobox_with_live_region_status.html

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling fb36a21 on kaelig:feature/a11y into d70ef46 on algolia:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 88.94% when pulling 2314474 on kaelig:feature/a11y into d70ef46 on algolia:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aria Roles - Screen Reader support

4 participants