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

fix(asinput): Accessibility fixes for asInput #97

Merged
merged 2 commits into from
Dec 13, 2017

Conversation

thallada
Copy link
Contributor

FYI: @edx/educator-dahlia

This addresses EDUCATOR-1952.

  • The form-control-feedback div referenced by aria-describedby must exist on the page when it is initially loaded for screen-readers. Bootstrap's css will hide it unless there is a validation error.
  • I also added aria-live="polite" so that the error message is read out to the screen-reader user after validation happens.
  • I added a sr-only div to the error span to describe the font awesome error icon. Users of paragon will have to pass in their own translated string dangerIconDescription for the description.

TODO

  • Test in a screen-reader to see if this actually fixed the problems.
  • Try using this branch in studio-frontend to verify integration works there.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 99.524% when pulling 168547d on thallada/input-error-message-aria-live into 213b4fa on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 99.524% when pulling 168547d on thallada/input-error-message-aria-live into 213b4fa on master.

@thallada thallada force-pushed the thallada/input-error-message-aria-live branch from 168547d to 7db03cc Compare December 12, 2017 21:42
@thallada thallada force-pushed the thallada/input-error-message-aria-live branch from 7db03cc to ea64170 Compare December 13, 2017 17:06
@coveralls
Copy link

coveralls commented Dec 13, 2017

Coverage Status

Coverage decreased (-0.003%) to 99.524% when pulling 168547d on thallada/input-error-message-aria-live into 213b4fa on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.526% when pulling ea64170 on thallada/input-error-message-aria-live into 213b4fa on master.

Copy link
Contributor

@arizzitano arizzitano left a comment

Choose a reason for hiding this comment

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

🚢

@thallada thallada merged commit 0c60f7a into master Dec 13, 2017
@thallada thallada deleted the thallada/input-error-message-aria-live branch December 13, 2017 17:25
arizzitano pushed a commit that referenced this pull request Dec 13, 2017
docs(readme): add semantic-release documentation

docs(readme): add semantic-release notes to documentation

docs(readme): add cli gif link

docs(readme): fix some formatting

docs(readme): add more background information

fix(asinput): Accessibility fixes for asInput (#97)

* fix(asinput): Add screen-reader text for danger icon

* fix(asinput): Load form-control-feedback on page load w/ aria-live

fix(readme): Document how to run jest tests in Chrome DevTools (#96)

Also adds an npm run test-debug script.
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.

None yet

3 participants