Clarify accessibility criteria descriptions#1404
Closed
scottaohara wants to merge 1 commit intogithub:stagedfrom
Closed
Clarify accessibility criteria descriptions#1404scottaohara wants to merge 1 commit intogithub:stagedfrom
scottaohara wants to merge 1 commit intogithub:stagedfrom
Conversation
I have not been able to look through everything in the accessibility instruction file. But the changes I'm submitting attempt to clarify / correct content that needed it.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the accessibility instruction documentation (a11y.instructions.md) to clarify several WCAG 2.2 quick-reference summaries and refine guidance in specific anti-pattern sections.
Changes:
- Refined multiple WCAG 2.2 quick reference summaries (e.g., meaningful sequence, reflow, pointer cancellation, target size).
- Adjusted wording in the “Five Rules of ARIA” section and updated several ARIA/keyboard anti-pattern guidance paragraphs.
- Added/updated explanatory notes in a few anti-pattern sections (e.g.,
role="presentation"behavior, live regions, modal focus management).
| | 2.5.4 Motion Actuation | A | Device motion has UI alternative and can be disabled. | | ||
| | 2.5.7 Dragging Movements | AA | Drag-and-drop has click/tap alternative. *(New in 2.2)* | | ||
| | 2.5.8 Target Size (Minimum) | AA | Touch targets at least 24x24 CSS px. *(New in 2.2)* | | ||
| | 2.5.8 Target Size (Minimum) | AA | Interactive controls have a target size, or spacing of at least 24x24 CSS px. *(New in 2.2)* | |
|
|
||
| 1. **Prefer native HTML** — Use `<button>` not `<div role="button">`. Native elements have built-in keyboard, focus, and semantics. | ||
| 2. **Don't change native semantics** — Don't add `role="heading"` to a `<button>`. Use the correct element. | ||
| 2. **Don't change native semantics where prohibited** — Don't add `role="heading"` to a `<button>`. Use the correct element. |
| - **WCAG**: 2.1.2 (A) | ||
|
|
||
| Use native `<dialog>` with `showModal()` — it provides focus trapping, Escape-to-close, and focus return automatically. Use `inert` attribute on background content to prevent interaction outside the dialog (96%+ browser support). If custom implementation is needed: trap Tab within the dialog, close on Escape, return focus to the trigger element on close. | ||
| Use native `<dialog>` with `showModal()` — it prevents focus from moving to the inert non-dialog content, Escape-to-close, and focus return automatically. If custom implementation is needed: trap Tab within the dialog or use the `inert` attribute for non-dialog content (do not use `inert` on an element that contains the dialog), close on Escape (unless user confirmation of an action is essential), return focus to the trigger element on close, or to best logical location if triggering element is no longer present upon dismissal. |
| - **WCAG**: 2.1.2 (A) | ||
|
|
||
| Use native `<dialog>` with `showModal()` — it provides focus trapping, Escape-to-close, and focus return automatically. Use `inert` attribute on background content to prevent interaction outside the dialog (96%+ browser support). If custom implementation is needed: trap Tab within the dialog, close on Escape, return focus to the trigger element on close. | ||
| Use native `<dialog>` with `showModal()` — it prevents focus from moving to the inert non-dialog content, Escape-to-close, and focus return automatically. If custom implementation is needed: trap Tab within the dialog or use the `inert` attribute for non-dialog content (do not use `inert` on an element that contains the dialog), close on Escape (unless user confirmation of an action is essential), return focus to the trigger element on close, or to best logical location if triggering element is no longer present upon dismissal. |
| | 1.4.4 Resize Text | AA | Text resizable to 200% without loss of content. | | ||
| | 1.4.10 Reflow | AA | Content reflows at 320px CSS width (no horizontal scroll). | | ||
| | 1.4.4 Resize Text | AA | Text resizable to 200% without loss of content or functionality. | | ||
| | 1.4.10 Reflow | AA | Sections of content can fit within 320px CSS width viewports without needing to scroll in two dimensions to read. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Description
I have not been able to look through everything in the accessibility instruction file. But the changes I'm submitting attempt to clarify / correct content that needed it.
Type of Contribution
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.