Skip to content
Permalink
Browse files

chore: add unique id to all rules (#478)

  • Loading branch information...
jkodu committed Apr 16, 2019
1 parent 03c1c36 commit 1ddc581088aa696b0875510158f2c57dd37c458a
Showing with 96 additions and 167 deletions.
  1. +1 −3 _rules/SC1-1-1-accessible-name-is-image-filename.md
  2. +1 −3 _rules/SC1-1-1-image-has-name.md
  3. +1 −0 _rules/SC1-2-1-audio-only-alternative.md
  4. +1 −4 _rules/SC1-2-1-audio-transcript.md
  5. +1 −4 _rules/SC1-2-1-media-alternative-audio.md
  6. +1 −4 _rules/SC1-2-1-media-alternative-video.md
  7. +1 −3 _rules/SC1-2-1-video-only-alternative.md
  8. +1 −2 _rules/SC1-2-1-video-only-audio-alternative.md
  9. +1 −2 _rules/SC1-2-1-video-only-description-track.md
  10. +1 −2 _rules/SC1-2-1-video-only-element-transcript.md
  11. +1 −5 _rules/SC1-2-2-video-has-audio-alternative.md
  12. +1 −3 _rules/SC1-2-2-video-has-captions.md
  13. +1 −3 _rules/SC1-2-3-video-alternative.md
  14. +1 −3 _rules/SC1-2-5-video-audio-alternative.md
  15. +1 −2 _rules/SC1-2-video-audio-description.md
  16. +1 −2 _rules/SC1-2-video-description-track.md
  17. +1 −2 _rules/SC1-2-video-media-alternative.md
  18. +1 −3 _rules/SC1-2-video-transcript.md
  19. +1 −4 _rules/SC1-3-1-aria-hidden-focus.md
  20. +1 −3 _rules/SC1-3-5-autocomplete-valid.md
  21. +1 −3 _rules/SC2-1-2-no-keyboard-trap-non-standard-navigation.md
  22. +1 −3 _rules/SC2-1-2-no-keyboard-trap-standard-navigation.md
  23. +1 −4 _rules/SC2-1-2-no-keyboard-trap.md
  24. +1 −3 _rules/SC2-2-1+SC2-2-4-meta-refresh.md
  25. +1 −4 _rules/SC2-4-2-page-has-title.md
  26. +1 −3 _rules/SC2-4-4+2-4-9+4-1-2-link-has-name.md
  27. +1 −4 _rules/SC2-4-6-descriptive-headings.md
  28. +1 −4 _rules/SC2-4-6-descriptive-labels.md
  29. +1 −3 _rules/SC2-5-3-label-content-name-mismatch.md
  30. +1 −5 _rules/SC3-1-1-html-has-lang.md
  31. +1 −4 _rules/SC3-1-1-html-lang-valid.md
  32. +1 −4 _rules/SC3-1-1-html-xml-lang-match.md
  33. +1 −4 _rules/SC3-1-2-lang-valid.md
  34. +1 −3 _rules/SC4-1-1-unique-attrs.md
  35. +1 −4 _rules/SC4-1-1-unique-id.md
  36. +1 −4 _rules/SC4-1-2-aria-attr-valid.md
  37. +1 −3 _rules/SC4-1-2-aria-state-or-property-allowed.md
  38. +1 −4 _rules/SC4-1-2-aria-state-or-property-has-valid-value.md
  39. +1 −4 _rules/SC4-1-2-button-has-name.md
  40. +1 −3 _rules/SC4-1-2-form-field-has-name.md
  41. +1 −4 _rules/SC4-1-2-iframe-has-name.md
  42. +1 −4 _rules/SC4-1-2-role-attribute-has-valid-value.md
  43. +1 −3 _rules/SC4-1-2-role-has-required-states-and-properties.md
  44. +1 −3 _rules/image-button-has-name.md
  45. +8 −4 gatsby/get-node-data.js
  46. +38 −13 package-lock.json
  47. +6 −6 package.json
@@ -1,15 +1,13 @@
---
id: 9eb3f6
name: Filename is valid accessible name
description: |
This rule checks that image elements that use their source filename as their accessible name do so without loss of information to the user.
success_criterion:
- 1.1.1 # Non-Text Content

test_aspects:
- DOM Tree
- CSS Styling

authors:
- Bryn Anderson
---
@@ -1,15 +1,13 @@
---
id: 23a2a8
name: Image has accessible name
description: |
Each image that is not marked as decorative, has an accessible name
success_criterion:
- 1.1.1 # Non-Text Content

test_aspects:
- DOM Tree
- CSS Styling

authors:
- Anne Thyme Nørregaard
- Stein Erik Skotkjerra
@@ -1,4 +1,5 @@
---
id: e7aa44
name: audio only has a text alternative
rule_type: composite
description: |
@@ -1,16 +1,13 @@
---
id: 2eb176
name: audio elements have a transcript

rule_type: atomic

description: |
Non-streaming `audio` elements must have a text alternative for all included auditory information.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,16 +1,13 @@
---
id: afb423
name: Audio-only as a media alternative for text

rule_type: atomic

description: |
This rule checks `audio` is a media alternative for text on the page.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,16 +1,13 @@
---
id: fd26cf
name: Video-only as a media alternative for text

rule_type: atomic

description: |
This rule checks non-streaming silent `video` is a media alternative for text on the page.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,18 +1,16 @@
---
id: c3232f
name: video only has an accessibile alternative
rule_type: composite
description: |
This rule checks if video elements without audio have an alternative available
success_criterion:
- 1.2.1 # Audio-only and Video-only (Prerecorded)

atomic_rules:
- SC1-2-1-media-alternative-video
- SC1-2-1-video-only-description-track
- SC1-2-1-video-only-element-transcript
- SC1-2-1-video-only-audio-alternative

authors:
- Wilco Fiers
- Brian Bors
@@ -1,15 +1,14 @@
---
id: d7ba54
name: video only has audio alternative
rule_type: atomic
description: |
Non-streaming `video` elements without audio must have an audio alternative
test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Brian Bors
---
@@ -1,15 +1,14 @@
---
id: ac7dc6
name: Video only element has description track
rule_type: atomic
description: |
This rule checks that description tracks that come with non-streaming `video` elements, without audio, are descriptive.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,15 +1,14 @@
---
id: ee13b5
name: video only element has transcript
rule_type: atomic
description: |
Non-streaming `video` elements without audio must have all visual information available in a transcript.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,18 +1,14 @@
---
id: eac66b
name: Video has audio alternative

rule_type: atomic

description: |
This rule checks that video elements have an alternative for information conveyed through audio
success_criterion:
- 1.2.2

atomic_rules:
- SC1-2-video-media-alternative
- SC1-2-2-video-has-captions

authors:
- Wilco Fiers
- Brian Bors
@@ -1,17 +1,15 @@
---
id: f51b46
name: video has captions
description: |
Captions are available for audio information in non-streaming `video` elements.
success_criterion:
- 1.2.2 # Captions (Prerecorded)

test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,18 +1,16 @@
---
id: c5a4ea
name: video with audio has audio descriptions or transcript
rule_type: composite
description: |
This rule checks video elements with audio have an alternative for the video content as audio or as text.
success_criterion:
- 1.2.3 # Audio Description or Media Alternative (Prerecorded)

atomic_rules:
- SC1-2-video-audio-description
- SC1-2-video-transcript
- SC1-2-video-description-track
- SC1-2-video-media-alternative

authors:
- Wilco Fiers
- Brian Bors
@@ -1,17 +1,15 @@
---
id: 1ec09b
name: video with audio has audio description
rule_type: composite
description: |
This rule checks video elements with audio have audio description
success_criterion:
- 1.2.5 # Audio Description (Prerecorded)§

atomic_rules:
- SC1-2-video-audio-description
- SC1-2-video-media-alternative
- SC1-2-video-description-track

authors:
- Wilco Fiers
- Brian Bors
@@ -1,15 +1,14 @@
---
id: 1ea59c
name: video element audio described
rule_type: atomic
description: |
Non-streaming `video` elements must have all visual information also contained in the audio
test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,15 +1,14 @@
---
id: f196ce
name: Video element description track
rule_type: atomic
description: |
This rule checks that description tracks that come with non-streaming `video` elements are descriptive.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,14 +1,13 @@
---
id: ab4d13
name: Video as a media alternative for text
rule_type: atomic
description: |
This rule checks non-streaming `video` is a media alternative for text on the page.
test_aspects:
- DOM Tree
- CSS Styling
- Audio output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,18 +1,16 @@
---
id: 1a02b0
name: video element transcript
rule_type: atomic
description: |
Non-streaming `video` elements must have all audio and visual information available in a transcript.
success_criterion:
- 1.2.8 # Media Alternative (Prerecorded)

test_aspects:
- DOM Tree
- CSS Styling
- Audio output
- Visual output

authors:
- Wilco Fiers
- Brian Bors
@@ -1,18 +1,15 @@
---
id: 6cfa84
name: aria-hidden with focusable content
rule_type: atomic

description: |
This rule checks that elements with an `aria-hidden` attribute do not contain focusable elements
success_criterion:
- 1.3.1 # Info and Relationships
- 4.1.2 # Name, Role, Value

test_aspects:
- DOM Tree
- CSS Styling

authors:
- Wilco Fiers
---
@@ -1,15 +1,13 @@
---
id: 73f2c2
name: Autocomplete valid
description: |
This rule checks that the HTML autocomplete attribute has a correct value
success_criterion:
- 1.3.5 # Identify Input Purpose

test_aspects:
- DOM Tree
- CSS Styling

authors:
- Wilco Fiers
---
@@ -1,14 +1,12 @@
---
id: ebe86a
name: No keyboard trap non-standard navigation
rule_type: atomic

description: |
This rule checks if it is possible to use non-standard keyboard navigation to navigate through content where focus is trapped when using standard ways of keyboard navigation.
test_aspects:
- DOM Tree
- CSS Styling

authors:
- Dagfinn Rømen
- Geir Sindre Fossøy
@@ -1,14 +1,12 @@
---
id: a1b64e
name: No keyboard trap standard navigation
rule_type: atomic

description: |
This rule checks if it is possible to use standard keyboard navigation to navigate through all content on a web page without becoming trapped in any element.
test_aspects:
- DOM Tree
- CSS Styling

authors:
- Dagfinn Rømen
- Geir Sindre Fossøy

0 comments on commit 1ddc581

Please sign in to comment.
You can’t perform that action at this time.