Repository navigation
docs: add an accessibility statement and barrier form (DOX-G20) #596
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| --- | ||
| --- | ||
|
|
||
| No release. The repo has an accessibility statement, `ACCESSIBILITY.md`, and an issue form for reporting a barrier on the docs site. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Accessibility barrier | ||
| description: Something on the documentation site stops you from doing what you came to do, or makes it harder. | ||
| labels: ["accessibility"] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| You do not need to tell us about a disability, or send a screenshot or a recording. | ||
| This issue is public, so leave out anything you want to keep private. | ||
| - type: input | ||
| id: page | ||
| attributes: | ||
| label: Page | ||
| description: The address of the page, or its name. | ||
| placeholder: "https://northguild.dev/gmt/tools/dst-inspector/" | ||
| validations: | ||
| required: true | ||
| - type: input | ||
| id: task | ||
| attributes: | ||
| label: Task | ||
| description: What you were trying to do. | ||
| placeholder: "Choose a time zone from the list" | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: happened | ||
| attributes: | ||
| label: What happened | ||
| description: What got in the way. | ||
| placeholder: "I could not reach the list with the keyboard." | ||
| validations: | ||
| required: true | ||
| - type: input | ||
| id: browser | ||
| attributes: | ||
| label: Browser | ||
| description: Optional. The browser, with its version if you know it. | ||
| - type: input | ||
| id: system | ||
| attributes: | ||
| label: Operating system | ||
| description: Optional. Such as Windows, macOS, iOS, Android or Linux. | ||
| - type: input | ||
| id: assistive | ||
| attributes: | ||
| label: Assistive technology | ||
| description: Optional. Any software, device or browser setting you use, such as a screen reader, screen magnifier, voice control or larger text. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| # Accessibility | ||
|
|
||
| We want everyone to be able to use the GMT documentation site, including people who use a | ||
| keyboard, a screen reader, magnification or their own colours. If something gets in your way, | ||
| [report a barrier](https://github.com/northguild/gmt/issues/new?template=accessibility.yml). | ||
|
|
||
| ## Scope | ||
|
|
||
| This statement covers the documentation site at <https://northguild.dev/gmt/>, with its guides, | ||
| tools, slides and chat. | ||
|
|
||
| The npm packages in `packages/` return plain values such as strings and draw no interface. The app | ||
| that shows those values decides how accessible they are. | ||
|
|
||
| ## Target | ||
|
|
||
| We aim for the Web Content Accessibility Guidelines (WCAG) 2.2, level AA, across the site. This is | ||
| a target. We do not claim that the site conforms. | ||
|
|
||
| ## What we test | ||
|
|
||
| - **Pages.** An automated check, `a11y-axe`, runs axe-core's WCAG level A and AA rules. Every week | ||
| it checks every page in Chromium, in the dark and light themes, at a desktop and a phone width. | ||
| It also checks a sample of pages in Firefox and WebKit. A finding that shows again on a second | ||
| run is filed in an issue. | ||
| - **Changes.** On a pull request that changes the site, the same check runs in Chromium on the | ||
| pages the change affects, or on a sample of them. It reports problems and does not block the | ||
| merge. | ||
| - **Components.** The tests of our shared components run axe-core too, and press the keys of the | ||
| shared controls. They skip colour contrast and target size, which need a real page. | ||
| - **The data-credits button.** A check opens and closes it from the keyboard, in Chromium, Firefox | ||
| and WebKit. | ||
| - **Code and styles.** Lint rules check the React code for common accessibility mistakes, and the | ||
| stylesheets for hidden focus outlines and unreadably small text. | ||
| - **Contrast.** The colours for body text, links and code, and the globe's labels, are designed | ||
| for a contrast of 7:1. Unit tests hold them there on the backgrounds they are designed for. This | ||
| does not cover every piece of text. | ||
|
|
||
| The site is designed for four preferences: reduced motion, reduced transparency, more contrast and | ||
| forced colours. Browser tests turn on reduced motion for one tool and forced colours for the | ||
| clock-change maps. Unit tests cover some of the preferences in some scripts. No test covers all | ||
| four across the site. | ||
|
|
||
| Automated checks find only some barriers. They cannot tell whether a page makes sense. | ||
|
|
||
| ## Supported environments | ||
|
|
||
| Our automated page checks run in Chromium, Firefox and WebKit, the engines that Chrome and Edge, | ||
| Firefox, and Safari are built on. Our target includes using the site with the keyboard alone. | ||
|
|
||
| In Safari on macOS, Tab skips buttons unless you turn on "Press Tab to highlight each item on a | ||
| webpage" in Safari's settings. Option+Tab moves to them without that setting. | ||
|
|
||
| ## Known limitations | ||
|
|
||
| We know of no barrier on the site. When one is confirmed, we describe here what it stops a reader | ||
| from doing and link to its issue, until it is fixed. See the | ||
| [open accessibility issues](https://github.com/northguild/gmt/issues?q=is%3Aissue%20state%3Aopen%20label%3Aaccessibility). | ||
|
|
||
| We have not tested: | ||
|
|
||
| - the whole site by hand, with the keyboard alone or in the released versions of Chrome, Safari and | ||
| Firefox; | ||
| - any screen reader; | ||
| - voice control, switch access or screen magnification; | ||
| - the four preferences above, by hand, on every page; | ||
| - most states that appear only after you act, such as an open menu, a tool's result or a chat | ||
| answer, on the built pages; | ||
| - the WCAG criteria that axe-core cannot check, such as whether focus is hidden behind other | ||
| content, whether dragging has an alternative, or whether help is in a consistent place. | ||
|
|
||
| ## Changing the site | ||
|
|
||
| The maintainers change the site; pull requests from others are accepted only for the packages | ||
| ([CONTRIBUTING.md](./CONTRIBUTING.md#contributions)). These rules apply to people and to coding | ||
| agents alike: | ||
|
|
||
| - `pnpm run validate` passes. It runs the lint rules and the component tests that the change needs. | ||
| - The `a11y-axe` findings that the pull request's "Dox gates" check reports are fixed. | ||
| - A new shared component has a test that runs axe-core and presses its keys. | ||
| - An `a11y-axe` finding is waived in one place only, | ||
| [`a11y-axe-exclusions.json`](./apps/dox/scripts/a11y-axe-exclusions.json). An entry names the | ||
| rule, the element and the pages, and gives measured evidence that the finding is false. A real | ||
| barrier is fixed, never excluded. | ||
|
|
||
| ## Report a barrier | ||
|
|
||
| [Open the accessibility form](https://github.com/northguild/gmt/issues/new?template=accessibility.yml). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Every route in this file needs a GitHub account: the form here at line 88, the same link at line 5, and Could the section say a GitHub account is needed for the form, and give one route that works without one? An email address is the usual one. |
||
| It adds the `accessibility` label. Tell us the page, what you were trying to do and what happened. | ||
| The browser, the operating system and any assistive technology help us, if you want to share them. | ||
|
|
||
| You never need to tell us about a disability, or send a screenshot or a recording. Issues are | ||
| public, so leave out anything you want to keep private. | ||
|
|
||
| ## What happens next | ||
|
|
||
| 1. We reply in the issue to say we have read it. | ||
| 2. We try to reproduce the barrier, and ask in the issue when we need more. | ||
| 3. We say what we will do, or why we cannot fix it. | ||
| 4. When a fix is on the site, we say so in the issue. You can check it. If the barrier is still | ||
| there, tell us and we reopen the issue. | ||
|
|
||
| We do not promise a date for a reply or a fix. | ||
|
|
||
| ## Who keeps this current | ||
|
|
||
| The NorthGuild maintainers own this statement. They update it in the same pull request as any | ||
| change to what we test or support. To suggest a change to it, | ||
| [open an issue](https://github.com/northguild/gmt/issues/new/choose). | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This covers
https://northguild.dev/gmt/, but nothing on that site links to the statement or the form. I searched forACCESSIBILITY.mdandtemplate=accessibilityoutside this file and found only tests,tier-2-gates.mdand the changeset. The site's social links inapps/dox/astro.config.mjs(lines 176–187) are GitHub and Discord. So a reader who hits a barrier on the site has to know to look in the repository.#592 asked only for the file in the repository, so this is a suggestion for here or a follow-up issue: a footer link from the site to the statement would let that reader find it.