diff --git a/_data/common.json b/_data/common.json index df04b0f55..126da5732 100644 --- a/_data/common.json +++ b/_data/common.json @@ -248,6 +248,18 @@ "language": "fr", "path": "formulaires.html" } + ], + "reports": [ + { + "title": "Accessibility assessment #1 - Input focus", + "language": "en", + "path": "reports/a11y-1-en.html" + }, + { + "title": "Évaluation d'accessibilité #1 - Visibilité du focus", + "language": "fr", + "path": "reports/a11y-1-fr.html" + } ] } } diff --git a/_data/i18n.yml b/_data/i18n.yml index c26876d0f..0d7f6b3f8 100644 --- a/_data/i18n.yml +++ b/_data/i18n.yml @@ -7,6 +7,7 @@ page_group: impl-ref: Implementation reference spec: Specification test: Tests pages + reports: Reports fr: examples: Exemples docs: Documentations @@ -14,6 +15,7 @@ page_group: test: Pages d'essaie impl-ref: Référence d'implémentation spec: Spécification + reports: Rapports # Status de component component_status: diff --git a/common/scaffolding/index.json-ld b/common/scaffolding/index.json-ld index 252c2f768..1c03c48dc 100644 --- a/common/scaffolding/index.json-ld +++ b/common/scaffolding/index.json-ld @@ -30,6 +30,18 @@ "language": "fr", "path": "formulaires.html" } + ], + "reports": [ + { + "title": "Accessibility assessment #1 - Input focus", + "language": "en", + "path": "reports/a11y-1-en.html" + }, + { + "title": "Évaluation d'accessibilité #1 - Visibilité du focus", + "language": "fr", + "path": "reports/a11y-1-fr.html" + } ] } } diff --git a/common/scaffolding/reports/a11y-1-en.html b/common/scaffolding/reports/a11y-1-en.html new file mode 100644 index 000000000..8d513912f --- /dev/null +++ b/common/scaffolding/reports/a11y-1-en.html @@ -0,0 +1,11 @@ +--- +{ + "title": "Accessibility assessment #1 - Input focus", + "language": "en", + "description": "Partial. Evaluation of Success Criteria 1.4.1, Level AA of WCAG 2.1", + "altLangPage": "a11y-1-fr.html", + "dateModified": "2023-11-21", + "layout": "assessment_wrote_en-en", + "reportURL": "a11y-1.json" +} +--- diff --git a/common/scaffolding/reports/a11y-1-fr.html b/common/scaffolding/reports/a11y-1-fr.html new file mode 100644 index 000000000..6de1d0087 --- /dev/null +++ b/common/scaffolding/reports/a11y-1-fr.html @@ -0,0 +1,11 @@ +--- +{ + "title": "Évaluation d'accessibilité #1 - Visibilité du focus", + "language": "fr", + "description": "Partielle. Évaluation du critère de succès 1.4.1, niveau AA du WCAG 2.1", + "altLangPage": "a11y-1-en.html", + "dateModified": "2023-11-21", + "layout": "assessment_wrote_en-fr", + "reportURL": "a11y-1.json" +} +--- diff --git a/common/scaffolding/reports/a11y-1.json b/common/scaffolding/reports/a11y-1.json new file mode 100644 index 000000000..840c16a13 --- /dev/null +++ b/common/scaffolding/reports/a11y-1.json @@ -0,0 +1,65 @@ +{ + "@context": "https://wet-boew.github.io/vocab/context/2023/assessment-report-en.json-ld", + + "@type": ["earl:Assertion", "acr:AssessmentReport"], + + "earl:subject": { + "@id": "_:subject", + "dct:references": "https://wet-boew.github.io/GCWeb/common/scaffolding/forms.html", + "@type": [ + "earl:TestSubject", + "schema:WebPage" + ], + "dct:description": "GCWeb test page illustrating rendering of HTML5 native form element", + "earl:pointer": { + "@type": "oa:CssSelector", + "@value": "input#input" + } + }, + + "earl:assertedBy": { + "foaf:name": "Shawn Thompson (Github: @shawnthompson)", + "foaf:homepage": "https://github.com/shawnthompson", + "@type": ["earl:Assertor", "foaf:Person"] + }, + + "dct:date": "2023-11-21", + + "dct:description": "Partial. Evaluation of Success Criteria 1.4.1, Level AA of WCAG 2.1", + + "acr:standard": "https://www.w3.org/TR/WCAG21", + "acr:conformanceOption": "act:standard/profiles/wcag#levelAA", + + "earl:result": [ + { + "@id": "_:sc_1.4.1", + "earl:test": "WCAG21:non-text-contrast", + "earl:subject": "_:subject", + "earl:outcome": "earl:failed", + "dct:description": "Color contrast is not enough when an input field receives the focus. The contrast measured is: 2.2:1", + "dct:modified": "2023-11-21", + "acr:asset": [ + { + "@type": "acr:AttachmentImage", + "dct:title": "Visual capture of the input element when it receives focus\nContains the following text: Title saying 'The (code) input (end code) element'; Sub heading saying 'Implicit labeling'; Label saying 'Label:'; an input field with a blue focus border; Code sample of the preceding which says '