Git Product home page Git Product logo

wai-statements's Introduction

wai-statements

Netlify Status

Page Contents:


Translation Notes

To get started with translation, see:

The main file for translation is:

Read carefully the Important Translation Guidance and note:

  • For the generator to work, you need to be careful not to change indentation, commas, quotes, and special characters. We recommend that you use a markdown editor or a simple text editor — and not a document editor like Microsoft Word that often changes quotes and indentation.
  • The file for translation includes words used for the code that need to stay in English. And words for you to translate. The words before colons stay in English. Translate the words after the colons.
    For example, in:
title: Basic information

Do not translate "title". Do translate "Basic information".

Comments in the file start with #. You do not need to translate the comments.


Installation and local development

Installation as part of the WAI website

This site is built with Jekyll, follow Jekyll's installation guide first.

Then clone this repository:

git clone https://github.com/w3c/wai-statements.git

If you have installed ruby and jekyll, cd into the project and install dependencies defined inside the Gemfile:

bundle install

Now you can start development with:

bundle exec jekyll serve

Installation as stand-alone

To use the accessibility statement generator tool as a stand-alone to include in your own site you need to build the site once with Jekyll, see "Installation as part of the WAI website".

Build the site:

bundle exec jekyll build

The complete site is built inside the _site folder and the generated files you need will be:

  • HTML: planning/statements/generator/index.html

    You will need all the contents of <div id="accstatement"> and link to required css and javascript below. The rest is all WAI website material.

  • CSS: content-images/wai-statements/generator.css

  • JS: content-images/wai-statements/generator.js

  • WAI theme assets: assets/css/style.css and assets/scripts/main.js

    This is required for the expanding and toggling of sections and information.

For now you need to strip and modify all files manually to make it includeable in your own project.

TODO for stand alone version

  • Add standalone version page generator/standalone.html

Customizing the generator tool

Add, remove and update content

The generator tool is setup in such a way that content is separated from function. In this way, adding and removing form or preview content is easy to do. Addition is only required inside the generator_layout.html file.

When adding new content make sure to update the translation files, these are named generator.LANGUAGE.md and contain all the text data that's used in generator_layout.html.

If you only want to change the text content of the generator, that can be done in the generator.md files, without having to edit generator_layout.html.

Editing the statement create form

The create statement contents are wrapped inside <section class="page create">. Just simply add or remove the html markup to edit the form.

Supported form elements are:

  • input

    NOTE: Input types of type radio and checkbox require the value attribute set, for example:

    <input type="radio" name="radiogroup" value="option 1">
    <input type="radio" name="radiogroup" value="option 2">
    <input type="radio" name="radiogroup" value="option x">
  • textarea

  • select

There is one extra functionality available to dynamically add extra line to grouped form input; add-line. To use this there are several practical examples inside the form. Required for add-line to work is this basic setup:

<fieldset class="group">
    <legend>An add-line input group</legend>

    <!--
        OPTIONAL: Pre defined lines
        class line is optional and will determine the count start
    -->
    <div class="field line">
        <label for="some_addline_item_1">Some addline item 1</label>
        <input type="text" id="some_addline_item_1" name="an_addline_grouping_name" />
    </div>

    <!--
        REQUIRED: A prototype declared
        class proto required
        [n] = placeholder for the line count
    -->
    <div class="field proto">
        <label for="some_addline_item_[n]">Some addline item [n]</label>
        <input type="text" id="some_addline_item_[n]" name="an_addline_grouping_name" />
    </div>

    <!--
        REQUIRED: An add-line button
        To add the proto to the fieldset as line
    -->
    <button type="button" class="add-line">
        Add another line
    </button>
</fieldset>

Editing the statement preview

The preview statement contents are wrapped inside <section class="page preview">. Just simply add or remove the html markup to edit the form.

Same as with editing the statement create form, just add or remove html markup to edit the statement preview.

To print the form data into the statement preview there is some additional functionality available:

  • Printing form data with data-print attribute:

    Example print usage:

    <!--
        Single input data
        data-print          REQUIRED    input id to print
        data-printdefault   OPTIONAL    default value if data is missing or empty
        data-printfilter    OPTIONAL    Output transformation; one of [lowercase, capitalize]
    -->
    <span data-print="forminput_id" data-printdefault="MY_FORM_DATA" data-printfilter="lowercase, capitalize"></span>
    
    <!--
        Print as url
        The data entered will also be outputted into the href
        and can be prefixed like “mailto:” for example.
    -->
    <a href="URL_PREFIX" data-print="some_url_data"></a>
    
    <!--
        Print Grouped data:
        UL or OL
        Grouped data is stored under the group name
        defined as name on input elements
        Filters added are applied for each data item inside the group
    -->
    <ul data-print="some_grouped_data"></ul>
  • Conditionally show sections with data-if attribute:

    To make the statement preview show sections based on filled form inputs / groups, you can wrap contents with a conditional element and / or include a condition to an element like:

    <!-- Wrapped inside condition -->
    <div data-if="required_data_id">
        <!-- Content will be visible based on available data -->
    </div>
    
    <!-- Or part of section -->
    <div>
        <!-- Other content … -->
        <p data-if="some_data">
            This text will be shown if some_data is present.
        </p>
    </div>
    
    <!-- Depending on multiple data sources -->
    <div data-if="this_data, that_data">
        <!-- Stays hidden until one of data sources is present -->
    </div>

Exceptions

Currently custom handled statement parts are:

  • Conformance meaning data (Updates to hidden input #accstmnt_conformance_meaning)
  • Limitations section (Still reading directly from DOM)

When changes are required here edits to generator.js are necessary.


On the W3C WAI site

Accessibility Statement generator tool pages are a part of the WAI website and use the wai-website-theme as dependency. Both use Jekyll static site generator to create the pages.

Background: Requirements Analysis

wai-statements's People

Contributors

basdebruin avatar brianteeman avatar hidde avatar nitedog avatar notabene avatar remibetin avatar rvantonisse avatar shawna-slh avatar stevealee avatar volker-e avatar yatil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wai-statements's Issues

intended audience

for intended audience I think we shold state that this is a good place to provide information for users with disabilities about which browser works best for the website and/or which combinations of browsers and AT were used in the testing etc.

status change for "show info" toggles

When "show all information" toggle is used, the information boxes are correctly expanded but the status of the individual "show info" toggles does not change accordingly.

[important] Generator?

... thinking from users' perspectives... maybe "Generator" isn't the best word for it?

Any input related to translation and non-native speakers?

/me brainstorms (=some bad but might help others think of better :-)...

  • Accessibility Statement Tool
  • Accessibility Statement Content Tool
  • Accessibility Statement Creator Tool
  • Accessibility Statement Authoring Tool
    ...

(some more thoughts on title are in 27 Sept minutes )

Repeated terminology with "harmonization"

For harmonization and monitoring purposes to support consistent and harmonized reporting

This objective might be more direct with just "...to support consistent reporting" (remove "and harmonized").

[later OK] Default intro wording

Sorry I didn't catch this earlier. It is not a show stopper for publication of the first version. It can be addressed after publication.

Currently:

[organization] is committed to ensuring digital accessibility for people with disabilities. We are continually improving the user experience for everyone, and applying the relevant accessibility standards.

I'm not comfortable with the tool adding that info. It may not be correct for many organizations. It promises a lot and if it becomes default wording, it will lose meaning.

(Also, I'm not keen on "relevant accessibility standards" over WCAG 2.1.)

Heading "Audience", second bullet point - attempt to clarify the sentence

Current sentence: "The requirement could come from the own organization, an EU Directive etc. They will have a internationally harmonized model and guidance to generate an accessibility statement including an example for the page markup."
Suggested stylistic change:
"The requirement could be from the organization, itself, or from a broader initiative such as the EU Directive etc., which provides an internationally harmonized model and guidance to generate an accessibility statement, including an example for the page markup."

[ED] Tech Used numbering starts wrong

In the "Technologies used" input section of the generator page, when you add another input using the Add another technology button, it adds a new field that is titled "Other 6." I think this should start with the label "Other 1" so that a screen reader user is not wondering what happened to Other 1 through Other 5.

Maybe even have the "Other 1" label and field showing by default so that it matches the other parts of this page and is more consistent.

[ED] Not displaying info if it is not filled out

Location: generated statement.
Suggestion: if the person filling out the statement does not write anything in one of the fields for feedback in section "Feedback options", do not display it in the generated statement.
I filled out the form with e-mail and phone number, leaving postal address blank.
When the statement is generated, you can see as third bullet: "Postal address: POSTAL_ADRESS".
Suggestion: delete the bullet in feedback options if nothing has been typed in one of the fields.
Otherwise, if it is not possible, postal address should be made mandatory.

[ED] remove quotes from examples in field labels

e.g. Visitor Address (Example: "Main Street 1, 234 Example Ville")
  -> Visitor Address (Example: Main Street 1, 234 Example Ville)

It will simplify the text a bit and I think the quotes aren't needed in most cases.

[comment] Example statements in nav

Instead of...

  • Example 1
  • Example 2
  • Example 3

...in the navigation, I propose we add something that clarifies the examples a bit, such as:

  • Minimal Example
  • Expanded Example
  • Complete Example

or

  • Example 1 (Minimal)
  • Example 2 (Expanded)
  • Example 3 (Complete)

[Requirements] Audience for this resources vs the statements themselves

Audiences section mixes different audiences:

  1. Audiences for this resources that helps people create accessibility statements.
  2. Audiences of the accessibility statements themselves. (e.g., "Users with disabilities" and "Other users of accessibility statements")

To limit confusion, I think keep the main Audience section just for this document.

In a later section of this Requirements doc, you can list who are the audiences for the accessibility statements themselves. -- which might actually end up in the detailed version of the resource :-)

styling appears in generated code

Remove the following styling in the generated accessibility statement (both preview and downloaded code):

style="margin: 0; white-space: pre-wrap; line-height: 2em;"

[requirements]

First paragraph, second sentence: I would remove "Yet,"
Level: Low
Rationale: stylistic. I feel one stumbles over the "Yet" at the beginning of the sentence. Would prefer if it was dropped.

[ED] add information on following through with comments received

From @dboudreau

One thing that might be missing in the document is a section on following
through with comments received by end users. It's one thing to have contact
information to get in touch with the organization about problems we may
encounter on the site, but it's another entirely to have a process in place
for the organization to actually RECEIVE, and ACT UPON that feedback. Most
lawsuits out there are the result of escalations after someone tried to
reach out, and was either dismissed, not acknowledged, or shown very little
empathy. I'm wondering if it would be worthwhile to include something along
those lines as part of the document, maybe as a form of cautionary tale or
something.

Peapod link

"Peapod" link doesn't allow my IP address to access the site. Message is "Your IP address or country has been blocked from this site."
Suggest not using a site which blocks the IP address.

[comment] text edit

https://w3c.github.io/wai-statements/planning/statements/example-1/
https://w3c.github.io/wai-statements/planning/statements/example-2/
https://w3c.github.io/wai-statements/planning/statements/example-3/

"We will try to answer your feedback within 2 work days office working days."

should be:

We will try to answer your feedback within 2 office working days.

Partially conformant means that Some parts of the content do not fully conform to the accessibility standard (you can indicate these parts in later sections of this form).

should be:

"some"

https://w3c.github.io/wai-statements/planning/statements/example-3/
Homepage: Multiple images without a textual alternative because Editorial mistakes. Repair in 2 days. Contact us.

should be:

Homepage: Multiple images exist without a textual alternative due to editorial mistakes. Repair in 2 days. Contact us.

Indicate missing text in generated content

From @yatil in Survey:

If I hit the preview button in a browser that is not Safari, the resulting preview has missing text instead of example content. Either make some of the fields required or add example content. That also makes it hard to see if something is missing from the minimal version.

[comment] Simpler language

Example 2 Accessibility statement:

  • similar comments as made previously for Example 1

  • heading "Additions to the requirements" - is the heading necessary?

  • in the paragraph under "Additions to the requirements", could the following sentence be simplified "When an authenticated session expires, the user can continue the activity without loss of data after re-authenticating."

[comment] Editorial suggestions Example 3

I think some editing would be good in the following areas:

  • Paragraph "Measures taken". Maybe the bullet points should be in the past or they could be reworded

  • Paragraph "Limitations and alternatives". Suggested change: "we are working on solutions for know issues. " to "we are working on solutions for known issues." (add "n" to know")

  • The sentences which follow aren't very clear "Please try the solutions provided below or if you experience that this list is not complete, contact us.
    Homepage: Multiple images without a textual alternative because Editorial mistakes. Repair in 2 days. Contact us."

Contact information: Editorial change

"It is important to point out the person or department directly responsible for accessibility is important to point out."
Editorial: It is important to point out the person or department directly responsible for accessibility.

Clarity needed for organizations monitoring

For procurers and persons or organizations monitoring to understand the level of accessibility/conformance

Is "organizations monitoring" meant to be a governmental or compliance agency which monitors the state of accessibility of a site or application? Perhaps the wording of that objective needs clarification.

[ED] Make field label itself stand out from example included in it

Visitor Address (Example: "Main Street 1, 234 Example Ville")

Make it easier to visually differentiate the actual field label from the Example.

Ideas on how:

  • bold labels: Visitor Address (Example: "Main Street 1, 234 Example Ville")
  • italicize example: Visitor Address (Example: "Main Street 1, 234 Example Ville")
  • in addition to bold labels or italicized examples, make example gray text (with 7:1 ratio)

I think I'd find it most usable to bold the field labels and make the examples a 7:1 gray.

[comment] Generator "Summary"

On the "Create an Accessibility Statement" page, I don't feel that the content in the Summary box is an actual summary of the page. I think this is okay though.

Since this content is very important information, I would like to consider re-titling this box to say "Before You Begin" rather than "Summary." I think it will call more attention to the few sentences, which in my opinion are vitally important to know.

[ED] Where to put the statement

[totally editor's discretion]

Consider mentioning the "About" section of an org's website, and maybe specifically the CSR information, to link the accessibility statement from - would tie in with some of the new Bus Case material

microdata typo

Change "accessibillity-measures" to "accessibility-measures"

[important] pages titles, nav, button

Please think about the titles and navigation wording -- from users' perspective. An idea:

title: Developing an Accessibility Statement
nav: Developing an Accessibility Statement

title: Accessibility Statement Generator Tool (since "tool" is used throughout the text)
nav: Generator Tool

title: Minimal Accessibility Statement Example
nav: Minimal Example

title: Expanded Accessibility Statement Example
nav: Expanded Example

title: Complete Accessibility Statement Example
nav: Complete Example

Related issue: Think about the text on the button on the first page. Maybe want to use "generate" instead of "create" to match other wording? Also, I slightly prefer not "your".

button: Generate accessibility statement
or
button: Generate an accessibility statement

(some more thoughts on title are in 27 Sept minutes)

Redo example statements

In reaction to issues: [#35 , #34 , #33 , #28 ]

This task should be done after updates done by coming thursday / friday

I would like to split this into smaller tasks:

  • Create a readable preview template text and update with outcome issues: [issues] (md?)
  • Evaluate final draft statement preview template (new file statement-preview.md?)
  • Remove example 2
  • Redo example 1 (minimal) with new statement generator version
  • Redo example 3 (Fully filled) with new statement generator version

Was the accessibility statement generator, viewed and commented by lawyer(s)

There appears to be quite a variety of opinions about accessibility statements and liability in the US where there is particularly a lot of litigation. I'm not sure that an organization would want to say

"You are entitled to escalate a complaint to the national authority, should you be dissatisfied with our response to you."

Why would an organization say that? It seems to be "leading with the chin". I'm wondering if lawyers that regularly represent defendants have contributed and commented.

[comment] simplify language

Would be good to have a skilled editor do any edit pass to simplify language, use active voice, etc.

Example of opportunities for improvement :)

Also linking and naming them consistently across the pages of your website, and across websites and mobile applications that share a common “look and feel”, supports findability.

Slight rewording for directness

The model accessibility statement is to be aligned with...

Should this be more direct, such as "... is aligned with..." or "...will be aligned with..."?

Unclear information

Heading "Objectives", First bullet point:
Regarding the phrase in brackets "(that is usable for people with disabilities)", I am not sure of the intended meaning of the part in brackets. Do you really mean a "usable accessibility" statement. Can the brackets be removed altogether?

[ED] Hover/focus on div for radio/checkbox elements larger than clickable area (label)

The div that wraps the radio/checkbox element and its label has a focus and hover state change that makes it seem like it's a larger clickable area than the label text itself.

This could be confusing for some users. If possible, consider making the entire div clickable to toggle the state of the input.

Screenshot showing the wide area highlighted on hover/focus, but only the smaller text of the label is actually clickable:

visible hover/focus for labels which is much larger than the clickable/active area

Example Accessibility Statement 1

Minor editorial suggestions:

Paragraph: "Conformance status"

  • Instead of the having the url in the paragraph, suggest to replace it with wording "The Citylights Inc. website" (with the link on the wording).

  • In this paragraph, some caps should be lower case, specifically, "Partially" (straight after the url)

  • the "s" in "that Some parts"

Paragraph "Feedback":

  • Instead of "Write us at", would prefer "Write to us at"

Last sentence:
Perhaps simplify: "We will try to answer your feedback within 2 work days office working days."
to "We will try to answer your feedback within 2 working days."

[comprehensive comment]

I think this language should be changed to move the problem away of the individual and more to the site:

I’m experiencing a failure
We apologize for your inconvenience. Although we strive to have all parts of our website accessible, irregularities can always occur.

suggest change failure, inconvenience, and irregularities

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.