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

accessibility support #7

Open
tristanmkernan opened this issue Sep 26, 2017 · 16 comments
Open

accessibility support #7

tristanmkernan opened this issue Sep 26, 2017 · 16 comments
Assignees
Labels
Milestone

Comments

@tristanmkernan
Copy link
Contributor

motivation

to enable the site's access for those who are less accessible.

acceptance criteria

  • to achieve WCAG AA compliance for the current iteration of the site
  • to document for other developers moving forward how to maintain compliance

etc

i will leave it up to @johnhbenetech to explain the finer details.

i would like to add that the assignee most importantly adds some basic documentation, summarizing what they learned in the process, most helpful resources, anything else they deem necessary.

@bripc
Copy link
Collaborator

bripc commented Oct 3, 2017

I created a document with research into the WCAG 2.0 web accessibility standards. It includes definitions and resources, Angular integration articles, and tools for testing the site for WCAG AA compliance.

In summary:

  • WCAG is a technical standard with 4 principles and 12 guidelines that each have testable criteria for whether a site is accessible to individuals with disabilities. Each success criteria has a passing level of A, AA, and AAA. The ODK 2.0 Form Builder is aiming for an overall rating of AA.
  • Angular has a module called ngAria that will automatically tag the ng directives with ARIA accessibility attributes. See their Developer Guide for accessibility concerns.
  • There are a number of tools for testing websites for accessibility, but the one that will view all pages on a site (despite login credentials) in a development environment is a project on GitHub by Paypal called AATT (Automated Accessibility Testing Tool)

@tristanmkernan
Copy link
Contributor Author

Accessibility with AngularJS

Angular has a module called ngAria that will automatically tag the ng directives with ARIA accessibility attributes. See their Developer Guide for accessibility concerns.

@bripc we're using angular2+, and a brief search did not yield an ngAria equivalent :-(

very cool document! let's get this information added to the readme (or maybe another, linked markdown doc).

did you run any of these testing tools against the current site? i'm not sure that we need AATT (vs a hosted solution) because we really only have one, non-login page on the website. although due to its dynamic nature im not sure 😎

@bripc
Copy link
Collaborator

bripc commented Oct 3, 2017

Regarding the Angular2+... I could write a directive (or try to find one online) that basically mimics the Angular 1.X ngAria. ngAria puts ARIA attributes on ng- elements, which could be recreated. If we think that is the best way to go, we can do that. (Potentially it's already "implicitly supported" in Angular 2? Hard to tell from this StackOverflow.)

I think the idea of another linked markdown is better doc because it holds more research to 3rd party information than the current markdown, which is how to deploy the application.

So I did a quick run of one of the WCAG checkers on the current main page. I copied and pasted the generated HTML from the console in the browser into one of the checkers and converted it into a PDF Report. Seems like our biggest issue thus far is just labeling input and other text fields with what they contain/represent.

@tristanmkernan
Copy link
Contributor Author

@bripc do you want to take a shot at resolving some of the issues in the report?

@bripc
Copy link
Collaborator

bripc commented Oct 4, 2017

Yes, I will do that!

@bripc
Copy link
Collaborator

bripc commented Oct 10, 2017

I have done more accessibility research in relation to the specifics of this project and made a few small changes based on the accessibility checkers available online, mostly adding titles and labels to existing elements. However, there are lots of things about changing around the actual layout of the application such as headers, changing visual lists of things (such as the buttons on the side) into actual lists, and more. How much should I be changing about the layout at this point? Should I just do as much as possible?

@tristanmkernan
Copy link
Contributor Author

tristanmkernan commented Oct 10, 2017 via email

@tristanmkernan
Copy link
Contributor Author

@bripc i checked your code changes and noticed that you added a class class when we should be using bootstrap's sr-only class, specifically for hiding content except on screen readers. see more here

https://getbootstrap.com/docs/4.0/getting-started/accessibility/

@bripc
Copy link
Collaborator

bripc commented Oct 16, 2017

Oh, great! Thanks for the resource. I'll be sure to use that from now on.

@bripc
Copy link
Collaborator

bripc commented Oct 17, 2017

@russon77
For future development, there are a few things that we should keep in mind:

  • The accessibility standards warn against "visual lists". The list of options for editing the survey and the prompt type buttons count as "visual lists" so I wrapped the buttons in unordered list markup. For future dev, any lists of options, even button actions, should be wrapped in list markup using the Bootstrap v4 class "list-unstyled" so that no bullet points are added.
  • Also, they say that any headers below or of less importance should be in descending size. For example, any elements under an H2 heading should be of H3 size or lower. I changed the current UI to comply with this.

@tristanmkernan
Copy link
Contributor Author

list of options for editing the survey

do you mean the "properties" section? isn't being a form good enough?

any elements under an H2 heading should be of H3 size or lower

makes sense! 👍

@bripc
Copy link
Collaborator

bripc commented Oct 17, 2017

Form is good enough in that area, I meant this visual list:
screen shot 2017-10-17 at 2 38 51 pm
(This is also what it looks like on my local version, that hasn't been pushed to master yet.)

@tristanmkernan tristanmkernan added this to the Milestone 1 milestone Oct 18, 2017
@tristanmkernan
Copy link
Contributor Author

@bripc i discovered https://github.com/pa11y/pa11y-ci and configured it to run automatically on travis. while not the end-all solution, i wanted to have some automated tool catching issues moving forward!

@tristanmkernan
Copy link
Contributor Author

what's really cool is that you can specify a set of actions to run, like adding sections and elements and typing, so we can even write accessibility tests!

@tristanmkernan
Copy link
Contributor Author

@bripc in order to get the publish flow in action, i resolved the pa11y errors - they were very basic (i can't even tell the difference for the colors)

@tristanmkernan
Copy link
Contributor Author

lots of relevant tips here: http://fontawesome.io/accessibility/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants