Skip to content

Commit 92e86ab

Browse files
authored
Merge branch 'develop' into rule-2ee8b8-may-2023
2 parents 64fe779 + 5812a1a commit 92e86ab

8 files changed

Lines changed: 3873 additions & 3632 deletions

File tree

.github/ISSUE_TEMPLATE/rules-issue-template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ about: issues related with ACT Rules
44
title: ''
55
labels: ''
66
assignees: ''
7-
---Please describe the issue with references and relevant examples where necessary.
7+
---
8+
9+
Please describe the issue with references and relevant examples where necessary.
810

911
--- or ---
1012

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This will require a 2 weeks Call for Review << new rule, or substantial changes
2727
- [ ] Add label to indicate if it's a `Rule`, `Definition` or `Chore`.
2828
- [ ] [Link the PR to any issue it solves](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue). This will be done automatically by [referencing the issue](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) at the top of this comment in the indicated place.
2929
- [ ] Optionally request feedback from anyone in particular by assigning them as "Reviewers".
30+
- [ ] If your PR is for a new rule with an Accessibility Support note, or for updating the Accessibility Support note of an existing section, make sure to open a corresponding Accessibility Support issue.
3031

3132
### **When merging a PR:**
3233

.github/workflows/wai-deploy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
restore-keys: |
2222
${{ runner.os }}-node-
2323
- run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/
24-
- name: Install dependencies
25-
run: npm ci
26-
# Since we control this we can safely just always use the latest
27-
- name: Install act-tools latest
28-
run: npm install github:act-rules/act-tools#main
24+
- name: Install dependencies (including act-tools dev dependencies)
25+
run: npm i --include=dev
2926
- name: Configure git
3027
run: |
3128
git config --global url."https://${{ secrets.WAI_GIT_NAME }}:${{ secrets.WAI_GIT_ACCESS_TOKEN }}@github.com".insteadOf "https://github.com"

__tests__/spelling-ignore.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- https
1111
- wai-aria
1212
- validator
13+
- w3c
14+
- wcag-act-rules
1315

1416
# Tag(s)
1517
- svg # `aria-query` dom tags does not list `svg`

_rules/heading-descriptive-b49b2e.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ Each target element describes the topic or purpose of the first [perceivable con
4040

4141
Headings that are visible but not in the accessibility tree are a failure of [Success Criterion 1.3.1 Info and Relationships][sc131]. These are not tested by this rule but they can still fail [Success Criterion 2.4.6 Headings and Labels][sc246].
4242

43+
Testing tools treat empty headings `<h1></h1>` or `div role="heading" aria-level="1"></div>` differently. Some fail empty headings under 1.3.1, others under 2.4.6, while others pass these headings because they are ignored by most assistive technologies causing no accessibility barriers at all. This rule doesn't include examples of empty headings because there is currently no harmonized approach for testing them.
44+
4345
### Assumptions
4446

45-
This rule assumes that the [flat tree][] order is close to the reading order as elements are rendered on the page. Due to positioning, it is possible to render a document in an order that greatly differs from the tree order, in which case the content which is visually associated with a heading might not be the content following it in tree order and this rule might fail while [Success Criterion 2.4.6 Headings and Label][sc246] is still satisfied.
47+
This rule assumes that the [flat tree][] order is close to the reading order as elements are rendered on the page. Due to positioning, it is possible to render a document in an order that greatly differs from the tree order, in which case the content which is visually associated with a heading might not be the content following it in tree order and this rule might fail while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
4648

47-
This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from assistive technologies. Otherwise, cases such as expandable content using a heading might fail this rule while [Success Criterion 2.4.6 Headings and Label][sc246] is still satisfied.
49+
This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from assistive technologies. Otherwise, cases such as expandable content using a heading might fail this rule while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
4850

4951
### Accessibility Support
5052

@@ -215,26 +217,6 @@ This `h1` heading element is not [included in the accessibility tree][].
215217
</html>
216218
```
217219

218-
#### Inapplicable Example 3
219-
220-
This `h1` heading element has an empty [accessible name][].
221-
222-
```html
223-
<html lang="en">
224-
<h1></h1>
225-
</html>
226-
```
227-
228-
#### Inapplicable Example 4
229-
230-
Semantic heading has an empty [accessible name][].
231-
232-
```html
233-
<html lang="en">
234-
<p role="heading" aria-level="1"></p>
235-
</html>
236-
```
237-
238220
[decorative]: https://www.w3.org/TR/WCAG22/#dfn-pure-decoration 'WCAG definition of Pure decoration'
239221
[flat tree]: https://drafts.csswg.org/css-scoping/#flat-tree 'Definition of flat tree'
240222
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'

0 commit comments

Comments
 (0)