Skip to content

Commit c73d235

Browse files
authored
Run prettier (act-rules#2173)
1 parent 5b6cdb4 commit c73d235

10 files changed

+130
-70
lines changed

.github/workflows/chair-accounts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
WilcoFiers
22
daniel-montalvo
33
tbostic32
4-
kengdoj
4+
kengdoj

_rules/image-no-text-0va7u6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Each test target has no [visible][] [text][human language], except if at least o
4545

4646
## Assumptions
4747

48-
- This rule assumes that there is no mechanism to change the rendering of text within image resources on the page. For pages that *do* provide such a mechanism, this rule might fail even if [SC 1.4.5 Images of Text][sc1.4.5] is satisfied.
48+
- This rule assumes that there is no mechanism to change the rendering of text within image resources on the page. For pages that _do_ provide such a mechanism, this rule might fail even if [SC 1.4.5 Images of Text][sc1.4.5] is satisfied.
4949
- When used in HTML, the SVG `<text>` element is not considered to be an image of text. This is because like any other element in HTML, SVG `<text>` can be adjusted through custom style sheets. This does not apply for SVG text that is in a separate file, and displayed through, for example, the `img` element.
5050

5151
## Accessibility Support

_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This rule applies to any set of two or more [HTML or SVG elements][] for which a
4747

4848
For each pair of links in each target set, one of the following is true:
4949

50-
- both links resolve to the [same resource][]; or
50+
- both links resolve to the [same resource][]; or
5151
- both links resolve to [equivalent resources][equivalent resource]; or
5252
- there is no visual information within the [web page][] to let users know that both links resolve to [non-equivalent resources][equivalent resource].
5353

@@ -240,7 +240,15 @@ These two HTML `a` elements have the same [accessible name][] and are nested wit
240240
```html
241241
<html lang="en">
242242
<p>
243-
To get in touch with us, you can either <a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1">contact us</a> via chat or <a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2">contact us</a> by phone.
243+
To get in touch with us, you can either
244+
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1"
245+
>contact us</a
246+
>
247+
via chat or
248+
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2"
249+
>contact us</a
250+
>
251+
by phone.
244252
</p>
245253
</html>
246254
```
@@ -281,12 +289,18 @@ These two HTML `a` elements have the same [accessible name][] and [context][prog
281289
<div>
282290
<span style="text-align:center;">Contact us</span>
283291
<span style="display:flex; justify-content:space-around;">
284-
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;">
285-
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;">
292+
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;" />
293+
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;" />
286294
</span>
287295
<span style="display:flex; justify-content:space-around;">
288-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=60e950cff70bf1ec60a702086748ab4dec361514">Contact Us</a>
289-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=c1d4e0f067462f4b28716f028d9213a25eb82f28">Contact Us</a>
296+
<a
297+
href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=60e950cff70bf1ec60a702086748ab4dec361514"
298+
>Contact Us</a
299+
>
300+
<a
301+
href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=c1d4e0f067462f4b28716f028d9213a25eb82f28"
302+
>Contact Us</a
303+
>
290304
</span>
291305
</div>
292306
</html>
@@ -301,12 +315,16 @@ These two HTML `a` elements have the same [accessible name][] and [context][prog
301315
<div>
302316
<span style="text-align:center;">Contact us</span>
303317
<span style="display:flex; justify-content:space-around;">
304-
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;">
305-
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;">
318+
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;" />
319+
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;" />
306320
</span>
307321
<span style="display:flex; justify-content:space-around;">
308-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=3">Contact Us</a>
309-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=4">Contact Us</a>
322+
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=3"
323+
>Contact Us</a
324+
>
325+
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=4"
326+
>Contact Us</a
327+
>
310328
</span>
311329
</div>
312330
</html>
@@ -321,18 +339,22 @@ These two HTML `span` elements have an [explicit role][] of link, same [accessib
321339
<div>
322340
<span style="text-align:center;">Contact us</span>
323341
<span style="display:flex; justify-content:space-around;">
324-
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;">
325-
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;">
342+
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;" />
343+
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;" />
326344
</span>
327345
<span style="display:flex; justify-content:space-around;">
328346
<span
329-
role="link"
330-
tabindex="0"
331-
onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1'">Contact Us</span>
347+
role="link"
348+
tabindex="0"
349+
onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1'"
350+
>Contact Us</span
351+
>
332352
<span
333-
role="link"
334-
tabindex="0"
335-
onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2'">Contact Us</span>
353+
role="link"
354+
tabindex="0"
355+
onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2'"
356+
>Contact Us</span
357+
>
336358
</span>
337359
</div>
338360
</html>
@@ -347,11 +369,21 @@ These two SVG `a` elements have the same [accessible name][] and [context][progr
347369
<p>
348370
<svg enable-background="new 0 0 264 120" viewBox="0 -20 264 140" xmlns="http://www.w3.org/2000/svg">
349371
<text>Contact us</text>
350-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1" aria-label="Contact Us">
351-
<path d="m212.0806 68.0717c-10.3917 10.3852-22.4311 20.3239-27.1905 15.5646-6.8075-6.8075-11.0088-12.7418-26.0285-.6696-15.0132 12.0657-3.4792 20.1139 3.1182 26.7047 7.6149 7.6149 36.0001.407 64.0571-27.6434 28.0504-28.057 35.2386-56.4422 27.6172-64.0571-6.5974-6.604-14.6062-18.1314-26.6719-3.1182-12.0723 15.0132-6.1444 19.2145.6761 26.0285 4.7397 4.7593-5.1925 16.7988-15.5777 27.1905z"/>
372+
<a
373+
href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1"
374+
aria-label="Contact Us"
375+
>
376+
<path
377+
d="m212.0806 68.0717c-10.3917 10.3852-22.4311 20.3239-27.1905 15.5646-6.8075-6.8075-11.0088-12.7418-26.0285-.6696-15.0132 12.0657-3.4792 20.1139 3.1182 26.7047 7.6149 7.6149 36.0001.407 64.0571-27.6434 28.0504-28.057 35.2386-56.4422 27.6172-64.0571-6.5974-6.604-14.6062-18.1314-26.6719-3.1182-12.0723 15.0132-6.1444 19.2145.6761 26.0285 4.7397 4.7593-5.1925 16.7988-15.5777 27.1905z"
378+
/>
352379
</a>
353-
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2" aria-label="Contact Us">
354-
<path d="m105 7.5h-90c-8.2576 0-15 6.7497-15 15v52.5c0 8.2498 6.7424 15 15 15h30l30 22.5v-22.5h30c8.2498 0 15-6.7502 15-15v-52.5c0-8.2503-6.7502-15-15-15zm-80.7903 52.5c-6.2132 0-11.255-5.0372-11.255-11.25 0-6.2132 5.0418-11.25 11.255-11.25 6.2128 0 11.245 5.0418 11.245 11.25 0 6.2077-5.0322 11.25-11.245 11.25zm35.7953 0c-6.2128 0-11.255-5.0372-11.255-11.25 0-6.2132 5.0423-11.25 11.255-11.25 6.2132 0 11.245 5.0368 11.245 11.25 0 6.2128-5.0317 11.25-11.245 11.25zm35.7958 0c-6.2132 0-11.2555-5.0372-11.2555-11.25 0-6.2132 5.0423-11.25 11.2555-11.25 6.2128 0 11.2445 5.0368 11.2445 11.25 0 6.2128-5.0318 11.25-11.2445 11.25z"/>
380+
<a
381+
href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2"
382+
aria-label="Contact Us"
383+
>
384+
<path
385+
d="m105 7.5h-90c-8.2576 0-15 6.7497-15 15v52.5c0 8.2498 6.7424 15 15 15h30l30 22.5v-22.5h30c8.2498 0 15-6.7502 15-15v-52.5c0-8.2503-6.7502-15-15-15zm-80.7903 52.5c-6.2132 0-11.255-5.0372-11.255-11.25 0-6.2132 5.0418-11.25 11.255-11.25 6.2128 0 11.245 5.0418 11.245 11.25 0 6.2077-5.0322 11.25-11.245 11.25zm35.7953 0c-6.2128 0-11.255-5.0372-11.255-11.25 0-6.2132 5.0423-11.25 11.255-11.25 6.2132 0 11.245 5.0368 11.245 11.25 0 6.2128-5.0317 11.25-11.245 11.25zm35.7958 0c-6.2132 0-11.2555-5.0372-11.2555-11.25 0-6.2132 5.0423-11.25 11.2555-11.25 6.2128 0 11.2445 5.0368 11.2445 11.25 0 6.2128-5.0318 11.25-11.2445 11.25z"
386+
/>
355387
</a>
356388
</svg>
357389
</p>
@@ -367,8 +399,8 @@ These two HTML `a` elements with the same [accessible name][] and [context][prog
367399
<p>
368400
<span style="text-align:center;">Contact us</span>
369401
<span style="display:flex; justify-content:space-around;">
370-
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;">
371-
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;">
402+
<img src="/test-assets/shared/chat.png" alt="Chat" style="width:50%;" />
403+
<img src="/test-assets/shared/phone.png" alt="Phone" style="width:50%;" />
372404
</span>
373405
<span style="display:flex; justify-content:space-around;">
374406
<a href="/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/index.html">Contact Us</a>

_rules/visible-label-in-accessible-name-2ee8b8.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ This link has [visible][] text with mathematical symbols, that does not match th
145145

146146
#### Failed Example 4
147147

148-
This link has [visible][] text does not match the [accessible name][] because there is a hyphen in the accessible name.
148+
This link has [visible][] text does not match the [accessible name][] because there is a hyphen in the accessible name.
149149

150150
```html
151151
<a href="#" aria-label="non-standard">nonstandard</a>
152152
```
153153

154154
#### Failed Example 5
155155

156-
This link has [visible][] text does not match the [accessible name][] because there are extra spaces in the accessible name.
156+
This link has [visible][] text does not match the [accessible name][] because there are extra spaces in the accessible name.
157157

158158
```html
159159
<a aria-label="1 2 3. 4 5 6. 7 8 9 0" href="tel:1234567890">123.456.7890</a>

pages/design/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The purpose of this stage is to avoid that people spend a huge amount of time on
2828

2929
### Passes this stage and moves on to "To Do" when:
3030

31-
- Currently no explicit criteria for passing this stage, but 3 initial approvals from different organizations are recommended. This should give an indication on whether the rule can get 3 final approving reviews and get through Call for Review later.
31+
- Currently no explicit criteria for passing this stage, but 3 initial approvals from different organizations are recommended. This should give an indication on whether the rule can get 3 final approving reviews and get through Call for Review later.
3232

3333
### Fails this stage and becomes "Rejected" when:
3434

pages/glossary/embedded-image.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ An element presents an _embedded image_ when any of the following is true:
1515
- the element is an `svg` element having one or more `image` [descendants][] with a non-empty `href` [attribute value][]; or
1616
- the element has a [computed][] [`background-image`][background-image] CSS property with at least one [`image`][css-image] that is a [url reference][url-reference].
1717

18-
1918
[attribute value]: #attribute-value 'Definition of Attribute Value'
2019
[background-image]: https://drafts.csswg.org/css-backgrounds-3/#background-image
2120
[computed]: https://www.w3.org/TR/css-cascade-4/#computed 'CSS Cascading and Inheritance Level 4 (Working draft) - Computed Values'

pages/glossary/included-in-the-accessibility-tree.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The general rules for when elements are included in the accessibility tree are d
1313

1414
For more details, see [examples of included in the accessibility tree][].
1515

16-
[Programmatically hidden](#programmatically-hidden) elements are removed from the accessibility tree. However, some browsers will leave [focusable](#focusable) elements with an `aria-hidden` attribute set to `true` in the accessibility tree. Because they are hidden, these elements are considered **not** included in the accessibility tree. This may cause confusion for users of assistive technologies because they may still be able to interact with these focusable elements using sequential keyboard navigation, even though the element should not be included in the accessibility tree.
16+
[Programmatically hidden](#programmatically-hidden) elements are removed from the accessibility tree. However, some browsers will leave [focusable](#focusable) elements with an `aria-hidden` attribute set to `true` in the accessibility tree. Because they are hidden, these elements are considered **not** included in the accessibility tree. This may cause confusion for users of assistive technologies because they may still be able to interact with these focusable elements using sequential keyboard navigation, even though the element should not be included in the accessibility tree.
1717

1818
[examples of included in the accessibility tree]: https://act-rules.github.io/pages/examples/included-in-the-accessibility-tree/
19-

pages/glossary/inert.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ input_aspects:
1010
---
1111

1212
An [HTML or SVG element][] is inert if:
13+
1314
- it has an `inert` [attribute value][] of true; or
1415
- one of its ancestor elements in the [flat tree][] has an `inert` [attribute value][] of true; or
1516
- it is [blocked by a modal][].
1617

17-
[HTML or SVG element]: #namespaced-element 'Definition of HTML or SVG element'
18+
[html or svg element]: #namespaced-element 'Definition of HTML or SVG element'
1819
[attribute value]: #attribute-value 'Definition of Attribute value'
1920
[blocked by a modal]: https://html.spec.whatwg.org/multipage/interaction.html#blocked-by-a-modal-dialog
2021
[flat tree]: https://drafts.csswg.org/css-scoping/#flat-tree 'Definition of flat tree'

pages/glossary/rendered-image-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ A _rendered image resource_ in a [web page][] is any resource with [visible pixe
1313
[embedded image]: #embedded-image 'Definition of Embedded Image'
1414
[image sources]: https://html.spec.whatwg.org/multipage/images.html#image-source
1515
[visible pixels]: #visible 'Definition of visible'
16-
[web page]: #web-page-html 'Definition of web page (HTML)'
16+
[web page]: #web-page-html 'Definition of web page (HTML)'

0 commit comments

Comments
 (0)