From 7538668506cb3dd80b31bd66e0b1528670c66b0d Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Wed, 3 Apr 2024 14:10:14 +0200 Subject: [PATCH] Run prettier --- .github/workflows/chair-accounts.md | 2 +- _rules/image-no-text-0va7u6.md | 2 +- ...context-serve-equivalent-purpose-fd3a94.md | 80 +++++++++----- ...visible-label-in-accessible-name-2ee8b8.md | 4 +- pages/design/process.md | 2 +- pages/glossary/embedded-image.md | 1 - .../included-in-the-accessibility-tree.md | 3 +- pages/glossary/inert.md | 3 +- pages/glossary/rendered-image-resource.md | 2 +- .../contact-us.html | 101 +++++++++++------- 10 files changed, 130 insertions(+), 70 deletions(-) diff --git a/.github/workflows/chair-accounts.md b/.github/workflows/chair-accounts.md index e960f880d67..011ca21a1a3 100644 --- a/.github/workflows/chair-accounts.md +++ b/.github/workflows/chair-accounts.md @@ -1,4 +1,4 @@ WilcoFiers daniel-montalvo tbostic32 -kengdoj \ No newline at end of file +kengdoj diff --git a/_rules/image-no-text-0va7u6.md b/_rules/image-no-text-0va7u6.md index cc98e2b567a..0fd210c74b5 100644 --- a/_rules/image-no-text-0va7u6.md +++ b/_rules/image-no-text-0va7u6.md @@ -45,7 +45,7 @@ Each test target has no [visible][] [text][human language], except if at least o ## Assumptions -- 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. +- 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. - When used in HTML, the SVG `` element is not considered to be an image of text. This is because like any other element in HTML, SVG `` 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. ## Accessibility Support diff --git a/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md b/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md index 99f745fb62e..fe6557e46ef 100755 --- a/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md +++ b/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md @@ -47,7 +47,7 @@ This rule applies to any set of two or more [HTML or SVG elements][] for which a For each pair of links in each target set, one of the following is true: -- both links resolve to the [same resource][]; or +- both links resolve to the [same resource][]; or - both links resolve to [equivalent resources][equivalent resource]; or - there is no visual information within the [web page][] to let users know that both links resolve to [non-equivalent resources][equivalent resource]. @@ -240,7 +240,15 @@ These two HTML `a` elements have the same [accessible name][] and are nested wit ```html

- To get in touch with us, you can either contact us via chat or contact us by phone. + To get in touch with us, you can either + contact us + via chat or + contact us + by phone.

``` @@ -281,12 +289,18 @@ These two HTML `a` elements have the same [accessible name][] and [context][prog
Contact us - Chat - Phone + Chat + Phone - Contact Us - Contact Us + Contact Us + Contact Us
@@ -301,12 +315,16 @@ These two HTML `a` elements have the same [accessible name][] and [context][prog
Contact us - Chat - Phone + Chat + Phone - Contact Us - Contact Us + Contact Us + Contact Us
@@ -321,18 +339,22 @@ These two HTML `span` elements have an [explicit role][] of link, same [accessib
Contact us - Chat - Phone + Chat + Phone Contact Us + role="link" + tabindex="0" + onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=1'" + >Contact Us Contact Us + role="link" + tabindex="0" + onclick="location='/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html?page=2'" + >Contact Us
@@ -347,11 +369,21 @@ These two SVG `a` elements have the same [accessible name][] and [context][progr

Contact us - - + + - - + +

@@ -367,8 +399,8 @@ These two HTML `a` elements with the same [accessible name][] and [context][prog

Contact us - Chat - Phone + Chat + Phone Contact Us diff --git a/_rules/visible-label-in-accessible-name-2ee8b8.md b/_rules/visible-label-in-accessible-name-2ee8b8.md index 570437a592c..88618546b93 100755 --- a/_rules/visible-label-in-accessible-name-2ee8b8.md +++ b/_rules/visible-label-in-accessible-name-2ee8b8.md @@ -145,7 +145,7 @@ This link has [visible][] text with mathematical symbols, that does not match th #### Failed Example 4 -This link has [visible][] text does not match the [accessible name][] because there is a hyphen in the accessible name. +This link has [visible][] text does not match the [accessible name][] because there is a hyphen in the accessible name. ```html nonstandard @@ -153,7 +153,7 @@ This link has [visible][] text does not match the [accessible name][] because th #### Failed Example 5 -This link has [visible][] text does not match the [accessible name][] because there are extra spaces in the accessible name. +This link has [visible][] text does not match the [accessible name][] because there are extra spaces in the accessible name. ```html 123.456.7890 diff --git a/pages/design/process.md b/pages/design/process.md index 2aac888eb90..36662e40108 100644 --- a/pages/design/process.md +++ b/pages/design/process.md @@ -28,7 +28,7 @@ The purpose of this stage is to avoid that people spend a huge amount of time on ### Passes this stage and moves on to "To Do" when: -- 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. +- 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. ### Fails this stage and becomes "Rejected" when: diff --git a/pages/glossary/embedded-image.md b/pages/glossary/embedded-image.md index 288fced5921..30e97088f3f 100755 --- a/pages/glossary/embedded-image.md +++ b/pages/glossary/embedded-image.md @@ -15,7 +15,6 @@ An element presents an _embedded image_ when any of the following is true: - the element is an `svg` element having one or more `image` [descendants][] with a non-empty `href` [attribute value][]; or - 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]. - [attribute value]: #attribute-value 'Definition of Attribute Value' [background-image]: https://drafts.csswg.org/css-backgrounds-3/#background-image [computed]: https://www.w3.org/TR/css-cascade-4/#computed 'CSS Cascading and Inheritance Level 4 (Working draft) - Computed Values' diff --git a/pages/glossary/included-in-the-accessibility-tree.md b/pages/glossary/included-in-the-accessibility-tree.md index 8562eade683..925f7599796 100755 --- a/pages/glossary/included-in-the-accessibility-tree.md +++ b/pages/glossary/included-in-the-accessibility-tree.md @@ -13,7 +13,6 @@ The general rules for when elements are included in the accessibility tree are d For more details, see [examples of included in the accessibility tree][]. -[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. +[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. [examples of included in the accessibility tree]: https://act-rules.github.io/pages/examples/included-in-the-accessibility-tree/ - diff --git a/pages/glossary/inert.md b/pages/glossary/inert.md index a3ab8197034..b917aff620d 100644 --- a/pages/glossary/inert.md +++ b/pages/glossary/inert.md @@ -10,11 +10,12 @@ input_aspects: --- An [HTML or SVG element][] is inert if: + - it has an `inert` [attribute value][] of true; or - one of its ancestor elements in the [flat tree][] has an `inert` [attribute value][] of true; or - it is [blocked by a modal][]. -[HTML or SVG element]: #namespaced-element 'Definition of HTML or SVG element' +[html or svg element]: #namespaced-element 'Definition of HTML or SVG element' [attribute value]: #attribute-value 'Definition of Attribute value' [blocked by a modal]: https://html.spec.whatwg.org/multipage/interaction.html#blocked-by-a-modal-dialog [flat tree]: https://drafts.csswg.org/css-scoping/#flat-tree 'Definition of flat tree' diff --git a/pages/glossary/rendered-image-resource.md b/pages/glossary/rendered-image-resource.md index d52ff862c63..92bc58b918c 100755 --- a/pages/glossary/rendered-image-resource.md +++ b/pages/glossary/rendered-image-resource.md @@ -13,4 +13,4 @@ A _rendered image resource_ in a [web page][] is any resource with [visible pixe [embedded image]: #embedded-image 'Definition of Embedded Image' [image sources]: https://html.spec.whatwg.org/multipage/images.html#image-source [visible pixels]: #visible 'Definition of visible' -[web page]: #web-page-html 'Definition of web page (HTML)' \ No newline at end of file +[web page]: #web-page-html 'Definition of web page (HTML)' diff --git a/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html b/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html index 156807a007b..f5c9328b476 100644 --- a/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html +++ b/test-assets/links-with-identical-names-serve-equivalent-purpose-b20e66/contact-us.html @@ -4,52 +4,66 @@ About - Chat with us @@ -81,15 +94,24 @@

Chat With Us

Call Us

You call us from inside the EU

From Monday to Friday

-

from 9:00 to 18:00 CET

+

+ from 9:00 to 18:00 + CET +

0000000000

You call us from outside the EU

From Monday to Friday

-

from 9:00 to 18:00 CET

+

+ from 9:00 to 18:00 + CET +

0000000000

We call you (for free)

From Monday to Friday

-

from 9:00 to 18:00 CET

+

+ from 9:00 to 18:00 + CET +

Text "call me" plus your country code & number to

0000000000

@@ -109,7 +131,9 @@

We call you (for free)

@@ -148,21 +174,24 @@

Services

Contact Us

We're happy to help you!

You can call us from Monday to Friday

-

from 9:00 to 18:00 CET

+

+ from 9:00 to 18:00 CET +

0000000000