Skip to content

Accessibility best practices#3641

Open
mlama007 wants to merge 5 commits intogithub:mainfrom
mlama007:accessibility-best-practices
Open

Accessibility best practices#3641
mlama007 wants to merge 5 commits intogithub:mainfrom
mlama007:accessibility-best-practices

Conversation

@mlama007
Copy link
Copy Markdown

@mlama007 mlama007 commented Apr 24, 2026

  • Have you followed the contributing guidelines?
  • Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.


The accessibility team would love to create a new guide for accessibility best practices. We believe an accessibility guide would fill an information gap and become a valuable resource for open source maintainers.

Copilot AI review requested due to automatic review settings April 24, 2026 18:30
@mlama007 mlama007 requested a review from a team as a code owner April 24, 2026 18:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new guide article describing accessibility best practices for open source projects, with practical recommendations spanning documentation, UI design, tooling, contribution workflows, and ongoing testing.

Changes:

  • Introduces a new long-form accessibility best practices article under _articles/.
  • Covers guidance on accessibility statements, accessible docs, accessible UI patterns, accessible tooling (CLI/logs), contribution workflows, and testing approaches.
Show a summary per file
File Description
_articles/accessibility-best-practices-for-your-project.md New accessibility best-practices guide content and metadata for publication

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 6

Comment on lines +43 to +55
#### **Goals**
- State measurable goals (like WCAG AA where feasible), primary priorities (keyboard, screen reader, captions), and any known limitations.

#### **Contributor requirements**
- Establish clear guardrails so contributors know what's expected:
- **Testing:** All UI changes must be tested with an accessibility testing tool (like Axe DevTools).
- **Documentation:** Follow your project's accessibility guidelines for components like SVGs, images, and interactive elements.
- **CI/CD:** PRs will fail if they introduce violations detected by the accessibility linting workflow.

#### **Supported environments**
- List platforms you support (web, mobile web, iOS, Android, terminal/CLI, desktop apps) and any partial-support notes.

#### **Reporting accessibility bugs**
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

This guide introduces #### (H4) headings (e.g., “Goals”, “Contributor requirements”, etc.). A repo-wide search shows no other _articles/*.md files use H4 headings, which suggests the site’s content conventions (and possibly styling/TOC behavior) expect only ##/###. Consider converting these to ### sections or keeping them as bold lead-ins within a list instead of deeper heading levels.

Suggested change
#### **Goals**
- State measurable goals (like WCAG AA where feasible), primary priorities (keyboard, screen reader, captions), and any known limitations.
#### **Contributor requirements**
- Establish clear guardrails so contributors know what's expected:
- **Testing:** All UI changes must be tested with an accessibility testing tool (like Axe DevTools).
- **Documentation:** Follow your project's accessibility guidelines for components like SVGs, images, and interactive elements.
- **CI/CD:** PRs will fail if they introduce violations detected by the accessibility linting workflow.
#### **Supported environments**
- List platforms you support (web, mobile web, iOS, Android, terminal/CLI, desktop apps) and any partial-support notes.
#### **Reporting accessibility bugs**
### Goals
- State measurable goals (like WCAG AA where feasible), primary priorities (keyboard, screen reader, captions), and any known limitations.
### Contributor requirements
- Establish clear guardrails so contributors know what's expected:
- **Testing:** All UI changes must be tested with an accessibility testing tool (like Axe DevTools).
- **Documentation:** Follow your project's accessibility guidelines for components like SVGs, images, and interactive elements.
- **CI/CD:** PRs will fail if they introduce violations detected by the accessibility linting workflow.
### Supported environments
- List platforms you support (web, mobile web, iOS, Android, terminal/CLI, desktop apps) and any partial-support notes.
### Reporting accessibility bugs

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree with this; you could change the line "A clear statement sets expectations and makes it easy for users to report issues." to not be a header and then move all of the #### up a level.


## Make docs accessible by default

Documentation is often the first "UI" users touch, make sure everyone can read it.
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

Minor grammar issue: this sentence is a comma splice (two independent clauses joined by a comma). Consider splitting into two sentences or using an em dash/semicolon.

Suggested change
Documentation is often the first "UI" users touch, make sure everyone can read it.
Documentation is often the first "UI" users touch. Make sure everyone can read it.

Copilot uses AI. Check for mistakes.
Documentation is often the first "UI" users touch, make sure everyone can read it.

### Structure and semantics
- Use a **logical heading hierarchy** and don't skip levels (`#` , `##`, `###`, `####`, `#####`, and `######`).
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

There’s an extra space before the comma in the inline heading-level list, which reads as a typo.

Suggested change
- Use a **logical heading hierarchy** and don't skip levels (`#` , `##`, `###`, `####`, `#####`, and `######`).
- Use a **logical heading hierarchy** and don't skip levels (`#`, `##`, `###`, `####`, `#####`, and `######`).

Copilot uses AI. Check for mistakes.

### Many thanks to all the maintainers who shared their experiences and tips with us for this guide!

This guide was written by [@mlama007](https://github.com/mlama007) with contributions from: [@ericwbailey](https://github.com/ericwbailey), [@andyfeller](https://github.com/andyfeller), [@mgifford](https://github.com/mgifford), TBD
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

The Contributors list ends with a placeholder TBD. Please remove the placeholder or replace it with actual contributor attribution before publishing so the guide doesn’t ship with unfinished content.

Suggested change
This guide was written by [@mlama007](https://github.com/mlama007) with contributions from: [@ericwbailey](https://github.com/ericwbailey), [@andyfeller](https://github.com/andyfeller), [@mgifford](https://github.com/mgifford), TBD
This guide was written by [@mlama007](https://github.com/mlama007) with contributions from: [@ericwbailey](https://github.com/ericwbailey), [@andyfeller](https://github.com/andyfeller), [@mgifford](https://github.com/mgifford)

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,250 @@
---
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

The PR template checkboxes in the PR description are still unchecked. Please check them and add the requested explanation so the PR isn’t closed by automation.

Copilot uses AI. Check for mistakes.
description: Practical, actionable steps to make your open source project usable by everyone, especially people with disabilities.
class: accessibility-best-practices
order: -1
image: /assets/images/cards/accessibility-best-practices.png
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

image: /assets/images/cards/accessibility-best-practices.png points to a file that doesn’t exist in assets/images/cards/ (only default.png, security-best-practices.png, etc. are present). Add the missing card image asset or switch to an existing one to avoid a broken image on the site.

Suggested change
image: /assets/images/cards/accessibility-best-practices.png
image: /assets/images/cards/default.png

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mlama007 was there an internal asset created for this that you'd want to use?

- Ask reporters to open issues using the accessibility issue template.
- **Tip:** Set expectations honestly (like “We’re working on this — tracking in ISSUE-123”); acknowledge reports and provide follow-up or workaround when possible.

##### Why separate accessibility from your general issue process?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
##### Why separate accessibility from your general issue process?
### Why separate accessibility from your general issue process?

this could also go up to a h3 instead of h5.

Copy link
Copy Markdown
Contributor

@ahpook ahpook left a comment

Choose a reason for hiding this comment

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

Left a couple of comments on the copilot suggestions and made a couple more but overall this looks great, thanks for the contribution!

@ahpook
Copy link
Copy Markdown
Contributor

ahpook commented Apr 24, 2026

Also checkout the test failures - most of these should be automatically fixable, it looks like the main culprits are "smart quotes" instead of straight ASCII, bullet points being *, and emphasis markers using _word_ not *word*.
https://github.com/github/opensource.guide/actions/runs/24913668441/job/72960934715?pr=3641

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.

3 participants