Skip to content

Commit

Permalink
changes from #2205
Browse files Browse the repository at this point in the history
  • Loading branch information
AtlakM committed Mar 14, 2024
1 parent ea15ba5 commit c8252d7
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 5 deletions.
47 changes: 47 additions & 0 deletions common/skiplinks/index.json-ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Skip links",
"fr": "Liens de saut de page"
},
"description": {
"en": "Documentation and working example on how to use the skiplinks.",
"fr": "Documentation et example pratique sur l'utilisation des liens de saut de page."
},
"modified": "2024-02-27",
"componentName": "skiplinks",
"processing": "baseline",
"status": "stable",
"pages": {
"examples": [
{
"title": "Skip links",
"language": "en",
"path": "skiplinks-en.html"
},
{
"title": "Liens de saut de page",
"language": "fr",
"path": "skiplinks-fr.html"
}
],
"reports": [
{
"title": "Accessibility assessment #1 - Skip links",
"language": "en",
"path": "reports/a11y-1-en.html"
},
{
"title": "Évaluation d'accessibilité #1 - Liens de saut de page",
"language": "fr",
"path": "reports/a11y-1-fr.html"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"title": "Accessibility assessment #1 - Skip links",
"language": "en",
"description": "Partial. Evaluation of new Success Criteria at Level A and Level AA of WCAG 2.1 and WCAG 2.2",
"description": "Evaluation of Success Criteria at Level A and Level AA of WCAG 2.1",
"tag": "skiplinks",
"parentdir": "skiplinks",
"parentPage": "Skip links",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{
"title": "Assessment d'accessibilité #1 - Liens de saut de page",
"language": "fr",
"description": "Partielle. Évaluation des nouveaux critères de succès aux niveaux A et AA de WCAG 2.1 et WCAG 2.2",
"description": "Évaluation des critères de succès aux niveaux A et AA du WCAG 2.1",
"tag": "skiplinks",
"parentdir": "skiplinks",
"parentPage": "Liens de saut de page",
"parentPageURL": "skiplinks",
"altLangPage": "a11y-1-en.html",
"dateModified": "2023-07-06",
"layout": "assessment_wrote_en-fr",
"reportURL": "a11y-1.json"
"reportURL": "pre-a11y-1.json"
}
---
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dct:description": "Accessibility conformance reports of Skip links",
"earl:pointer": {
"@type": "oa:CssSelector",
"@value": "gc-features"
"@value": "nav:has( #wb-tphp )"
}
},

Expand All @@ -38,7 +38,7 @@

"earl:result": [{
"earl:test": "WCAG21:non-text-content",
"earl:outcome": "earl:passed",
"earl:outcome": "earl:inapplicable",
"earl:subject": "_:subject",
"dct:description": "",
"dct:modified": null,
Expand Down
28 changes: 28 additions & 0 deletions common/skiplinks/skiplinks-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
{
"title": "Skip links",
"language": "en",
"altLangPage": "skiplinks-fr.html",
"secondlevel": false,
"dateModified": "2023-09-01",
"share": "true"
}
---
<div class="wb-prettify all-pre hide"></div>

<h2>Expected output code</h2>
<pre><code>&lt;nav&gt;
&lt;ul id=&quot;wb-tphp&quot;&gt;
&lt;li class=&quot;wb-slc&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;#wb-cont&quot;&gt;Skip to main content&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;wb-slc visible-sm visible-md visible-lg&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;#wb-info&quot;&gt;Skip to About this site&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;wb-slc&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;?wbdisable=true&quot; rel=&quot;alternate&quot;&gt;Switch to basic HTML version&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;</code></pre>

<h2>Version history</h2>
<dl>
<dt>Version v1.0.1 - 2022-10-26</dt>
<dd>Skip to footer button now has to always be visible.</dd>
<dt>Version v1.0</dt>
<dd>Initial version</dd>
</dl>
28 changes: 28 additions & 0 deletions common/skiplinks/skiplinks-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
{
"title": "Liens de saut de page",
"language": "fr",
"altLangPage": "skiplinks-en.html",
"secondlevel": false,
"dateModified": "2023-09-01",
"share": "true"
}
---
<div class="wb-prettify all-pre hide"></div>

<h2>Code final attendu</h2>
<pre><code>&lt;nav&gt;
&lt;ul id=&quot;wb-tphp&quot;&gt;
&lt;li class=&quot;wb-slc&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;#wb-cont&quot;&gt;Passer au contenu principal&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;wb-slc visible-sm visible-md visible-lg&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;#wb-info&quot;&gt;Passer à « À propos de ce site »&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;wb-slc&quot;&gt;&lt;a class=&quot;wb-sl&quot; href=&quot;?wbdisable=true&quot; rel=&quot;alternate&quot;&gt;Passer à la version HTML simplifiée&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;</code></pre>

<h2>Historique de versions</h2>
<dl>
<dt>Version v1.0.1 - 2022-10-26</dt>
<dd>Le lien de saut de page vers le pied de page doit maintenant demeurer visible en tout temps.</dd>
<dt>Version v1.0</dt>
<dd>Version initiale</dd>
</dl>

0 comments on commit c8252d7

Please sign in to comment.