Coder Social home page Coder Social logo

accessibility support about odk2 HOT 16 OPEN

codeallianceorg avatar codeallianceorg commented on July 30, 2024
accessibility support

from odk2.

Comments (16)

bripc avatar bripc commented on July 30, 2024 1

Yes, I will do that!

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024 1

from odk2.

bripc avatar bripc commented on July 30, 2024 1

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

from odk2.

bripc avatar bripc commented on July 30, 2024 1

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.)

from odk2.

bripc avatar bripc commented on July 30, 2024

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)

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

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 😎

from odk2.

bripc avatar bripc commented on July 30, 2024

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.

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

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

from odk2.

bripc avatar bripc commented on July 30, 2024

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?

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

@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/

from odk2.

bripc avatar bripc commented on July 30, 2024

@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.

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

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! 👍

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

@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!

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

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!

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

@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)

from odk2.

tristanmkernan avatar tristanmkernan commented on July 30, 2024

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

from odk2.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.