Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
"De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
]
@@ -1121,14 +1121,14 @@
},
"instructions": {
"en": [
- "Ensure the version of GCWebv13.9.0 or earlier is implemented",
- "Ensure the latest version of page details is implemented",
+ "Ensure the version 13.9.0 or more recent of GCWeb is implemented.",
+ "Ensure the version 3.0 or more recent of the page details is implemented.",
"To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Obligatoire : data-feedback-link=\"[Contact link text]\"
Obligatoire : data-feedback-url=\"[Contact link URL]\"
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
"De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
]
diff --git a/sites/feedback/index.json-ld b/sites/feedback/index.json-ld
index 888a9ec324..e90ca83bf1 100644
--- a/sites/feedback/index.json-ld
+++ b/sites/feedback/index.json-ld
@@ -338,14 +338,14 @@
},
"instructions": {
"en": [
- "Ensure the version of GCWebv13.9.0 or earlier is implemented.",
- "Ensure the latest version of the page details is implemented.",
+ "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
+ "Ensure the version 3.0 or newer of the page details is implemented.",
"To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
"De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
]
@@ -494,14 +494,14 @@
},
"instructions": {
"en": [
- "Ensure the version of GCWebv13.9.0 or earlier is implemented",
- "Ensure the latest version of page details is implemented",
+ "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
+ "Ensure the version 3.0 or newer of the page details is implemented.",
"To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Obligatoire : data-feedback-link=\"[Contact link text]\"
Obligatoire : data-feedback-url=\"[Contact link URL]\"
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
"De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
]
From d1581e0e1ca239d0745a23aa2099fe9f2079261b Mon Sep 17 00:00:00 2001
From: Ettahri
Date: Thu, 14 Dec 2023 12:16:40 -0500
Subject: [PATCH 005/161] Release v14.2.1
---
index-en.md | 4 ++--
index-fr.md | 4 ++--
package-lock.json | 6 +++---
package.json | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/index-en.md b/index-en.md
index 9a09cbe467..90e9632955 100644
--- a/index-en.md
+++ b/index-en.md
@@ -1,7 +1,7 @@
---
title: GCWeb, the WET-BOEW Canada.ca theme
altLangPage: index-fr.html
-dateModified: 2023-12-12
+dateModified: 2023-12-14
description: "Home page describing all the components of the Canada.ca theme, named GCWeb."
layout: no-container
language: en
@@ -20,7 +20,7 @@ css:
The page templates and design patterns below comprise a reference implementation of the Canada.ca design system, including the mandatory requirement of the Content and Information Architecture (C&IA) Specification. Government of Canada departments and agencies can contribute additional patterns and templates via GCWeb github repository.
diff --git a/index-fr.md b/index-fr.md
index 6a5219210e..ee85ab0d72 100644
--- a/index-fr.md
+++ b/index-fr.md
@@ -1,7 +1,7 @@
---
title: GCWeb, le thème WET-BOEW de Canada.ca
altLangPage: index-en.html
-dateModified: 2023-12-12
+dateModified: 2023-12-14
description: "Page d'accueil décrivant l'ensemble des composants du thème de Canada.ca, nommé GCWeb."
layout: no-container
language: fr
@@ -20,7 +20,7 @@ css:
Les gabarits et les conceptions communes si dessous sont une référence d'implémentation du Système de conception de Canada.ca, incluant les exigences obligatoire de la spécifications du contenu et de l’architecture de l'information (C&AI) pour Canada.ca. Les ministères et organisme du gouvernement du Canada peuvent y contribuer en publiant leur modèle et leur conception commune via le dépôt github de GCWeb.
-
-
diff --git a/components/wb-data-json/index.json-ld b/wet-boew/wb-data-json/index.json-ld
similarity index 79%
rename from components/wb-data-json/index.json-ld
rename to wet-boew/wb-data-json/index.json-ld
index d1fa4f7af8..6f5191028d 100644
--- a/components/wb-data-json/index.json-ld
+++ b/wet-boew/wb-data-json/index.json-ld
@@ -11,10 +11,10 @@
"fr": "Data JSON"
},
"description": {
- "en": "Insert content extracted from a JSON file.",
+ "en": "Insert content extracted from a JSON file",
"fr": "Insertion de contenu extrait d'un fichier JSON"
},
- "modified": "2022-08-25",
+ "modified": "2024-01-03",
"componentName": "wb-data-json",
"status": "stable",
"pages": {
@@ -22,12 +22,12 @@
{
"title": "Data JSON",
"language": "en",
- "url": "https://wet-boew.github.io/wet-boew/demos/wb-data-json/data-json-en.html"
+ "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/wb-data-json/data-json-en.html"
},
{
"title": "Data JSON",
"language": "fr",
- "url": "https://wet-boew.github.io/wet-boew/demos/wb-data-json/data-json-fr.html"
+ "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/wb-data-json/data-json-fr.html"
},
{
"title": "Template HTML 5",
@@ -49,7 +49,7 @@
{
"title": "Data JSON",
"language": "fr",
- "url": "https://wet-boew.github.io/wet-boew/docs/ref/wb-data-json/wb-data-json-en.html"
+ "url": "https://wet-boew.github.io/wet-boew/docs/ref/wb-data-json/wb-data-json-fr.html"
}
]
}
diff --git a/components/wb-jsonmanager/index.json-ld b/wet-boew/wb-jsonmanager/index.json-ld
similarity index 83%
rename from components/wb-jsonmanager/index.json-ld
rename to wet-boew/wb-jsonmanager/index.json-ld
index 0908acfae5..949b888692 100644
--- a/components/wb-jsonmanager/index.json-ld
+++ b/wet-boew/wb-jsonmanager/index.json-ld
@@ -12,9 +12,9 @@
},
"description": {
"en": "Manage dataset and apply JSON Patch",
- "fr": "Gérer des jeux de données et applique des correctifs JSON."
+ "fr": "Gérer des jeux de données et applique des correctifs JSON"
},
- "modified": "2022-08-25",
+ "modified": "2024-01-03",
"componentName": "wb-jsonmanager",
"status": "stable",
"pages": {
@@ -22,12 +22,12 @@
{
"title": "JSON Manager",
"language": "en",
- "url": "https://wet-boew.github.io/wet-boew/demos/wb-jsonmanager/jsonmanager-en.html"
+ "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/wb-jsonmanager/jsonmanager-en.html"
},
{
"title": "Gestionnaire JSON",
"language": "fr",
- "url": "https://wet-boew.github.io/wet-boew/demos/wb-jsonmanager/jsonmanager-fr.html"
+ "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/wb-jsonmanager/jsonmanager-fr.html"
},
{
"title": "with Do Action patches",
diff --git a/components/wb-jsonmanager/jsonmanager-doaction-en.html b/wet-boew/wb-jsonmanager/jsonmanager-doaction-en.html
similarity index 100%
rename from components/wb-jsonmanager/jsonmanager-doaction-en.html
rename to wet-boew/wb-jsonmanager/jsonmanager-doaction-en.html
diff --git a/components/wb-jsonmanager/jsonmanager-doaction-fr.html b/wet-boew/wb-jsonmanager/jsonmanager-doaction-fr.html
similarity index 100%
rename from components/wb-jsonmanager/jsonmanager-doaction-fr.html
rename to wet-boew/wb-jsonmanager/jsonmanager-doaction-fr.html
From 1c00fc23570d3e7ba8b40c16e410ca92c00aa4db Mon Sep 17 00:00:00 2001
From: Ettahri
Date: Mon, 8 Jan 2024 16:15:27 -0500
Subject: [PATCH 007/161] Release v14.3.0
---
index-en.md | 4 ++--
index-fr.md | 4 ++--
package-lock.json | 6 +++---
package.json | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/index-en.md b/index-en.md
index 90e9632955..f6c8e1a221 100644
--- a/index-en.md
+++ b/index-en.md
@@ -1,7 +1,7 @@
---
title: GCWeb, the WET-BOEW Canada.ca theme
altLangPage: index-fr.html
-dateModified: 2023-12-14
+dateModified: 2023-01-08
description: "Home page describing all the components of the Canada.ca theme, named GCWeb."
layout: no-container
language: en
@@ -20,7 +20,7 @@ css:
The page templates and design patterns below comprise a reference implementation of the Canada.ca design system, including the mandatory requirement of the Content and Information Architecture (C&IA) Specification. Government of Canada departments and agencies can contribute additional patterns and templates via GCWeb github repository.
diff --git a/index-fr.md b/index-fr.md
index ee85ab0d72..c42d3d2322 100644
--- a/index-fr.md
+++ b/index-fr.md
@@ -1,7 +1,7 @@
---
title: GCWeb, le thème WET-BOEW de Canada.ca
altLangPage: index-en.html
-dateModified: 2023-12-14
+dateModified: 2023-01-08
description: "Page d'accueil décrivant l'ensemble des composants du thème de Canada.ca, nommé GCWeb."
layout: no-container
language: fr
@@ -20,7 +20,7 @@ css:
Les gabarits et les conceptions communes si dessous sont une référence d'implémentation du Système de conception de Canada.ca, incluant les exigences obligatoire de la spécifications du contenu et de l’architecture de l'information (C&AI) pour Canada.ca. Les ministères et organisme du gouvernement du Canada peuvent y contribuer en publiant leur modèle et leur conception commune via le dépôt github de GCWeb.
diff --git "a/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.css" "b/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.css"
index a8bb5fa3c3..ad4bbcc8d6 100644
--- "a/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.css"
+++ "b/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.css"
@@ -4,37 +4,41 @@
background: #003c77;
color: #fff;
}
-/* remove table cell and text shadow*/
+/* remove table cell and text shadow */
#wb-sm.campaign-menu .menu {
border-right: 0px !important;
display: block;
text-shadow: none;
}
- /* focus within mneu itme background */
+ /* focus within menu item background */
#wb-sm.campaign-menu .menu .active,
-#wb-sm.campaign-menu .menu .wb-navcurr {
+#wb-sm.campaign-menu .menu .wb-navcurr,
+#wb-sm.campaign-menu .menu > li a:focus {
background: #ccc !important;
color: #333 !important;
}
+#wb-sm.campaign-menu .menu > li {
+ border-left: 1px solid #003c77;
+}
+
+#wb-sm.campaign-menu .menu > li:last-child {
+ border-right: 1px solid #003c77;
+}
+
/* adjust menu padding to align height with GCMenu button */
#wb-sm.campaign-menu .menu > li a {
padding: 0.5em 1em;
}
-/* change menu item on-hover background*/
+/* change menu item on-hover background */
#wb-sm.campaign-menu .menu > li a:hover{
background: #ccc !important;
color: #333 !important;
}
-/* change menu item on-focus background */
-#wb-sm.campaign-menu .menu > li a:focus{
- background: #003c77 !important;
- color: #fff !important;
-}
-/* change menuitem text color when mouse move to submenu item*/
+/* change menuitem text color when mouse move to submenu item */
#wb-sm.campaign-menu .menu > li.active > a{
background: #ccc!important;
color: #333!important;
@@ -46,7 +50,7 @@
color: #333 !important;
}
-/* hover on submenu item*/
+/* hover on submenu item */
#wb-sm.campaign-menu .sm.open li a:active,
#wb-sm.campaign-menu .sm.open li a:focus,
#wb-sm.campaign-menu .sm.open li a:hover {
@@ -59,15 +63,6 @@
border-bottom: 5px solid #003c77 !important;
}
-
-/* add right border for last child item on md screen */
-@media screen and (max-width: 1199px) {
- #wb-sm.campaign-menu .menu > li:last-child {
- border-right: 1px solid #999;
- }
-}
-
-
/*** GCWEB Menu ***/
/* default color */
.gcweb-menu.campaign-menu button[aria-haspopup=true] {
@@ -85,7 +80,7 @@
/* button closed */
.gcweb-menu.campaign-menu button[aria-haspopup=true]:focus {
background-color: #003c77 !important;
- border: 1px dotted #fff; /* For focus - Make sure the */
+ border: 1px dotted #fff;
color: #fff;
}
@@ -99,7 +94,8 @@
background-color: #003c77 !important;
color: #fff;
}
-/* remove boder lines */
+
+/* remove border lines */
.gcweb-menu.campaign-menu [role=menuitem],
.gcweb-menu.campaign-menu [role=menuitem]:visited,
.gcweb-menu.campaign-menu [role=menu] > li,
@@ -110,7 +106,7 @@
border: none;
}
-/* submenu background and text color*/
+/* submenu background and text color */
.gcweb-menu.campaign-menu [role=menu] [role=menu] li [role=menuitem] {
background-color: #e1e1e1 !important;
color: #333;
diff --git "a/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.js" "b/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.js"
index 04298b77f0..e89d915c46 100644
--- "a/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.js"
+++ "b/m\303\251li-m\303\251lo/2023-09-menu/campaign-menu.js"
@@ -5,12 +5,6 @@
(function ($, window, document, wb) {
"use strict";
- /*
- * Variable and function definitions.
- * These are global to the plugin - meaning that they will be initialized once per page,
- * not once per instance of plugin on the page. So, this is a good place to define
- * variables that are common to all instances of the plugin on a page.
- */
var componentName = "campaign-menu",
selector = "." + componentName + ".gcweb-menu",
initEvent = "wb-init" + selector,
@@ -21,7 +15,6 @@
* @param {jQuery Event} event Event that triggered the function call
*/
init = function (event) {
-
// Start initialization
// returns DOM object = proceed with init
// returns undefined = do not proceed with init (e.g., already initialized)
@@ -29,16 +22,8 @@
$elm;
if (elm) {
-
- // At this point, the GCWeb menu is already initialized
$elm = $(elm);
- // Add IDs for GC menu. This must be synchronized with the ids for the mega menu below.
- var gcSubmenus = $elm.find("ul ul");
- for (var i = 1; i < gcSubmenus.length + 1; i++) {
- gcSubmenus.eq(i - 1).attr("id", 'sub-menu-' + i);
- }
-
// Check if there is already a gcweb menu.
// If there are 2 present, the global GCWeb menu is present, hide this custom menu
var gcWebMenus = document.querySelectorAll(".gcweb-menu");
@@ -58,65 +43,38 @@
return;
}
- // Megamenu does not exist, let's build it for md and lg using the content in the GCWeb
+ // Build megamenu once WET is fully initialized, to ensure the GCWeb menu ajax append is complete
+ $(document).on("wb-ready.wb", buildMegaMenu($elm));
+
+ wb.ready($elm, componentName);
+ }
+ },
+
+ buildMegaMenu = function ($elm) {
+ return function (e) {
// Retrieve the top level list items from GCWeb men
var gcwebMenuListItems = $elm.find("> ul > li");
// Start building mega menu
var megamenuHTML = "";
- var listItemCounter = 0;
- var subMenuCounter = 0;
$.each(gcwebMenuListItems, function (key, element) {
- // console.log(key + ": " + element);
- listItemCounter++;
-
// Get top level list item's anchor
- var listItemAnchor = element.querySelector("a");
- listItemAnchor.setAttribute('class', 'item');
- //console.log("anchor: ", listItemAnchor);
-
- // Get top level list item's children
- var listItemchildren = element.querySelectorAll("li");
- //console.log("children: ", listItemchildren);
- //console.log("children length: " + gcwebMenuListItems.length);
-
- // Build top level list items, with and without submenus
- if (listItemchildren.length > 0) {
- // Use counter to generate dynamic href bookmarks and ids for submenus
- subMenuCounter++;
-
- // Build list item with a submenu
- let subMenuId = "menu-" + subMenuCounter;
-
- var submegamenuHTML = "";
- // TODO: Verify all the attributes
- megamenuHTML += `
-
${listItemAnchor.textContent}`;
-
- $.each(listItemchildren, function (key, element) {
- //console.log(key + ": " + element);
- var subListItemAnchor = element.querySelector("a");
- var href = subListItemAnchor.getAttribute('href');
-
- // TODO: Add missing attributes present in the
- submegamenuHTML += `
`;
- }
+ var anchor = element.querySelector("a");
+ // Build list item without a submenu
+ let href = anchor.getAttribute('href');
+ let linkText = anchor.textContent;
+ megamenuHTML += `
`;
});
// Get GCWeb h2
var gcwebMenuH2 = document.querySelector(selector + " > h2");
+ var megamenuAjaxReplace = $elm[0].getAttribute('data-megamenu-ajax');
+
// Wrap menu HTML with the megamenu wrapper
// NOTE: Removed role="navigation" (redundant) and typeof="SiteNavigationElement" (not required)
megamenuHTML = `
-
+
${gcwebMenuH2.textContent}
@@ -124,44 +82,32 @@
`;
- //console.log(megamenuHTML);
// Apply appropriate visible CSS classes to the GCWeb menu
$elm.addClass("visible-sm visible-xs");
+ // Workaround - Add the div required to build the hamburger menu, but hide it, since all we're trying to do is fully initialize the megamenu
+ $(".gcweb-menu").after('');
+ $(".gcweb-menu").after('
');
+
// Add the megamenu
$elm.after(megamenuHTML);
- // Start the megamenu plugin
- // Workaround - Add the div required to build the hamburger menu, but hide it, since all we're trying to do is fully initialize the megamenu
- $(".wb-menu").attr('data-trgt', 'mb-pnl');
- $(".wb-menu").after('');
- $(".wb-menu").after('
');
-
// Initialize it
$(".wb-menu").trigger("wb-init.wb-menu");
- $("#mb-pnl").remove();
- $("#wb-glb-mn").remove();
- $(".wb-menu").removeAttr('data-trgt');
-
- wb.ready($elm, componentName);
+ $(document).on("wb-ready.wb-menu", cleanUp);
}
},
- findNavElement = function (activeElement) {
- let parentElement = activeElement.parentElement;
- while (parentElement.nodeName != "NAV" && parentElement.nodeName != "BODY") {
- parentElement = parentElement.parentElement;
- }
- if (parentElement.nodeName == "NAV") {
- return parentElement;
- } else {
- return false;
- }
+ cleanUp = function () {
+ $("#mb-pnl").remove();
+ $("#wb-glb-mn").remove();
},
- openMenu = function () {
+ switchMenu = function () {
+ // Show/hide the appropriate menu when the viewport changes between xs/sm and md/lg
+ // and transfer the active element/active link (if it's within the menu) to the visible menu
if (savedAnchorFocus != undefined) {
let nav = findNavElement(savedAnchorFocus);
@@ -180,18 +126,30 @@
// Determine if the focus is on a link or an anchor to open a submenu
if (savedFocusHref.match("^#")) {
- let submenuId = savedFocusHref.substring(6);
- $(".gcweb-menu a[aria-controls='sub-menu-" + submenuId + "']").focus();
+ let submenuId = savedFocusHref.substring(14);
+ let equivalentElement = $(".gcweb-menu a[aria-controls='gc-sub-menu-" + submenuId + "']");
+ if (equivalentElement != undefined) {
+ equivalentElement.focus();
+ if (equivalentElement[0].hasAttribute('aria-haspopup') && equivalentElement[0].getAttribute('aria-haspopup') == "true") {
+ equivalentElement.attr("aria-expanded", "true");
+ }
+ } else {
+ console.warn("Unable to find equivalent link in GCWeb menu top level items");
+ }
} else {
let gcMenuFocusAnchor = $('.gcweb-menu a[href="' + savedFocusHref + '"]');
let ulParents = $(gcMenuFocusAnchor).parents("ul");
if (ulParents.length > 1) {
let submenu = ulParents.eq(0);
submenu.parent()
- .children('a.item')
+ .children('a')
.attr("aria-expanded", "true");
}
- gcMenuFocusAnchor.focus();
+ if (gcMenuFocusAnchor != undefined) {
+ gcMenuFocusAnchor.focus();
+ } else {
+ console.warn("Unable to find equivalent link in GCWeb menu submenu items");
+ }
}
} else if (nav.classList.contains('gcweb-menu') && $(".gcweb-menu").is(":hidden")) {
// Close submenus
@@ -203,8 +161,13 @@
// Set focus on submenu
if (savedFocusHref.match("^#")) {
let gcSubmenuFocus = $(savedAnchorFocus).attr("aria-controls");
- let submenuId = gcSubmenuFocus.substring(9);
- $(".wb-menu a[href='#menu-" + submenuId + "']").focus();
+ let submenuId = gcSubmenuFocus.substring(12);
+ let equivalentElement = $(".wb-menu a[href='#wet-sub-menu-" + submenuId + "']");
+ if (equivalentElement != undefined) {
+ equivalentElement.focus();
+ } else {
+ console.warn("Unable to find equivalent link in WET megamenu top level items");
+ }
} else {
// Find if it is focused a submenu item
let megaMenuFocusAnchor = $('.wb-menu a[href="' + savedFocusHref + '"]');
@@ -218,21 +181,36 @@
submenu.addClass('open');
submenu.parent().addClass('active sm-open');
}
- megaMenuFocusAnchor.focus();
+ if (megaMenuFocusAnchor != undefined) {
+ megaMenuFocusAnchor.focus();
+ } else {
+ console.warn("Unable to find equivalent link in WET megamenu submenu items");
+ }
}
}
}
}
+ },
+
+ findNavElement = function (activeElement) {
+ let parentElement = activeElement.parentElement;
+ while (parentElement.nodeName != "NAV" && parentElement.nodeName != "BODY") {
+ parentElement = parentElement.parentElement;
+ }
+ if (parentElement.nodeName == "NAV") {
+ return parentElement;
+ } else {
+ return false;
+ }
};
$(window).on("resize", function () {
- //console.log(document.activeElement);
if (document.activeElement.nodeName == 'A') {
savedAnchorFocus = document.activeElement;
}
});
- $document.on(wb.resizeEvents, openMenu);
+ $document.on(wb.resizeEvents, switchMenu);
// Bind the init event of the plugin
$document.on("timerpoke.wb " + initEvent, selector, init);
diff --git "a/m\303\251li-m\303\251lo/2023-09-menu/index.html" "b/m\303\251li-m\303\251lo/2023-09-menu/index.html"
index 6040071a41..204139b791 100644
--- "a/m\303\251li-m\303\251lo/2023-09-menu/index.html"
+++ "b/m\303\251li-m\303\251lo/2023-09-menu/index.html"
@@ -17,28 +17,16 @@
From 4d4dabd61d626d270a8432328154deeb94c8dc13 Mon Sep 17 00:00:00 2001
From: Ettahri
Date: Tue, 16 Jan 2024 09:35:30 -0500
Subject: [PATCH 010/161] Release v14.4.0
---
index-en.md | 4 ++--
index-fr.md | 4 ++--
package-lock.json | 4 ++--
package.json | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/index-en.md b/index-en.md
index f6c8e1a221..ee21eee981 100644
--- a/index-en.md
+++ b/index-en.md
@@ -1,7 +1,7 @@
---
title: GCWeb, the WET-BOEW Canada.ca theme
altLangPage: index-fr.html
-dateModified: 2023-01-08
+dateModified: 2024-01-16
description: "Home page describing all the components of the Canada.ca theme, named GCWeb."
layout: no-container
language: en
@@ -20,7 +20,7 @@ css:
The page templates and design patterns below comprise a reference implementation of the Canada.ca design system, including the mandatory requirement of the Content and Information Architecture (C&IA) Specification. Government of Canada departments and agencies can contribute additional patterns and templates via GCWeb github repository.
diff --git a/index-fr.md b/index-fr.md
index c42d3d2322..60b5098328 100644
--- a/index-fr.md
+++ b/index-fr.md
@@ -1,7 +1,7 @@
---
title: GCWeb, le thème WET-BOEW de Canada.ca
altLangPage: index-en.html
-dateModified: 2023-01-08
+dateModified: 2024-01-16
description: "Page d'accueil décrivant l'ensemble des composants du thème de Canada.ca, nommé GCWeb."
layout: no-container
language: fr
@@ -20,7 +20,7 @@ css:
Les gabarits et les conceptions communes si dessous sont une référence d'implémentation du Système de conception de Canada.ca, incluant les exigences obligatoire de la spécifications du contenu et de l’architecture de l'information (C&AI) pour Canada.ca. Les ministères et organisme du gouvernement du Canada peuvent y contribuer en publiant leur modèle et leur conception commune via le dépôt github de GCWeb.
"
- ],
- "fr": [
- "Pour plus d'informations sur le fonctionnement des plugiciels Contenu superposé ou Data Inview, visitez leur documentation respective
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n\n\n\n\t
\n\t\t
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n"
- }
- ]
- }
- },
- {
- "@id": "_:implement_archvd_overlay_gcweb",
- "iteration": "_:iteration_archvd_overlay_1",
- "name": {
- "en": "GCWeb Jekyll",
- "fr": "GCWeb Jekyll"
- },
- "introduction": {
- "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site.",
- "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll."
- },
- "instructions": {
- "en": [
- "To show the \"Archived with overlay\", in the page's front-matter, set the property archiveOverlay to true."
- ],
- "fr": [
- "Pour afficher \"Archivé avec contenu superposé\", dans l'en-tête de la page, définissez la propriété archiveOverlay à true."
- ]
- },
- "notes": {
- "en": [
- "For more information on how the Overlay or Data Inview plugins, visit their respective documentation
"
- ],
- "fr": [
- "Pour plus d'informations sur le fonctionnement des plugiciels Contenu superposé ou Data Inview, visitez leur documentation respective
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n\n\n\n\t
\n\t
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n"
- }
- ]
- }
- ],
- "changesets": [
- {
- "@id": "_:cs_archvd",
- "name": "Archived",
- "status": "stable",
- "baseOnIteration": "_:iteration_archvd_1",
- "detectableBy": ".gc-archv",
- "layout": "Must be at the very top of the page",
- "semantic": "section > .container > h2 + p",
- "static": [
- "We have archived this page and will not be updating it.",
- "You can use it for research or reference.",
- "Nous avons archivé cette page et elle ne sera plus mise à jour.",
- "Vous pouvez la consulter à des fins de recherche ou à titre de référence."
- ],
- "include": {
- "@type": "source-code",
- "collapsed": true,
- "description": "Include with logic in Liquid.",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "../headers-includes/archive.html"
- }
- }
- },
- {
- "@id": "_:cs_archvd_overlay",
- "name": "Archived with overlay",
- "status": "stable",
- "baseOnIteration": "_:iteration_archvd_overlay_1",
- "detectableBy": ".gc-archv.wb-inview",
- "layout": "Must be at the very top of the page",
- "semantic": "(section > .container > h2 + p) + (section > .container > h2 + p)",
- "static": [
- "We have archived this page and will not be updating it.",
- "You can use it for research or reference.",
- "Nous avons archivé cette page et elle ne sera plus mise à jour.",
- "Vous pouvez la consulter à des fins de recherche ou à titre de référence."
- ],
- "include": {
- "@type": "source-code",
- "collapsed": true,
- "description": "Include with logic in Liquid.",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "../headers-includes/archive.html"
- }
- },
- "basic": "Overlay is not enabled."
- }
- ]
-}
-,{
- "@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": "Authentication",
- "fr": "Authentification"
- },
- "description": {
- "en": "Documentation and working example on how to use the contextual sign in button.",
- "fr": "Documentation et example pratique sur l'utilisation du bouton de connexion contextuel."
- },
- "modified": "2022-05-03",
- "componentName": "authentication",
- "status": "stable",
- "pages": {
- "docs": [
- {
- "title": "Authentication patterns",
- "language": "en",
- "path": "authentication-en.html"
- },
- {
- "title": "Modèles d'authentification",
- "language": "fr",
- "path": "authentication-fr.html"
- }
- ],
- "examples": [
- {
- "title": "Contextual Sign in button",
- "language": "en",
- "path": "contextual-signin-en.html"
- },
- {
- "title": "Bouton contextuel « Se connecter »",
- "language": "fr",
- "path": "contextual-signin-fr.html"
- },
- {
- "title": "Contextual Sign in button with extended custom label",
- "language": "en",
- "path": "contextual-signin-label-extended-en.html"
- },
- {
- "title": "Bouton contextuel « Se connecter » avec libellé personnalisé étendu",
- "language": "fr",
- "path": "contextual-signin-label-extended-fr.html"
- },
- {
- "title": "Contextual Sign in button without custom labels",
- "language": "en",
- "path": "contextual-signin-nolabels-en.html"
- },
- {
- "title": "Bouton contextuel « Se connecter » sans aucun libelés personnalisés",
- "language": "fr",
- "path": "contextual-signin-nolabels-fr.html"
- },
- {
- "title": "Contextual Sign in button without the GCWeb Menu",
- "language": "en",
- "path": "contextual-signin-nomenu-en.html"
- },
- {
- "title": "Bouton contextuel « Se connecter » sans le menu GCWeb",
- "language": "fr",
- "path": "contextual-signin-nomenu-fr.html"
- },
- {
- "title": "Content page - Signed-Off pattern",
- "language": "en",
- "path": "signedoff-en.html"
- },
- {
- "title": "Page de contenu - Modèle de session fermée",
- "language": "fr",
- "path": "signedoff-fr.html"
- },
- {
- "title": "Content page - Signed-On pattern",
- "language": "en",
- "path": "signedon-en.html"
- },
- {
- "title": "Page de contenu - Modèle de session ouverte",
- "language": "fr",
- "path": "signedon-fr.html"
- },
- {
- "title": "Active user session",
- "language": "en",
- "path": "activeusersession-en.html"
- },
- {
- "title": "Session utilisateur active",
- "language": "fr",
- "path": "activeusersession-fr.html"
- }
- ]
- }
-}
-,{
- "@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": "Breadcrumb trail",
- "fr": "Fil d'Ariane"
- },
- "description": {
- "en": "Indicates the location of the current page in relation to its parent in the site structure to reinforce a visitor’s current location in the Canada.ca user navigation model.",
- "fr": "L’objectif du fil d'Ariane est de renforcer l’emplacement actuel des visiteurs dans le modèle de navigation de l’utilisateur du site Canada.ca."
- },
- "modified": "2023-09-06",
- "componentName": "breadcrumbs",
- "status": "stable",
- "pages": {
- "docs": [
- {
- "title": "Breadcrumb trail",
- "language": "en",
- "path": "breadcrumbs-en.html"
- },
- {
- "title": "Fil d'Ariane",
- "language": "fr",
- "path": "breadcrumbs-fr.html"
- }
- ]
- }
-}
-,{
- "@context": {
- "@version": 2.0,
- "dct": "http://purl.org/dc/terms/",
- "title": { "@id": "dct:title", "@container": "@language" },
- "description": { "@id": "dct:description", "@container": "@language" },
- "modified": "dct:modified"
- },
- "title": {
- "en": "Date modified",
- "fr": "Date de modification"
- },
- "description": {
- "en": "Indicates the date on which the current page was last modified.",
- "fr": "Indique la date à laquelle la page courante a été modifiée pour la dernière fois."
- },
- "modified": "2023-11-02",
- "componentName": "date-modified",
- "status": "stable",
- "version": "1.0",
- "pages": {
- "docs": [
- {
- "title": "Date modified",
- "language": "en",
- "path": "date-modified-en.html"
- },
- {
- "title": "Date de modification",
- "language": "fr",
- "path": "date-modified-fr.html"
- }
- ]
- },
- "dependencies": [
- "Page details"
- ],
- "a11yGuidance": "no accessibility guidance",
- "variations": [
- {
- "name": {
- "en": "Date modified - default",
- "fr": "Date de modification - par défaut"
- },
- "status": "stable",
- "description": {
- "en": "The date modified component indicates how recently the content of a web page has been updated.",
- "fr": "La composante de date de modification indique la date de la dernière mise à jour d'une page Web."
- },
- "guidance": {
- "en": "https://design.canada.ca/common-design-patterns/date-modified.html",
- "fr": "https://conception.canada.ca/configurations-conception-communes/date-modification.html"
- },
- "iteration": "_:iteration_dtmd_1",
- "example": [
- {
- "en": { "href": "../../content-page/content-en.html", "text": "Content page (date modified at bottom of page)" },
- "fr": { "href": "../../content-page/content-fr.html", "text": "Page de contenu (date de modification au bas de la page)" }
- }
- ],
- "implementation": [
- "_:implement_dtmd"
- ],
- "history": [
- {
- "en": "June 2014 - Initial implementation of the variation.",
- "fr": "Juin 2014 - Implémentation initiale de la variante."
- }
- ]
- }
- ],
- "implementation": [
- {
- "@id": "_:implement_dtmd",
- "iteration": "_:iteration_dtmd_1",
- "name": {
- "en": "Standard",
- "fr": "Standard"
- },
- "introduction": {
- "en": "This implementation is meant for developers/publishers adding the component manually.",
- "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement."
- },
- "instructions": {
- "en": [
- "Create a <dl id=\"wb-dtmd\">.",
- "Inside the above <dl>,
create a <dt>Date modified:</dt>.
create a <dd><time property=\"dateModified\">[YYYY-MM-DD]<time></dd>, where [YYYY-MM-DD] is the date the current page was last updated. For example: 2023-11-03.
"
- ],
- "fr": [
- "Créez un <dl id=\"wb-dtmd\">.",
- "À l'intérieur de ce <dl>,
créez un <dt>Date de modification :</dt>.
créez un <dd><time property=\"dateModified\">[AAAA-MM-JJ]<time></dd>, où [AAAA-MM-JJ] est la date à laquelle la page courante a été modifiée pour la dernière fois. Par exemple: 2023-11-03.
"
- },
- {
- "@type": "source-code",
- "collapsed": true,
- "description": "Contenu ajouté via Ajax",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "ajax/report-problem-fr.html"
- }
- }
- ]
- }
- },
- {
- "@id": "_:implement_rap_aa",
- "iteration": "_:iteration_rap_5",
- "name": {
- "en": "Adobe Analytics",
- "fr": "Adobe Analytics"
- },
- "introduction": {
- "en": "This implementation is meant for analytics analysts trying to add analytics properties to the component.",
- "fr": "Cette implémentation est destinée aux analystes en analytiques qui veulent ajouter des propriétés analytiques au composant."
- },
- "instructions": {
- "en": [
- "To implement Adobe Analytics in the Report a problem form, simply add the attribute data-gc-analytics-rap to every checkbox with the value being the same as the current language's <label>, followed by a dash and followed by the other language's <label>."
- ],
- "fr": [
- "Pour implémenter Adobe Analytics dans le formulaire Signaler un problème, ajoutez simplement l'attribut data-gc-analytics-rap à chaque case à cocher avec la valeur étant la même que le <label> de la langue actuelle, suivie d'un tiret et suivi par le <label> de l'autre langue."
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": "
"
- }
- ]
- }
- },
- {
- "@id": "_:implement_rap_gcweb",
- "iteration": "_:iteration_rap_5",
- "name": {
- "en": "GCWeb Jekyll",
- "fr": "GCWeb Jekyll"
- },
- "introduction": {
- "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site.",
- "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll."
- },
- "instructions": {
- "en": [
- "In the page's front-matter do the following:
set the variable feedback to true
set the variable feedbackPath to \"ajax/report-problem-en.html\"
set the variable feedbackFallback to true
"
- ],
- "fr": [
- "Dans l'en-tête de la page faites ce qui suit :
définissez la variable feedback à true.
définissez la variable feedbackPath à \"ajax/report-problem-fr.html\"
définissez la variable feedbackFallback à true
"
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-en.html\"\n\t...\n}\n---"
- }
- ],
- "fr": [
- {
- "@type": "source-code",
- "description": "Exemple de code :",
- "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-fr.html\"\n\t...\n}\n---"
- }
- ]
- }
- },
- {
- "@id": "_:implement_pft",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "Standard (wet-boew)",
- "fr": "Standard (wet-boew)"
- },
- "introduction": {
- "en": "This implementation is meant for developers/publishers adding the component manually while using the latest version of GCWeb along with the implementation of the page details version 3.0 and above.",
- "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement en utilisant la dernière version de GCWeb avec l'implémentation de la version 3.0 ou plus du détails de la page."
- },
- "instructions": {
- "en": [
- "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
- "Ensure the version 3.0 or newer of the page details is implemented.",
- "To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Optional: data-feedback-theme=\"[Text defining the theme of your page]\"
Optional: data-feedback-section=\"[Text defining the section where your page resides]\"
",
- "Additionally, your page needs to have the following metadata: <meta name=\"dcterms.creator\" content=\"[Department name]\">"
- ],
- "fr": [
- "Vérifier que la version 13.9.0 ou plus récente de GCWeb est implémentée.",
- "Vérifier que la version 3.0 ou plus récente du détails de la page est implémentée.",
- "Pour afficher le formulaire de rétroaction sur la page, créez un <div class=\"wb-disable-allow\"> avec les attributs suivants :
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
- "De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
- ]
- },
- "notes": {
- "en": [
- "To upgrade from the RAP to the PFT, follow the instructions of the \"Upgrade from RAP\" tab.",
- "For more information about Data Ajax plugin, please visit Data Ajax documentation page."
- ],
- "fr": [
- "Pour passer du SUP au ORP, suivez les instructions de l'onglet \"Mise à jour à partir de SUP\".",
- "Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax."
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": ""
- },
- {
- "@type": "source-code",
- "collapsed": true,
- "description": "Ajaxed-in content",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "assets/page-feedback-en.html"
- }
- }
- ],
- "fr": [
- {
- "@type": "source-code",
- "description": "Exemple de code :",
- "code": ""
- },
- {
- "@type": "source-code",
- "collapsed": true,
- "description": "Contenu ajouté via Ajax",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "assets/page-feedback-fr.html"
- }
- }
- ]
- }
- },
- {
- "@id": "_:implement_pft_gcweb",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "GCWeb Jekyll",
- "fr": "GCWeb Jekyll"
- },
- "introduction": {
- "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site. To apply this variant's optional attributes on any given page, you will need to do the following in the page's front-matter:",
- "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll. Pour appliquer les attributs facultatifs de cette variante sur une page donnée, vous devrez procéder comme suit dans le front-matter de la page :"
- },
- "instructions": {
- "en": [
- "Set the variable feedback to true.",
- "Set the variable feedbackData to an object containing the following customizable strings:
section: to define the section where your page resides.
theme: to define the theme of your page.
"
- ],
- "fr": [
- "Définissez la variable feedback à true.",
- "Définissez la variable feedbackData à un objet contenant les chaînes de caractères suivantes :
section: pour définir la section où réside votre page.
theme: pour définir le thème de votre page.
"
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
- }
- ],
- "fr": [
- {
- "@type": "source-code",
- "description": "Exemple de code :",
- "code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
- }
- ]
- }
- },
- {
- "@id": "_:implement_pft_upgrade_rap",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "Upgrade from RAP",
- "fr": "Mise à jour à partir de SUP"
- },
- "introduction": {
- "en": "This implementation is meant for implementers that want to migrate their current page build with RAP towards the new PFT.",
- "fr": "Cette implémentation est destinée aux implémenteurs qui souhaitent migrer leur page actuelle avec SUP vers le nouvel ORP."
- },
- "instructions": {
- "en": [
- "Update the page details component to the version 3.0.",
- "Follow the implementation instructions for the new PFT implementation."
- ],
- "fr": [
- "Mettez à jour le composant détails de page vers la version 3.0.",
- "Suivez les instructions d'implémentation pour la nouvelle implémentation du ORP."
- ]
- }
- },
- {
- "@id": "_:implement_pft_mws_author",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "MWS users",
- "fr": "Utilisateur SWG"
- },
- "introduction": {
- "en": "For users that are authoring Web pages on Canada.ca Managed Web Services.",
- "fr": "Pour les utilisateurs qui font de l'édition de pages Web sur Canada.ca via le Service Web géré."
- },
- "instructions": {
- "en": [
- "Read the design system guidance before adding the Page feedback tool on your pages.",
- "If you are configuring the section, please follow the additional design system guidance.",
- "You can configure the Page feedback tool via the page properties by adjusting the optional configurations (contact info and section). The value for the theme configuration is automatically set by MWS.",
- "For additional guidance on how to implement the Page feedback tool, you can consult the guide on GCPedia along with the other documentation for MWS."
- ],
- "fr": [
- "Veuillez lire les consignes du système de conception avant d'ajouter l'Outil de rétroaction sur la page à vos pages.",
- "Si vous configurez la section, veuillez suivre les consignes supplémentaires du système de conception.",
- "Vous pouvez configurer l'Outil de rétroaction sur la page via les propriétés de la page en ajustant les configurations facultative (informations de contact et section). Les valeurs de la configuration du thème sont automatiquement définies par le SWG.",
- "Pour des conseils supplémentaires sur la mise en œuvre de l'Outil de rétroaction sur la page, vous pouvez consulter le guide sur GCPedia avec les autres documents du SWG."
- ]
- }
- },
- {
- "@id": "_:implement_pft_contact",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "Standard (WET-BOEW)",
- "fr": "Standard (WET-BOEW)"
- },
- "introduction": {
- "en": "This implementation is meant for developers/publishers adding the component manually while using the latest version of GCWeb along with the implementation of the page details version 3.0 and above.",
- "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement en utilisant la dernière version de GCWeb avec l'implémentation de la version 3.0 ou plus du détails de la page."
- },
- "instructions": {
- "en": [
- "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
- "Ensure the version 3.0 or newer of the page details is implemented.",
- "To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Mandatory: data-feedback-link=\"[Contact link text]\"
Mandatory: data-feedback-url=\"[Contact link URL]\"
Optional: data-feedback-theme=\"[Text defining the theme of your page]\"
Optional: data-feedback-section=\"[Text defining the section where your page resides]\"
",
- "Additionally, your page needs to have the following metadata: <meta name=\"dcterms.creator\" content=\"[Department name]\">"
- ],
- "fr": [
- "Vérifier que la version 13.9.0 ou plus récente de GCWeb est implémentée.",
- "Vérifier que la version 3.0 ou plus récente du détails de la page est implémentée.",
- "Pour afficher le formulaire de rétroaction sur la page, créez un <div class=\"wb-disable-allow\"> avec les attributs suivants :
Obligatoire : data-feedback-link=\"[Contact link text]\"
Obligatoire : data-feedback-url=\"[Contact link URL]\"
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
- "De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
- ]
- },
- "notes": {
- "en": [
- "To upgrade from the RAP to the PFT, follow the instructions of the \"Upgrade from RAP\" tab.",
- "For more information about Data Ajax plugin, please visit Data Ajax documentation page."
- ],
- "fr": [
- "Pour passer du SUP au ORP, suivez les instructions de l'onglet \"Mise à jour à partir de SUP\".",
- "Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax."
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": ""
- },
- {
- "@type": "source-code",
- "collapsed": true,
- "description": "Ajaxed-in content",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "assets/page-feedback-en.html"
- }
- }
- ],
- "fr": [
- {
- "@type": "source-code",
- "description": "Exemple de code :",
- "code": ""
- },
- {
- "@type": "source-code",
- "collapsed": true,
- "description": "Contenu ajouté via Ajax",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "assets/page-feedback-fr.html"
- }
- }
- ]
- }
- },
- {
- "@id": "_:implement_pft_contact_gcweb",
- "iteration": "_:iteration_pft_1",
- "name": {
- "en": "GCWeb Jekyll",
- "fr": "GCWeb Jekyll"
- },
- "introduction": {
- "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site. To apply this variant's optional attributes on any given page, you will need to do the following in the page's front-matter:",
- "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll. Pour appliquer les attributs facultatifs de cette variante sur une page donnée, vous devrez procéder comme suit dans le front-matter de la page :"
- },
- "instructions": {
- "en": [
- "Set the variable feedback to true.",
- "Set the variable feedbackContact to an object containing the following properties:
link: to define the contact link's text.
url: to define the contact link's URL.
",
- "Optionally, set the variable feedbackData to an object containing the following customizable strings:
section: to define the section where your page resides.
theme: to define the theme of your page.
"
- ],
- "fr": [
- "Définissez la variable feedback à true.",
- "Définissez la variable feedbackContact à un objet contenant les propriétés :
link: pour définir le texte du lien de contact.
url: pour définir l'URL du lien de contact.
",
- "Facultativement, définissez la variable feedbackData à un objet contenant les propriétés suivantes :
section: pour définir la section où réside votre page.
theme: pour définir le thème de votre page.
"
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Contact link\",\n\t\t\"url\": \"https://canada.ca/en\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
- }
- ],
- "fr": [
- {
- "@type": "source-code",
- "description": "Exemple de code :",
- "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Lien de contact\",\n\t\t\"url\": \"https://canada.ca/fr\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
- }
- ]
- }
- }
- ],
- "changesets": [
- {
- "@id": "_:cs_pft_container",
- "name": "Page feedback tool with AJAX",
- "status": "stable",
- "baseOnIteration": "_:iteration_pft_1",
- "detectableBy": ".pagedetails .wb-disable-allow[data-ajax-replace*=feedback]",
- "layout": [
- "At the top-left column in the page details component",
- "When user selects \"No\", a form with a textarea appears"
- ],
- "style": [
- "Light-gray box with question and two primary buttons",
- "When user selects \"No\", a form with a textarea replaces the question and primary buttons"
- ],
- "include": {
- "@type": "source-code",
- "description": "Container calling the RAP form via AJAX",
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "includes/feedback.html"
- }
- },
- "logic": "Not applicable",
- "behaviour": [
- "Display an inline form that replaces the buttons when requested by the user, to collect the feedback"
- ],
- "context": "In the page details component, inside the main content of the page",
- "configuration":[
- "Mandatory: URL of the file being AJAXed",
- "Optional: data-feedback-section attribute",
- "Optional: data-feedback-theme attribute",
- "Mandaotry for Page feedback tool with contact link variation: data-feedback-link attribute",
- "Mandaotry for Page feedback tool with contact link variation: data-feedback-url attribute"
- ],
- "static": "Not applicable",
- "schema": [
- "AjaxLink",
- "FeedbackSection",
- "FeedbackTheme",
- "FeedbackLink",
- "FeedbackURL"
- ],
- "dependency": [
- "Page details, version 2, incompatible with version 1",
- "PFT AJAX content as described by the changeset _:cs_pft_ajax"
- ],
- "file": "Not applicable"
- },
- {
- "@id": "_:cs_pft_ajax",
- "name": "Page feedback tool AJAX file",
- "status": "stable",
- "baseOnIteration": "_:iteration_pft_1",
- "dependOnChangeSet": "_:cs_pft_container",
- "detectableBy": "
",
- "layout": [
- "Row - string followed by two primary buttons",
- "Form appear when \"No\" is selected",
- "Label",
- "Hint",
- "Info text",
- "Textarea",
- "Submit button"
- ],
- "style": [
- "Light-gray box with question and two primary buttons",
- "When user selects \"No\", a form with a textarea replaces the question and primary buttons",
- "When user submits, a confirmation message is shown on postback"
- ],
- "semantic": [
- "h3",
- "form > input[type=hidden] + (fieldset > legend + button*3) + p*2 + (details > summary + p) + label + p*2 + textarea + button",
- "p"
- ],
- "include": {
- "@type": "source-code",
- "description": "HTML fragment which is inserted into the PFT container",
- "collapsed": true,
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "assets/page-feedback-en.html"
- }
- },
- "logic": "Not applicable",
- "behaviour": [
- "When user selects \"No\", a form with a textarea and submit button replaces the question and primary buttons",
- "When user selects \"Yes\", a success message replaces the question and primary buttons"
- ],
- "guidance": "Not applicable",
- "context": "To be used by PFT",
- "configuration": "Not applicable",
- "static": [
- "Heading 3: Give feedback about this page - Donnez votre rétroaction sur cette page",
- "Legend: Did you find what you were looking for? - Avez-vous trouvé ce que vous cherchiez?",
- "Button: Yes - Oui",
- "Button: No - Non",
- "Paragraph (basic only): If not, tell us why below - Sinon, dites nous pourquoi ci-dessous",
- "Paragraph: Tell us why below - Dites nous pourquoi ci-dessous",
- "Summary (contact link variation only): Need urgent help with a problem? Contact us - Besoin d’aide urgente pour résoudre un problème? Communiquez avec nous",
- "Label: Please provide more details - Veuillez fournir plus de détails",
- "Small note: You will not receive a reply. Don't include personal information (telephone, email, SIN, financial, medical, or work details). - Vous ne recevrez pas de réponse. N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).",
- "Instruction paragraph: Maximum 300 characters - Maximum de 300 caractères",
- "Button: Submit - Soumettre",
- "Success message: Thank you for your feedback. - Merci de vos commentaires."
- ],
- "schema": "Not applicable",
- "dependency": [
- "Page details, version 2, incompatible with version 1"
- ],
- "file": "Not applicable, this HTML fragment content is intended to be integrated by a location that fits the content management system"
- },
- {
- "@id": "_:cs_rap_ajax_2",
- "name": "Report a problem AJAX file Data-JSON",
- "status": "deprecated",
- "schema:expires": "2024-12",
- "baseOnIteration": "_:iteration_rap_5",
- "dependOnChangeSet": "_:cs_rap_container",
- "detectableBy": "Hidden inputs genereted via Data-JSON and \"subject\" and \"externalReferer\" are static",
- "layout": [
- "Full width button",
- "When expanded, a vertical form is shown"
- ],
- "style": [
- "The expandable Button is rendered as the default button preceded by an arrow",
- "Gray background for the form area",
- "Primary styled button for form submission"
- ],
- "include": {
- "@type": "source-code",
- "description": "HTML fragment which is inserted into the RAP container",
- "collapsed": true,
- "code": {
- "@type": [ "@id", "rdf:HTML" ],
- "@value": "ajax/deprecated/report-problem-v1-en.html"
- }
- },
- "logic": "Not applicable",
- "behaviour": [
- "Button that show/hide the RAP form",
- "Success message showed on success or failure"
- ],
- "guidance": [
- "Canada.ca: show the feedback form underneath the RAP button"
- ],
- "context": "To be used by RAP",
- "configuration":[
- "Form submission URL"
- ],
- "static": [
- "Button text - RAP-title - \"Report a problem on this page\" - \"Signaler un problème ou une erreur sur cette page\"",
- "Hidden inputs \"subject\" and \"externalReferer\"",
- "Text in the
[Nom de l’institution] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
[Institution name] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
[Nom de l’institution] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
- {%- include components/gc-follow-us/gc-follow-us.html isInline=true -%}
+ {%- include gc-follow-us/gc-follow-us.html isInline=true -%}
diff --git a/templates/institutional/institution-landing-fr.html b/templates/institutional/institution-landing-fr.html
index 3caee3c878..c6cf028f38 100644
--- a/templates/institutional/institution-landing-fr.html
+++ b/templates/institutional/institution-landing-fr.html
@@ -141,7 +141,7 @@
Minister
Minister's official title
- {%- include components/gc-follow-us/gc-follow-us.html isInline=true -%}
+ {%- include gc-follow-us/gc-follow-us.html isInline=true -%}
diff --git a/templates/lowest-topic/index-en.html b/templates/lowest-topic/index-en.html
index bc8afaf753..6d99dacf75 100644
--- a/templates/lowest-topic/index-en.html
+++ b/templates/lowest-topic/index-en.html
@@ -18,7 +18,7 @@
{{ page.title }}
This topic page shows child destination pages that have a local left navigation. Click on a task for an example. This would typically happen on a lowest-level topic page.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
Cette page de sujet comporte des liens vers des pages de destination qui ont une navigation locale. Cliquez sur une tâche pour voir un exemple. Normalement, cette situation devrait arriver sur des pages de sujet de plus bas niveau.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
{% include components/gc-features/features.html %}
diff --git a/templates/news/news-fr.html b/templates/news/news-fr.html
index db34d40d57..d12b6386fb 100644
--- a/templates/news/news-fr.html
+++ b/templates/news/news-fr.html
@@ -45,7 +45,7 @@
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
{% include components/gc-features/features.html %}
diff --git a/templates/organizational/organizational-arms-en.html b/templates/organizational/organizational-arms-en.html
index 888555a71f..acddb77d8e 100644
--- a/templates/organizational/organizational-arms-en.html
+++ b/templates/organizational/organizational-arms-en.html
@@ -19,7 +19,7 @@
[Institution name] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
[Nom de l’institution] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
[Institution name] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
[Nom de l’institution] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor. Cras sagittis massa sed libero eleifend, ac iaculis urna tempor.
- {% include components/gc-follow-us/follow.html %}
+ {% include gc-follow-us/follow.html %}
"
+ ],
+ "fr": [
+ "Pour plus d'informations sur le fonctionnement des plugiciels Contenu superposé ou Data Inview, visitez leur documentation respective
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n\n\n\n\t
\n\t\t
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n"
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_archvd_overlay_gcweb",
+ "iteration": "_:iteration_archvd_overlay_1",
+ "name": {
+ "en": "GCWeb Jekyll",
+ "fr": "GCWeb Jekyll"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site.",
+ "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll."
+ },
+ "instructions": {
+ "en": [
+ "To show the \"Archived with overlay\", in the page's front-matter, set the property archiveOverlay to true."
+ ],
+ "fr": [
+ "Pour afficher \"Archivé avec contenu superposé\", dans l'en-tête de la page, définissez la propriété archiveOverlay à true."
+ ]
+ },
+ "notes": {
+ "en": [
+ "For more information on how the Overlay or Data Inview plugins, visit their respective documentation
"
+ ],
+ "fr": [
+ "Pour plus d'informations sur le fonctionnement des plugiciels Contenu superposé ou Data Inview, visitez leur documentation respective
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n\n\n\n\t
\n\t
Nous avons archivé cette page et elle ne sera plus mise à jour.
\n\t
Vous pouvez la consulter à des fins de recherche ou à titre de référence.
\n\t
\n"
+ }
+ ]
+ }
+ ],
+ "changesets": [
+ {
+ "@id": "_:cs_archvd",
+ "name": "Archived",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_archvd_1",
+ "detectableBy": ".gc-archv",
+ "layout": "Must be at the very top of the page",
+ "semantic": "section > .container > h2 + p",
+ "static": [
+ "We have archived this page and will not be updating it.",
+ "You can use it for research or reference.",
+ "Nous avons archivé cette page et elle ne sera plus mise à jour.",
+ "Vous pouvez la consulter à des fins de recherche ou à titre de référence."
+ ],
+ "include": {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Include with logic in Liquid.",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "../headers-includes/archive.html"
+ }
+ }
+ },
+ {
+ "@id": "_:cs_archvd_overlay",
+ "name": "Archived with overlay",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_archvd_overlay_1",
+ "detectableBy": ".gc-archv.wb-inview",
+ "layout": "Must be at the very top of the page",
+ "semantic": "(section > .container > h2 + p) + (section > .container > h2 + p)",
+ "static": [
+ "We have archived this page and will not be updating it.",
+ "You can use it for research or reference.",
+ "Nous avons archivé cette page et elle ne sera plus mise à jour.",
+ "Vous pouvez la consulter à des fins de recherche ou à titre de référence."
+ ],
+ "include": {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Include with logic in Liquid.",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "../headers-includes/archive.html"
+ }
+ },
+ "basic": "Overlay is not enabled."
+ }
+ ]
+}
+,{
+ "@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": "Authentication",
+ "fr": "Authentification"
+ },
+ "description": {
+ "en": "Documentation and working example on how to use the contextual sign in button.",
+ "fr": "Documentation et example pratique sur l'utilisation du bouton de connexion contextuel."
+ },
+ "modified": "2022-05-03",
+ "componentName": "authentication",
+ "status": "stable",
+ "pages": {
+ "docs": [
+ {
+ "title": "Authentication patterns",
+ "language": "en",
+ "path": "authentication-en.html"
+ },
+ {
+ "title": "Modèles d'authentification",
+ "language": "fr",
+ "path": "authentication-fr.html"
+ }
+ ],
+ "examples": [
+ {
+ "title": "Contextual Sign in button",
+ "language": "en",
+ "path": "contextual-signin-en.html"
+ },
+ {
+ "title": "Bouton contextuel « Se connecter »",
+ "language": "fr",
+ "path": "contextual-signin-fr.html"
+ },
+ {
+ "title": "Contextual Sign in button with extended custom label",
+ "language": "en",
+ "path": "contextual-signin-label-extended-en.html"
+ },
+ {
+ "title": "Bouton contextuel « Se connecter » avec libellé personnalisé étendu",
+ "language": "fr",
+ "path": "contextual-signin-label-extended-fr.html"
+ },
+ {
+ "title": "Contextual Sign in button without custom labels",
+ "language": "en",
+ "path": "contextual-signin-nolabels-en.html"
+ },
+ {
+ "title": "Bouton contextuel « Se connecter » sans aucun libelés personnalisés",
+ "language": "fr",
+ "path": "contextual-signin-nolabels-fr.html"
+ },
+ {
+ "title": "Contextual Sign in button without the GCWeb Menu",
+ "language": "en",
+ "path": "contextual-signin-nomenu-en.html"
+ },
+ {
+ "title": "Bouton contextuel « Se connecter » sans le menu GCWeb",
+ "language": "fr",
+ "path": "contextual-signin-nomenu-fr.html"
+ },
+ {
+ "title": "Content page - Signed-Off pattern",
+ "language": "en",
+ "path": "signedoff-en.html"
+ },
+ {
+ "title": "Page de contenu - Modèle de session fermée",
+ "language": "fr",
+ "path": "signedoff-fr.html"
+ },
+ {
+ "title": "Content page - Signed-On pattern",
+ "language": "en",
+ "path": "signedon-en.html"
+ },
+ {
+ "title": "Page de contenu - Modèle de session ouverte",
+ "language": "fr",
+ "path": "signedon-fr.html"
+ },
+ {
+ "title": "Active user session",
+ "language": "en",
+ "path": "activeusersession-en.html"
+ },
+ {
+ "title": "Session utilisateur active",
+ "language": "fr",
+ "path": "activeusersession-fr.html"
+ }
+ ]
+ }
+}
+,{
+ "@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": "Breadcrumb trail",
+ "fr": "Fil d'Ariane"
+ },
+ "description": {
+ "en": "Indicates the location of the current page in relation to its parent in the site structure to reinforce a visitor’s current location in the Canada.ca user navigation model.",
+ "fr": "L’objectif du fil d'Ariane est de renforcer l’emplacement actuel des visiteurs dans le modèle de navigation de l’utilisateur du site Canada.ca."
+ },
+ "modified": "2023-09-06",
+ "componentName": "breadcrumbs",
+ "status": "stable",
+ "pages": {
+ "docs": [
+ {
+ "title": "Breadcrumb trail",
+ "language": "en",
+ "path": "breadcrumbs-en.html"
+ },
+ {
+ "title": "Fil d'Ariane",
+ "language": "fr",
+ "path": "breadcrumbs-fr.html"
+ }
+ ]
+ }
+}
+,{
+ "@context": {
+ "@version": 2.0,
+ "dct": "http://purl.org/dc/terms/",
+ "title": { "@id": "dct:title", "@container": "@language" },
+ "description": { "@id": "dct:description", "@container": "@language" },
+ "modified": "dct:modified"
+ },
+ "title": {
+ "en": "Date modified",
+ "fr": "Date de modification"
+ },
+ "description": {
+ "en": "Indicates the date on which the current page was last modified.",
+ "fr": "Indique la date à laquelle la page courante a été modifiée pour la dernière fois."
+ },
+ "modified": "2023-11-02",
+ "componentName": "date-modified",
+ "status": "stable",
+ "version": "1.0",
+ "pages": {
+ "docs": [
+ {
+ "title": "Date modified",
+ "language": "en",
+ "path": "date-modified-en.html"
+ },
+ {
+ "title": "Date de modification",
+ "language": "fr",
+ "path": "date-modified-fr.html"
+ }
+ ]
+ },
+ "dependencies": [
+ "Page details"
+ ],
+ "a11yGuidance": "no accessibility guidance",
+ "variations": [
+ {
+ "name": {
+ "en": "Date modified - default",
+ "fr": "Date de modification - par défaut"
+ },
+ "status": "stable",
+ "description": {
+ "en": "The date modified component indicates how recently the content of a web page has been updated.",
+ "fr": "La composante de date de modification indique la date de la dernière mise à jour d'une page Web."
+ },
+ "guidance": {
+ "en": "https://design.canada.ca/common-design-patterns/date-modified.html",
+ "fr": "https://conception.canada.ca/configurations-conception-communes/date-modification.html"
+ },
+ "iteration": "_:iteration_dtmd_1",
+ "example": [
+ {
+ "en": { "href": "../../content-page/content-en.html", "text": "Content page (date modified at bottom of page)" },
+ "fr": { "href": "../../content-page/content-fr.html", "text": "Page de contenu (date de modification au bas de la page)" }
+ }
+ ],
+ "implementation": [
+ "_:implement_dtmd"
+ ],
+ "history": [
+ {
+ "en": "June 2014 - Initial implementation of the variation.",
+ "fr": "Juin 2014 - Implémentation initiale de la variante."
+ }
+ ]
+ }
+ ],
+ "implementation": [
+ {
+ "@id": "_:implement_dtmd",
+ "iteration": "_:iteration_dtmd_1",
+ "name": {
+ "en": "Standard",
+ "fr": "Standard"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers/publishers adding the component manually.",
+ "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement."
+ },
+ "instructions": {
+ "en": [
+ "Create a <dl id=\"wb-dtmd\">.",
+ "Inside the above <dl>,
create a <dt>Date modified:</dt>.
create a <dd><time property=\"dateModified\">[YYYY-MM-DD]<time></dd>, where [YYYY-MM-DD] is the date the current page was last updated. For example: 2023-11-03.
"
+ ],
+ "fr": [
+ "Créez un <dl id=\"wb-dtmd\">.",
+ "À l'intérieur de ce <dl>,
créez un <dt>Date de modification :</dt>.
créez un <dd><time property=\"dateModified\">[AAAA-MM-JJ]<time></dd>, où [AAAA-MM-JJ] est la date à laquelle la page courante a été modifiée pour la dernière fois. Par exemple: 2023-11-03.
"
+ },
+ {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Contenu ajouté via Ajax",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "ajax/report-problem-fr.html"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_rap_aa",
+ "iteration": "_:iteration_rap_5",
+ "name": {
+ "en": "Adobe Analytics",
+ "fr": "Adobe Analytics"
+ },
+ "introduction": {
+ "en": "This implementation is meant for analytics analysts trying to add analytics properties to the component.",
+ "fr": "Cette implémentation est destinée aux analystes en analytiques qui veulent ajouter des propriétés analytiques au composant."
+ },
+ "instructions": {
+ "en": [
+ "To implement Adobe Analytics in the Report a problem form, simply add the attribute data-gc-analytics-rap to every checkbox with the value being the same as the current language's <label>, followed by a dash and followed by the other language's <label>."
+ ],
+ "fr": [
+ "Pour implémenter Adobe Analytics dans le formulaire Signaler un problème, ajoutez simplement l'attribut data-gc-analytics-rap à chaque case à cocher avec la valeur étant la même que le <label> de la langue actuelle, suivie d'un tiret et suivi par le <label> de l'autre langue."
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "
"
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_rap_gcweb",
+ "iteration": "_:iteration_rap_5",
+ "name": {
+ "en": "GCWeb Jekyll",
+ "fr": "GCWeb Jekyll"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site.",
+ "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll."
+ },
+ "instructions": {
+ "en": [
+ "In the page's front-matter do the following:
set the variable feedback to true
set the variable feedbackPath to \"ajax/report-problem-en.html\"
set the variable feedbackFallback to true
"
+ ],
+ "fr": [
+ "Dans l'en-tête de la page faites ce qui suit :
définissez la variable feedback à true.
définissez la variable feedbackPath à \"ajax/report-problem-fr.html\"
définissez la variable feedbackFallback à true
"
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-en.html\"\n\t...\n}\n---"
+ }
+ ],
+ "fr": [
+ {
+ "@type": "source-code",
+ "description": "Exemple de code :",
+ "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-fr.html\"\n\t...\n}\n---"
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "Standard (wet-boew)",
+ "fr": "Standard (wet-boew)"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers/publishers adding the component manually while using the latest version of GCWeb along with the implementation of the page details version 3.0 and above.",
+ "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement en utilisant la dernière version de GCWeb avec l'implémentation de la version 3.0 ou plus du détails de la page."
+ },
+ "instructions": {
+ "en": [
+ "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
+ "Ensure the version 3.0 or newer of the page details is implemented.",
+ "To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Optional: data-feedback-theme=\"[Text defining the theme of your page]\"
Optional: data-feedback-section=\"[Text defining the section where your page resides]\"
",
+ "Additionally, your page needs to have the following metadata: <meta name=\"dcterms.creator\" content=\"[Department name]\">"
+ ],
+ "fr": [
+ "Vérifier que la version 13.9.0 ou plus récente de GCWeb est implémentée.",
+ "Vérifier que la version 3.0 ou plus récente du détails de la page est implémentée.",
+ "Pour afficher le formulaire de rétroaction sur la page, créez un <div class=\"wb-disable-allow\"> avec les attributs suivants :
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
+ "De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
+ ]
+ },
+ "notes": {
+ "en": [
+ "To upgrade from the RAP to the PFT, follow the instructions of the \"Upgrade from RAP\" tab.",
+ "For more information about Data Ajax plugin, please visit Data Ajax documentation page."
+ ],
+ "fr": [
+ "Pour passer du SUP au ORP, suivez les instructions de l'onglet \"Mise à jour à partir de SUP\".",
+ "Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax."
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": ""
+ },
+ {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Ajaxed-in content",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "assets/page-feedback-en.html"
+ }
+ }
+ ],
+ "fr": [
+ {
+ "@type": "source-code",
+ "description": "Exemple de code :",
+ "code": ""
+ },
+ {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Contenu ajouté via Ajax",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "assets/page-feedback-fr.html"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft_gcweb",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "GCWeb Jekyll",
+ "fr": "GCWeb Jekyll"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site. To apply this variant's optional attributes on any given page, you will need to do the following in the page's front-matter:",
+ "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll. Pour appliquer les attributs facultatifs de cette variante sur une page donnée, vous devrez procéder comme suit dans le front-matter de la page :"
+ },
+ "instructions": {
+ "en": [
+ "Set the variable feedback to true.",
+ "Set the variable feedbackData to an object containing the following customizable strings:
section: to define the section where your page resides.
theme: to define the theme of your page.
"
+ ],
+ "fr": [
+ "Définissez la variable feedback à true.",
+ "Définissez la variable feedbackData à un objet contenant les chaînes de caractères suivantes :
section: pour définir la section où réside votre page.
theme: pour définir le thème de votre page.
"
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
+ }
+ ],
+ "fr": [
+ {
+ "@type": "source-code",
+ "description": "Exemple de code :",
+ "code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft_upgrade_rap",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "Upgrade from RAP",
+ "fr": "Mise à jour à partir de SUP"
+ },
+ "introduction": {
+ "en": "This implementation is meant for implementers that want to migrate their current page build with RAP towards the new PFT.",
+ "fr": "Cette implémentation est destinée aux implémenteurs qui souhaitent migrer leur page actuelle avec SUP vers le nouvel ORP."
+ },
+ "instructions": {
+ "en": [
+ "Update the page details component to the version 3.0.",
+ "Follow the implementation instructions for the new PFT implementation."
+ ],
+ "fr": [
+ "Mettez à jour le composant détails de page vers la version 3.0.",
+ "Suivez les instructions d'implémentation pour la nouvelle implémentation du ORP."
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft_mws_author",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "MWS users",
+ "fr": "Utilisateur SWG"
+ },
+ "introduction": {
+ "en": "For users that are authoring Web pages on Canada.ca Managed Web Services.",
+ "fr": "Pour les utilisateurs qui font de l'édition de pages Web sur Canada.ca via le Service Web géré."
+ },
+ "instructions": {
+ "en": [
+ "Read the design system guidance before adding the Page feedback tool on your pages.",
+ "If you are configuring the section, please follow the additional design system guidance.",
+ "You can configure the Page feedback tool via the page properties by adjusting the optional configurations (contact info and section). The value for the theme configuration is automatically set by MWS.",
+ "For additional guidance on how to implement the Page feedback tool, you can consult the guide on GCPedia along with the other documentation for MWS."
+ ],
+ "fr": [
+ "Veuillez lire les consignes du système de conception avant d'ajouter l'Outil de rétroaction sur la page à vos pages.",
+ "Si vous configurez la section, veuillez suivre les consignes supplémentaires du système de conception.",
+ "Vous pouvez configurer l'Outil de rétroaction sur la page via les propriétés de la page en ajustant les configurations facultative (informations de contact et section). Les valeurs de la configuration du thème sont automatiquement définies par le SWG.",
+ "Pour des conseils supplémentaires sur la mise en œuvre de l'Outil de rétroaction sur la page, vous pouvez consulter le guide sur GCPedia avec les autres documents du SWG."
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft_contact",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "Standard (WET-BOEW)",
+ "fr": "Standard (WET-BOEW)"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers/publishers adding the component manually while using the latest version of GCWeb along with the implementation of the page details version 3.0 and above.",
+ "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement en utilisant la dernière version de GCWeb avec l'implémentation de la version 3.0 ou plus du détails de la page."
+ },
+ "instructions": {
+ "en": [
+ "Ensure the version 13.9.0 or newer of GCWeb is implemented.",
+ "Ensure the version 3.0 or newer of the page details is implemented.",
+ "To show the page feedback form, create a <div class=\"wb-disable-allow\"> with the following data attributes:
Mandatory: data-feedback-link=\"[Contact link text]\"
Mandatory: data-feedback-url=\"[Contact link URL]\"
Optional: data-feedback-theme=\"[Text defining the theme of your page]\"
Optional: data-feedback-section=\"[Text defining the section where your page resides]\"
",
+ "Additionally, your page needs to have the following metadata: <meta name=\"dcterms.creator\" content=\"[Department name]\">"
+ ],
+ "fr": [
+ "Vérifier que la version 13.9.0 ou plus récente de GCWeb est implémentée.",
+ "Vérifier que la version 3.0 ou plus récente du détails de la page est implémentée.",
+ "Pour afficher le formulaire de rétroaction sur la page, créez un <div class=\"wb-disable-allow\"> avec les attributs suivants :
Obligatoire : data-feedback-link=\"[Contact link text]\"
Obligatoire : data-feedback-url=\"[Contact link URL]\"
Optionnel : data-feedback-theme=\"[Texte définissant le thème de votre page]\"
Optionnel : data-feedback-section=\"[Texte définissant la section où réside votre page]\"
",
+ "De plus, vous pouvez définir les métadonnées suivantes : <meta name=\"dcterms.creator\" content=\"[Department name]\">"
+ ]
+ },
+ "notes": {
+ "en": [
+ "To upgrade from the RAP to the PFT, follow the instructions of the \"Upgrade from RAP\" tab.",
+ "For more information about Data Ajax plugin, please visit Data Ajax documentation page."
+ ],
+ "fr": [
+ "Pour passer du SUP au ORP, suivez les instructions de l'onglet \"Mise à jour à partir de SUP\".",
+ "Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax."
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": ""
+ },
+ {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Ajaxed-in content",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "assets/page-feedback-en.html"
+ }
+ }
+ ],
+ "fr": [
+ {
+ "@type": "source-code",
+ "description": "Exemple de code :",
+ "code": ""
+ },
+ {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Contenu ajouté via Ajax",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "assets/page-feedback-fr.html"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "@id": "_:implement_pft_contact_gcweb",
+ "iteration": "_:iteration_pft_1",
+ "name": {
+ "en": "GCWeb Jekyll",
+ "fr": "GCWeb Jekyll"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers trying to implement this component within a GCWeb Jekyll site. To apply this variant's optional attributes on any given page, you will need to do the following in the page's front-matter:",
+ "fr": "Cette implémentation est destinée aux développeurs essayant d'implémenter ce composant dans un site GCWeb Jekyll. Pour appliquer les attributs facultatifs de cette variante sur une page donnée, vous devrez procéder comme suit dans le front-matter de la page :"
+ },
+ "instructions": {
+ "en": [
+ "Set the variable feedback to true.",
+ "Set the variable feedbackContact to an object containing the following properties:
link: to define the contact link's text.
url: to define the contact link's URL.
",
+ "Optionally, set the variable feedbackData to an object containing the following customizable strings:
section: to define the section where your page resides.
theme: to define the theme of your page.
"
+ ],
+ "fr": [
+ "Définissez la variable feedback à true.",
+ "Définissez la variable feedbackContact à un objet contenant les propriétés :
link: pour définir le texte du lien de contact.
url: pour définir l'URL du lien de contact.
",
+ "Facultativement, définissez la variable feedbackData à un objet contenant les propriétés suivantes :
section: pour définir la section où réside votre page.
theme: pour définir le thème de votre page.
"
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Contact link\",\n\t\t\"url\": \"https://canada.ca/en\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
+ }
+ ],
+ "fr": [
+ {
+ "@type": "source-code",
+ "description": "Exemple de code :",
+ "code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Lien de contact\",\n\t\t\"url\": \"https://canada.ca/fr\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
+ }
+ ]
+ }
+ }
+ ],
+ "changesets": [
+ {
+ "@id": "_:cs_pft_container",
+ "name": "Page feedback tool with AJAX",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_pft_1",
+ "detectableBy": ".pagedetails .wb-disable-allow[data-ajax-replace*=feedback]",
+ "layout": [
+ "At the top-left column in the page details component",
+ "When user selects \"No\", a form with a textarea appears"
+ ],
+ "style": [
+ "Light-gray box with question and two primary buttons",
+ "When user selects \"No\", a form with a textarea replaces the question and primary buttons"
+ ],
+ "include": {
+ "@type": "source-code",
+ "description": "Container calling the RAP form via AJAX",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "includes/feedback.html"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "Display an inline form that replaces the buttons when requested by the user, to collect the feedback"
+ ],
+ "context": "In the page details component, inside the main content of the page",
+ "configuration":[
+ "Mandatory: URL of the file being AJAXed",
+ "Optional: data-feedback-section attribute",
+ "Optional: data-feedback-theme attribute",
+ "Mandaotry for Page feedback tool with contact link variation: data-feedback-link attribute",
+ "Mandaotry for Page feedback tool with contact link variation: data-feedback-url attribute"
+ ],
+ "static": "Not applicable",
+ "schema": [
+ "AjaxLink",
+ "FeedbackSection",
+ "FeedbackTheme",
+ "FeedbackLink",
+ "FeedbackURL"
+ ],
+ "dependency": [
+ "Page details, version 2, incompatible with version 1",
+ "PFT AJAX content as described by the changeset _:cs_pft_ajax"
+ ],
+ "file": "Not applicable"
+ },
+ {
+ "@id": "_:cs_pft_ajax",
+ "name": "Page feedback tool AJAX file",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_pft_1",
+ "dependOnChangeSet": "_:cs_pft_container",
+ "detectableBy": "
",
+ "layout": [
+ "Row - string followed by two primary buttons",
+ "Form appear when \"No\" is selected",
+ "Label",
+ "Hint",
+ "Info text",
+ "Textarea",
+ "Submit button"
+ ],
+ "style": [
+ "Light-gray box with question and two primary buttons",
+ "When user selects \"No\", a form with a textarea replaces the question and primary buttons",
+ "When user submits, a confirmation message is shown on postback"
+ ],
+ "semantic": [
+ "h3",
+ "form > input[type=hidden] + (fieldset > legend + button*3) + p*2 + (details > summary + p) + label + p*2 + textarea + button",
+ "p"
+ ],
+ "include": {
+ "@type": "source-code",
+ "description": "HTML fragment which is inserted into the PFT container",
+ "collapsed": true,
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "assets/page-feedback-en.html"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "When user selects \"No\", a form with a textarea and submit button replaces the question and primary buttons",
+ "When user selects \"Yes\", a success message replaces the question and primary buttons"
+ ],
+ "guidance": "Not applicable",
+ "context": "To be used by PFT",
+ "configuration": "Not applicable",
+ "static": [
+ "Heading 3: Give feedback about this page - Donnez votre rétroaction sur cette page",
+ "Legend: Did you find what you were looking for? - Avez-vous trouvé ce que vous cherchiez?",
+ "Button: Yes - Oui",
+ "Button: No - Non",
+ "Paragraph (basic only): If not, tell us why below - Sinon, dites nous pourquoi ci-dessous",
+ "Paragraph: Tell us why below - Dites nous pourquoi ci-dessous",
+ "Summary (contact link variation only): Need urgent help with a problem? Contact us - Besoin d’aide urgente pour résoudre un problème? Communiquez avec nous",
+ "Label: Please provide more details - Veuillez fournir plus de détails",
+ "Small note: You will not receive a reply. Don't include personal information (telephone, email, SIN, financial, medical, or work details). - Vous ne recevrez pas de réponse. N'incluez pas de renseignements personnels (téléphone, courriel, NAS, renseignements financiers, médicaux ou professionnels).",
+ "Instruction paragraph: Maximum 300 characters - Maximum de 300 caractères",
+ "Button: Submit - Soumettre",
+ "Success message: Thank you for your feedback. - Merci de vos commentaires."
+ ],
+ "schema": "Not applicable",
+ "dependency": [
+ "Page details, version 2, incompatible with version 1"
+ ],
+ "file": "Not applicable, this HTML fragment content is intended to be integrated by a location that fits the content management system"
+ },
+ {
+ "@id": "_:cs_rap_ajax_2",
+ "name": "Report a problem AJAX file Data-JSON",
+ "status": "deprecated",
+ "schema:expires": "2024-12",
+ "baseOnIteration": "_:iteration_rap_5",
+ "dependOnChangeSet": "_:cs_rap_container",
+ "detectableBy": "Hidden inputs genereted via Data-JSON and \"subject\" and \"externalReferer\" are static",
+ "layout": [
+ "Full width button",
+ "When expanded, a vertical form is shown"
+ ],
+ "style": [
+ "The expandable Button is rendered as the default button preceded by an arrow",
+ "Gray background for the form area",
+ "Primary styled button for form submission"
+ ],
+ "include": {
+ "@type": "source-code",
+ "description": "HTML fragment which is inserted into the RAP container",
+ "collapsed": true,
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "ajax/deprecated/report-problem-v1-en.html"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "Button that show/hide the RAP form",
+ "Success message showed on success or failure"
+ ],
+ "guidance": [
+ "Canada.ca: show the feedback form underneath the RAP button"
+ ],
+ "context": "To be used by RAP",
+ "configuration":[
+ "Form submission URL"
+ ],
+ "static": [
+ "Button text - RAP-title - \"Report a problem on this page\" - \"Signaler un problème ou une erreur sur cette page\"",
+ "Hidden inputs \"subject\" and \"externalReferer\"",
+ "Text in the
",
+ "Problem 1",
+ "Problem 2",
+ "Problem 3",
+ "Problem 4",
+ "Problem 5",
+ "Problem 11",
+ "Problem 12",
+ "Submit button",
+ "Success message",
+ "Failure message"
+ ],
+ "schema": [
+ "Form submission URL"
+ ],
+ "dependency": [
+ "Page details, version 2, incompatible with version 1"
+ ],
+ "file": "Not applicable, this HTML fragment content is intended to be integrated by a location that fits the content management system"
+ },
+ {
+ "@id": "_:cs_rap_container",
+ "name": "Report a problem with AJAX",
+ "status": "deprecated",
+ "schema:expires": "2024-12",
+ "baseOnIteration": "_:iteration_rap_5",
+ "detectableBy": "The RAP web form is inserted via ajax",
+ "layout": [
+ "At the top-left column in the page details component",
+ "When expanded, a vertical form is shown in-place"
+ ],
+ "style": [
+ "It is visually rendered as a default button",
+ "Only have an arrow when the online form is available directly on the page"
+ ],
+ "include": {
+ "@type": "source-code",
+ "description": "Container calling the RAP form via AJAX",
+ "code": {
+ "@type": [ "rdf:HTML" ],
+ "@value": "
\n"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "Non-Canada.ca implementation: redirect to a web page with a form to collect the feedback",
+ "Canada.ca implementation: show an inline form underneath the button when requested by the user, to collect the feedback",
+ "Basic mode Canada.ca implementation: show the fallback button"
+ ],
+ "guidance": [
+ "Canada.ca: show the feedback form underneath the RAP button",
+ "Non Canada.ca: redirect the user on a page to collect the feedback."
+ ],
+ "context": "In the page details component, inside the main content of the page",
+ "configuration":[
+ "URL of the file being AJAXed",
+ "URL of the RAP fallback link"
+ ],
+ "static": [
+ "Button text - RAP-title - \"Report a problem on this page\" - \"Signaler un problème ou une erreur sur cette page\""
+ ],
+ "schema": [
+ "AjaxLink",
+ "StaticRapLink"
+ ],
+ "dependency": [
+ "Page details, version 2, incompatible with version 1",
+ "RAP AJAX content as described by the changeset _:cs_rap_ajax",
+ "RAP AJAX content as described by the changeset _:cs_rap_ajax_2"
+ ],
+ "file": "Not applicable"
+ },
+ {
+ "@id": "_:cs_rap_ajax",
+ "name": "Report a problem AJAX file",
+ "status": "deprecated",
+ "schema:expires": "2024-12",
+ "baseOnIteration": "_:iteration_rap_2",
+ "dependOnChangeSet": "_:cs_rap_container",
+ "detectableBy": "HTML fragment that starts with a \"row row-no-gutters\", containing a form and a wrapper \"div.gc-rprt-prlm\"",
+ "layout": [
+ "Full width button",
+ "When expanded, a vertical form is shown"
+ ],
+ "style": [
+ "The expandable Button is rendered as the default button preceded by an arrow",
+ "Gray background for the form area",
+ "Primary styled button for form submission"
+ ],
+ "include": {
+ "@type": "source-code",
+ "description": "HTML fragment which is inserted into the RAP container",
+ "collapsed": true,
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "ajax/deprecated/report-problem-v1-en.html"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "Button that show/hide the RAP form",
+ "Success message showed on success or failure"
+ ],
+ "guidance": [
+ "Canada.ca: show the feedback form underneath the RAP button"
+ ],
+ "context": "To be used by RAP",
+ "configuration":[
+ "Form submission URL"
+ ],
+ "static": [
+ "Button text - RAP-title - \"Report a problem on this page\" - \"Signaler un problème ou une erreur sur cette page\"",
+ "Text in the
",
+ "Problem 1",
+ "Problem 2",
+ "Problem 3",
+ "Problem 4",
+ "Problem 5",
+ "Problem 6",
+ "Problem 7",
+ "Problem 8",
+ "Problem 9",
+ "Problem 10",
+ "Problem 11",
+ "Problem 12",
+ "Submit button",
+ "Success message",
+ "Failure message"
+ ],
+ "schema": [
+ "Form submission URL"
+ ],
+ "dependency": [
+ "Page details, version 2, incompatible with version 1"
+ ],
+ "file": "Not applicable, this HTML fragment content is intended to be integrated by a location that fits the content management system"
+ },
+ {
+ "@id": "_:cs_rap_inline",
+ "name": "Report a problem inline",
+ "status": "deprecated",
+ "schema:expires": "2024-12",
+ "baseOnIteration": "_:iteration_rap_1",
+ "detectableBy": "The RAP web form is hardcoded in each page and the form inputs are server-side personalized/configured.",
+ "layout": [
+ "At the top-left column in the page details component",
+ "When expanded, a vertical form is shown in-place"
+ ],
+ "style": [
+ "It is visually rendered as a default button",
+ "Only have an arrow when the online form is available directly on the page"
+ ],
+ "include": {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Include with logic in Handlebars that supports all variations of this changeset. The list of questions is in scope.",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "deprecated/report-problem-inline-en.html"
+ }
+ },
+ "logic": "Not applicable",
+ "behaviour": [
+ "Non-Canada.ca implementation - Redirect to a web page with a form to collect the feedback",
+ "Canada.ca implementation - Show an inline form underneath the button, when requested by the user, to collect the feedback"
+ ],
+ "guidance": [
+ "Canada.ca - Show the feedback form under the RAP button",
+ "Non Canada.ca - Redirect the user on a page to collect the feedback."
+ ],
+ "context": "In the page details component, inside the main content of the page",
+ "configuration":[
+ "Form submission URL",
+ "Basic mode: URL of the feedback button"
+ ],
+ "static": [
+ "Button text - RAP-title - 'Report a problem on this page' - 'Signaler un problème ou une erreur sur cette page'",
+ "Text in the
"
+ }
+ ]
+ }
+ }
+ ],
+ "changeset": [
+ {
+ "@id": "_:cs_mpt",
+ "name": {
+ "en": "Default h1",
+ "fr": "H1 par default"
+ },
+ "baseOnIteration": "_:iteration_mpt_2",
+ "detectableBy": "Visual inspection can be used to detect the size of the line. The width of the line should be 71px (3.55em) long and the thickness should be 3.6px (0.18em), with the color #af3c43.",
+ "layout": "The line is positioned below the text.",
+ "semantic": {
+ "@type": "h1",
+ "description": "Level 1 heading",
+ "code": {
+ "@type": [
+ "@id",
+ "rdf:HTML"
+ ],
+ "@value": "includes/main-page-title.html"
+ }
+ },
+ "static": "none",
+ "schema": "dct:title",
+ "include": {
+ "@type": "source-code",
+ "collapsed": true,
+ "description": "Include with logic in Liquid.",
+ "code": {
+ "@type": [ "@id", "rdf:HTML" ],
+ "@value": "includes/main-page-title.html"
+ }
+ },
+ "style": "The line has a width of 3.55em (71px) and a thickness of 0.18em (3.6px) with the color #af3c43. Optionally, include a byline, tagline, or subtitle.",
+ "logic": "none",
+ "behaviour": "none",
+ "perceptible": "The thin hairline has been replaced with a shorter and thicker line.",
+ "guidance": "https://design.canada.ca/styles/typography.html",
+ "context": "First semantic element inside the main",
+ "configuration": "none",
+ "dependency": "none",
+ "file": "none"
+ }
+ ],
+ "iteration": [
+ {
+ "@id": "_:iteration_mpt_1",
+ "name": "Visual update 2019",
+ "date": "2019-06",
+ "detectableBy": "Visual inspection can be used to detect the size of the line. The width of the line should be the width of the main container long and the thickness should be 1px, with the color #af3c43.",
+ "successor": "_:iteration_mpt_2"
+ },
+ {
+ "@id": "_:iteration_mpt_2",
+ "name": "Visual update 2024",
+ "date": "2024-01",
+ "detectableBy": "Visual inspection can be used to detect the size of the line. The width of the line should be 71px (3.55em) long and the thickness should be 3.6px (0.18em), with the color #af3c43.",
+ "breaking": {
+ "style": "Width of the line should 70px and the thickness .18em #af3c43. Followed by optional byline, tagline or subtitle"
+ },
+ "predecessor": "_:iteration_mpt_1"
+ }
+ ]
+}
+,{
+ "@context": {
+ "@version": 2.0,
+ "dct": "http://purl.org/dc/terms/",
+ "title": { "@id": "dct:title", "@container": "@language" },
+ "description": { "@id": "dct:description", "@container": "@language" },
+ "modified": "dct:modified"
+ },
+ "title": {
+ "en": "Page details",
+ "fr": "Détails de la page"
+ },
+ "description": {
+ "en": "Documentation on how to use the page details section.",
+ "fr": "Documentation sur l'utilisation de la section des détails de la page."
+ },
+ "version": "3.0",
+ "modified": "2022-04-11",
+ "componentName": "page-details",
+ "componentType": "container",
+ "status": "stable",
+ "pages": {
+ "docs": [
+ {
+ "title": "Documentation for Page details",
+ "language": "en",
+ "path": "page-details-docs-en.html"
+ },
+ {
+ "title": "Documentation pour Détails de la page",
+ "language": "fr",
+ "path": "page-details-docs-fr.html"
+ }
+ ],
+ "examples": [
+ {
+ "title": "Default Page details",
+ "language": "en",
+ "path": "page-details-default-en.html"
+ },
+ {
+ "title": "Détails de la page par défaut",
+ "language": "fr",
+ "path": "page-details-default-fr.html"
+ },
+ {
+ "title": "Page details with Page feedback tool",
+ "language": "en",
+ "path": "page-details-pft-en.html"
+ },
+ {
+ "title": "Détails de la page avec Outil de rétroaction sur la page",
+ "language": "fr",
+ "path": "page-details-pft-fr.html"
+ },
+ {
+ "title": "Page details with Share this page",
+ "language": "en",
+ "path": "page-details-share-en.html"
+ },
+ {
+ "title": "Détails de la page avec Partagez cette page",
+ "language": "fr",
+ "path": "page-details-share-fr.html"
+ },
+ {
+ "title": "Page details with Page feedback tool and Share this page",
+ "language": "en",
+ "path": "page-details-pft-share-en.html"
+ },
+ {
+ "title": "Détails de la page avec Outil de rétroaction sur la page et Partagez cette page",
+ "language": "fr",
+ "path": "page-details-pft-share-fr.html"
+ }
+ ]
+ },
+ "dependencies": [
+ "Page feedback area",
+ "Share this page",
+ "Date modified"
+ ],
+ "a11yGuidance": "no accessibility guidance",
+ "variations": [
+ {
+ "name": {
+ "en": "Page details",
+ "fr": "Détails de la page"
+ },
+ "status": "stable",
+ "description": {
+ "en": "This component may contain the following components: Page feedback tool, Share this page, and Date modified.",
+ "fr": "Ce composant peut contenir les composants suivants : Outil de rétroaction sur la page, Partager cette page et Date de modification."
+ },
+ "iteration": "_:iteration_pd_3",
+ "example": [
+ {
+ "en": { "href": "page-details-default-en.html", "text": "Default Page details" },
+ "fr": { "href": "page-details-default-fr.html", "text": "Détails de la page par défaut" }
+ },
+ {
+ "en": { "href": "page-details-pft-en.html", "text": "Page details with Page feedback tool" },
+ "fr": { "href": "page-details-pft-fr.html", "text": "Détails de la page avec Outil de rétroaction sur la page" }
+ },
+ {
+ "en": { "href": "page-details-share-en.html", "text": "Page details with Share this page" },
+ "fr": { "href": "page-details-share-fr.html", "text": "Détails de la page avec Partagez cette page" }
+ },
+ {
+ "en": { "href": "page-details-pft-share-en.html", "text": "Page details with Page feedback tool and Share this page" },
+ "fr": { "href": "page-details-pft-share-fr.html", "text": "Détails de la page avec Outil de rétroaction sur la page et Partagez cette page" }
+ }
+ ],
+ "implementation": [
+ "_:implement_pd",
+ "_:implement_pd_gcweb"
+ ],
+ "history": [
+ {
+ "en": "March 2023 - Tag
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+
+
There is no accessibility guidance defined.
+
+
+
Variations
+
+
The following coded example is the default layout. It must include mandate and transparency links.
About the institution is a mandatory pattern on an institutional landing page. It must include mandate and transparency links.
-
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
-
The following coded example is the default layout. It must include mandate and transparency links.
+
There is no accessibility guidance defined.
+
Variations
+
The following coded example is the default layout. It must include mandate and transparency links.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
-
There is no accessibility guidance defined.
+
There is no accessibility guidance defined.
-
Variations
+
Variations
-
The following coded example is the default layout. It must include mandate and transparency links.
+
The following coded example is the default layout. It must include mandate and transparency links.
- <section class="col-md-8 pull-left bold">
+ <section class="col-md-8 bold-content">
<h2 class="h3 mrgn-tp-md">About the [Institution]</h2>
<ul class="list-unstyled mrgn-tp-lg lst-spcd-2 colcount-md-2">
<li><a href="#">Mandate</a></li>
diff --git a/design-patterns/gc-institution/gc-institution-fr.html b/design-patterns/gc-institution/gc-institution-fr.html
index 208628dd2a..c8bfa4e432 100644
--- a/design-patterns/gc-institution/gc-institution-fr.html
+++ b/design-patterns/gc-institution/gc-institution-fr.html
@@ -1,82 +1,90 @@
---
-breadcrumbs: [
- { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/accueil.html" }
-]
-dateModified: "2021-05-21"
-description: "Documentation et exemple pratique de en demande- fonctionnalité provisoire"
-language: "fr"
-altLangPage: "gc-most-requested-en.html"
-title: "En demande - fonctionnalité provisoire"
+title: À propos de l’institution
+description: Documentation and working example for the about the institution pattern
+language: fr
+altLangPage: gc-institution-en.html
+dateModified: 2023-08-09
+layout: no-container
---
-{% include alert-provisional.html siteroot="../../" %}
+
+
{{ page.title }}
-
+
+
La configuration de conception « À propos de l’institution » consiste en une section sur une page d’accueil institutionnelle qui fournit des liens vers des renseignements organisationnels et sur l’élaboration de programmes et de politiques.
Ceci ajoute une section en vedette qui comprend des tâches principales liées à la page sur laquelle elles se trouvent.
+
Before you start
+
« À propos de l’institution » est un modèle obligatoire sur une page d’accueil institutionnelle. Il doit inclure des liens vers le mandat et la transparence.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+
+
There is no accessibility guidance defined.
+
+
Variations
+
+
The following coded example is the default layout. It must include mandate and transparency links.
Il n'y a pas d'évaluation et de rapport disponibles pour ce composant.
+
Technical documentation
+
+
Status:
+
stable
+
+
diff --git a/design-patterns/gc-institution/index.json-ld b/design-patterns/gc-institution/index.json-ld
index 85595121ca..d78704f2c2 100644
--- a/design-patterns/gc-institution/index.json-ld
+++ b/design-patterns/gc-institution/index.json-ld
@@ -8,7 +8,7 @@
},
"title": {
"en": "About the institution pattern - Documentation and working example",
- "fr": "X - Documentation et example pratique"
+ "fr": "À propos de l’institution - Documentation et example pratique"
},
"description": {
"en": "Section on an institutional landing page that provides links to corporate, program and policy information",
From d54e1bd3bf2802998cea5d94b71f8df01c8012c1 Mon Sep 17 00:00:00 2001
From: Jennifer Mealing
Date: Thu, 11 Jan 2024 15:02:09 -0500
Subject: [PATCH 043/161] Update gc-institution-fr.html
---
.../gc-institution/gc-institution-fr.html | 31 +++++++++----------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/design-patterns/gc-institution/gc-institution-fr.html b/design-patterns/gc-institution/gc-institution-fr.html
index c8bfa4e432..1732865ffb 100644
--- a/design-patterns/gc-institution/gc-institution-fr.html
+++ b/design-patterns/gc-institution/gc-institution-fr.html
@@ -1,6 +1,6 @@
---
title: À propos de l’institution
-description: Documentation and working example for the about the institution pattern
+description: Documentation et exemple pratique pour la configuration « Institution »
language: fr
altLangPage: gc-institution-en.html
dateModified: 2023-08-09
@@ -14,32 +14,31 @@
« À propos de l’institution » est un modèle obligatoire sur une page d’accueil institutionnelle. Il doit inclure des liens vers le mandat et la transparence.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+
Liste des directives d’accessibilité à respecter pour veiller à ce que le composant soit utilisé dans le respect des directives d’accessibilité et de la norme EN 301 549 (y compris la norme WCAG 2.1, niveau AA).
-
There is no accessibility guidance defined.
+
Il n’y a pas de directives définies en matière d’accessibilité.
Variations
-
The following coded example is the default layout. It must include mandate and transparency links.
+
L’exemple codé ci-après constitue l’affichage par défaut. Il doit inclure le mandat et des liens en matière de transparence.
-
About the institution pattern
+
Au sujet de la configuration « Institution« »
À propos de [Institution]
@@ -78,13 +77,13 @@
Code
Évaluation et rapport
-
There is no accessibility report.
+
Il n’y a pas de rapport d’accessibilité.
-
There is no accessibility conformance report.
+
Il n’y a pas de rapport de conformité en matière d’accessibilité.
-
Technical documentation
+
Documentation technique
-
Status:
+
Statut:
stable
From 3e12ab721bcdd15e634115e57e0610f0b178de34 Mon Sep 17 00:00:00 2001
From: Jennifer Mealing
Date: Thu, 11 Jan 2024 15:04:00 -0500
Subject: [PATCH 044/161] add french, dates
---
design-patterns/gc-institution/gc-institution-en.html | 2 +-
design-patterns/gc-institution/gc-institution-fr.html | 2 +-
design-patterns/gc-institution/index.json-ld | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/design-patterns/gc-institution/gc-institution-en.html b/design-patterns/gc-institution/gc-institution-en.html
index b70ae4afca..3a511fc3d0 100644
--- a/design-patterns/gc-institution/gc-institution-en.html
+++ b/design-patterns/gc-institution/gc-institution-en.html
@@ -3,7 +3,7 @@
description: Documentation and working example for the about the institution pattern
language: en
altLangPage: gc-institution-fr.html
-dateModified: 2023-08-09
+dateModified: 2024-01-11
layout: no-container
---
diff --git a/design-patterns/gc-institution/gc-institution-fr.html b/design-patterns/gc-institution/gc-institution-fr.html
index 1732865ffb..1a530c4cb4 100644
--- a/design-patterns/gc-institution/gc-institution-fr.html
+++ b/design-patterns/gc-institution/gc-institution-fr.html
@@ -3,7 +3,7 @@
description: Documentation et exemple pratique pour la configuration « Institution »
language: fr
altLangPage: gc-institution-en.html
-dateModified: 2023-08-09
+dateModified: 2024-01-11
layout: no-container
---
diff --git a/design-patterns/gc-institution/index.json-ld b/design-patterns/gc-institution/index.json-ld
index d78704f2c2..459138bf18 100644
--- a/design-patterns/gc-institution/index.json-ld
+++ b/design-patterns/gc-institution/index.json-ld
@@ -12,9 +12,9 @@
},
"description": {
"en": "Section on an institutional landing page that provides links to corporate, program and policy information",
- "fr": "X."
+ "fr": "Section d’une page d’accueil institutionnelle offrant des liens vers des renseignements relatifs à un organisme, à un programme ou à une politique en particulier."
},
- "modified": "2023-08-16",
+ "modified": "2024-01-11",
"componentName": "gc-institution",
"status": "stable",
"pages": {
@@ -27,7 +27,7 @@
{
"title": "À propos de l'institution - Documentation et exemple pratique",
"language": "fr",
- "path": "gc-most-institution-fr.html"
+ "path": "gc-institution-fr.html"
}
]
}
From 4dc9738f248441955f42d873b9cd3b65b895d545 Mon Sep 17 00:00:00 2001
From: Jennifer Mealing
Date: Thu, 11 Jan 2024 15:04:49 -0500
Subject: [PATCH 045/161] Update gc-institution-fr.html
---
design-patterns/gc-institution/gc-institution-fr.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/design-patterns/gc-institution/gc-institution-fr.html b/design-patterns/gc-institution/gc-institution-fr.html
index 1a530c4cb4..55938bdf1b 100644
--- a/design-patterns/gc-institution/gc-institution-fr.html
+++ b/design-patterns/gc-institution/gc-institution-fr.html
@@ -10,7 +10,7 @@
{{ page.title }}
-
La configuration de conception « À propos de l’institution » consiste en une section sur une page d’accueil institutionnelle qui fournit des liens vers des renseignements organisationnels et sur l’élaboration de programmes et de politiques.
+
La configuration de conception « À propos de l’institution » consiste en une section sur une page d’accueil institutionnelle qui fournit des liens vers des renseignements organisationnels et sur l’élaboration de programmes et de politiques.
Sur cette page
@@ -22,7 +22,7 @@
Sur cette page
Avant de commencer
-
« À propos de l’institution » est un modèle obligatoire sur une page d’accueil institutionnelle. Il doit inclure des liens vers le mandat et la transparence.
+
« À propos de l’institution » est un modèle obligatoire sur une page d’accueil institutionnelle. Il doit inclure des liens vers le mandat et la transparence.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
-
-
There is no accessibility guidance defined.
-
-
Variations
-
-
The following coded example is the default layout. It must include mandate and transparency links.
diff --git a/design-patterns/gc-institution/gc-institution-fr.html b/design-patterns/gc-institution/gc-institution-fr.html
index 55938bdf1b..65a33af31e 100644
--- a/design-patterns/gc-institution/gc-institution-fr.html
+++ b/design-patterns/gc-institution/gc-institution-fr.html
@@ -1,89 +1,50 @@
---
-title: À propos de l’institution
-description: Documentation et exemple pratique pour la configuration « Institution »
-language: fr
-altLangPage: gc-institution-en.html
-dateModified: 2024-01-11
-layout: no-container
+{
+ "title": "À propos de l'institution",
+ "description": "Exemple pratique pour la configuration de conception « À propos de l'institution »",
+ "language": "fr",
+ "altLangPage": "gc-institution-en.html",
+ "breadcrumbs": [
+ { "title": "À propos de l'institution", "link": "design-patterns/gc-institution/gc-institution-doc-fr.html" }
+ ],
+ "dateModified": "2024-03-07",
+ "pageclass": "wb-prettify all-pre"
+}
---
-
-
{{ page.title }}
-
-
La configuration de conception « À propos de l’institution » consiste en une section sur une page d’accueil institutionnelle qui fournit des liens vers des renseignements organisationnels et sur l’élaboration de programmes et de politiques.
« À propos de l’institution » est un modèle obligatoire sur une page d’accueil institutionnelle. Il doit inclure des liens vers le mandat et la transparence.
Liste des directives d’accessibilité à respecter pour veiller à ce que le composant soit utilisé dans le respect des directives d’accessibilité et de la norme EN 301 549 (y compris la norme WCAG 2.1, niveau AA).
-
-
Il n’y a pas de directives définies en matière d’accessibilité.
-
-
Variations
-
-
L’exemple codé ci-après constitue l’affichage par défaut. Il doit inclure le mandat et des liens en matière de transparence.
\n"
+ }
+ ]
+ }
+ ],
+ "changesets": [
+ {
+ "@id": "_:cs_institution",
+ "name": "About the institution",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_institution_1",
+ "detectableBy": ".bold-content .list-unstyled.mrgn-tp-lg.lst-spcd-2.colcount-md-2",
+ "layout": "On medium screens and larger, the links are laid out in two columns.",
+ "semantic": "h2.h3 + ul.colcount-md-2 > li > a",
+ "static": [
+ "About",
+ "À propos de",
+ "More:",
+ "En savoir plus :"
+ ],
+ "schema": [
+ "Links text",
+ "Links url"
+ ]
+ }
+ ]
}
From 4cdcda5ec514073848b8ae3fc7e7d87992122bf7 Mon Sep 17 00:00:00 2001
From: Eric Dunsworth <1907279+EricDunsworth@users.noreply.github.com>
Date: Mon, 11 Mar 2024 11:30:05 -0400
Subject: [PATCH 047/161] Field flow: Trim auto-generated labels/values
Leading/Trailing spaces are usually undesirable, so let's strip them out.
Doesn't affect labels that are explicitly-declared via the "wb-fieldflow-label" class. Those will be kept as-is so as not to interfere with an implementer's desire.
Affects grouping and nesting scenarios. Directly impacts the demo page's nesting example.
Spinoff of #2291.
---
components/wb-fieldflow/fieldflow.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/wb-fieldflow/fieldflow.js b/components/wb-fieldflow/fieldflow.js
index 26dbf1a6ae..a0676bcb51 100644
--- a/components/wb-fieldflow/fieldflow.js
+++ b/components/wb-fieldflow/fieldflow.js
@@ -786,7 +786,7 @@ var componentName = "wb-fieldflow",
// Is firstNode an anchor?
if ( firstNode.nodeName === "A" ) {
itmValue = firstNode.getAttribute( "href" );
- itmLabel = $( firstNode ).html();
+ itmLabel = $( firstNode ).html().trim();
j_len = 1; // Force following elements to be ignored
actions.push( {
@@ -834,7 +834,7 @@ var componentName = "wb-fieldflow",
// Remove nested structure in grouping (ul) and nesting (.wb-fieldflow-sub) scenarios
$itmCachedClean.children( "ul, .wb-fieldflow-sub" ).remove();
- itmLabel = $itmCachedClean.html();
+ itmLabel = $itmCachedClean.html().trim();
}
// Set an id on the element
From 7baa2a9d1e69c3a74402fb7275af2addc35a83e8 Mon Sep 17 00:00:00 2001
From: Jennifer Mealing
Date: Mon, 22 Jan 2024 15:58:04 -0500
Subject: [PATCH 048/161] gc- minister PR
Update gc-ministers-en.html
edits
update based on new header documentation
Update gc-ministers-en.html
move to design pattern folder
fix indents?
Delete _base.scss
add img
Update index.json-ld
insert available translation
link
---
_data/components.json | 34 +++++
.../gc-ministers/gc-ministers-en.html | 131 +++++++++++++++++
.../gc-ministers/gc-ministers-fr.html | 132 ++++++++++++++++++
.../gc-ministers/img/minister-200x250.jpg | Bin 0 -> 17891 bytes
design-patterns/gc-ministers/index.json-ld | 34 +++++
5 files changed, 331 insertions(+)
create mode 100644 design-patterns/gc-ministers/gc-ministers-en.html
create mode 100644 design-patterns/gc-ministers/gc-ministers-fr.html
create mode 100644 design-patterns/gc-ministers/img/minister-200x250.jpg
create mode 100644 design-patterns/gc-ministers/index.json-ld
diff --git a/_data/components.json b/_data/components.json
index 8dae1d5d1f..4ee76e1c1a 100644
--- a/_data/components.json
+++ b/_data/components.json
@@ -703,6 +703,40 @@
}
]
}
+,{
+ "@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": "Minister profile - Documentation and working example",
+ "fr": "x - Documentation et example pratique"
+ },
+ "description": {
+ "en": "This component is for the minister profile images on the institutional landing page.",
+ "fr": "X."
+ },
+ "modified": "2023-08-08",
+ "componentName": "gc-ministers",
+ "status": "provisional",
+ "pages": {
+ "examples": [
+ {
+ "title": "Minister profile - Documentation and working example",
+ "language": "en",
+ "path": "gc-ministers.html"
+ },
+ {
+ "title": "x - Documentation et example pratique",
+ "language": "fr",
+ "path": "gc-ministers.html"
+ }
+ ]
+ }
+}
,{
"@context": {
"@version": 1.1,
diff --git a/design-patterns/gc-ministers/gc-ministers-en.html b/design-patterns/gc-ministers/gc-ministers-en.html
new file mode 100644
index 0000000000..ff2f4df4e7
--- /dev/null
+++ b/design-patterns/gc-ministers/gc-ministers-en.html
@@ -0,0 +1,131 @@
+---
+title: Minister or institutional head pattern
+description: Documentation and working example for the minister or institutional head pattern
+language: en
+altLangPage: gc-ministers-fr.html
+dateModified: 2024-01-29
+layout: no-container
+---
+
+
{{ page.title }}
+
+
The Minister or institutional head pattern identifies the relevant Minister(s) or head(s) for a department, agency or organization. It provides links to the official bio for an institution’s minister(s), associate minister(s), or institutional head, and may also include a headshot or links to mandate letters and briefing materials.
The Minister or institutional head pattern is mandatory on an institutional landing page. Consult the Canada.ca Design system guidance for using this component.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+
There is no accessibility guidance defined.
+
Variations
+
The following coded example is the default layout. When you are implementing your instance, you can omit any of the following:
diff --git a/design-patterns/gc-ministers/gc-ministers-fr.html b/design-patterns/gc-ministers/gc-ministers-fr.html
new file mode 100644
index 0000000000..a65d53c6ef
--- /dev/null
+++ b/design-patterns/gc-ministers/gc-ministers-fr.html
@@ -0,0 +1,132 @@
+---
+title: Ministre ou chef d’institution
+description: Documentation and working example for the minister or institutional head pattern
+language: en
+altLangPage: gc-ministers-en.html
+dateModified: 2024-01-29
+layout: no-container
+---
+
+
{{ page.title }}
+
+
La configuration de conception d’un ministre ou d’un chef d’institution indique le(s) ministre(s) ou chef(s) d’institution concernés d’un ministère, d’un organisme ou d’une organisation. Elle fournit des liens vers la biographie officielle du ou des ministres, ministres associés ou chefs d’institution, et elle peut également inclure un portrait ou des liens vers des lettres de mandat et des documents d’information.
La configuration de conception d’un ministre ou d’un chef d’institution est obligatoire sur les pages d’accueil institutionnelles. Consult the Canada.ca Design system guidance for using this component.
Liste des directives d’accessibilité à respecter pour veiller à ce que le composant soit utilisé dans le respect des directives d’accessibilité et de la norme EN 301 549 (y compris la norme WCAG 2.1, niveau AA).
+
Il n’y a pas de directives définies en matière d’accessibilité.
+
Variations
+
L'exemple codé suivant est la présentation par défaut. Lorsque vous mettez en œuvre votre instance, vous pouvez omettre les éléments suivants :
+
+
Image
+
Lettre de mandat
+
Dossier d’information
+
+
Ministre ou chef d’institution
+
Ministre(s)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Code
+
+ <h2 class="h3 mrgn-tp-md">Ministre(s)</h2>
+ <div class="row mrgn-bttm-lg wb-eqht-grd">
+ <div class="col-md-6">
+ <div class="row">
+ <figure>
+ <figcaption class="pull-right col-md-7 col-xs-12 mrgn-tp-md bold"><a href="">L’honorable [nom de la ministre]</a>
+ </figcaption>
+ <div class="col-md-5 col-xs-12">
+ <img src="./img/minister-200x250.jpg" alt="" class="img-responsive thumbnail mrgn-bttm-sm">
+ </div>
+ <div class="col-md-7 col-xs-12 ln-hght mrgn-tp-md">
+ <p class="ln-hght"><small>[Titre officiel]</small></p>
+ <ul>
+ <li><small><a href="">Élément de liste : Lettre de mandat<span class="wb-inv">: [Nom de la ministre]</span></a></small>
+ </li>
+ <li><small><a href="">Élément de liste : Dossier d’information<span class="wb-inv">: [Nom de la ministre]</span></a></small>
+ </li>
+ </ul>
+ </div>
+ </figure>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <div class="row">
+ <figure>
+ <figcaption class="pull-right col-md-7 col-xs-12 mrgn-tp-md bold"><a href="">L’honorable [Nom de la ministre]</a>
+ </figcaption>
+ <div class="col-md-5 col-xs-12">
+ <img src="./img/minister-200x250.jpg" alt="" class="img-responsive thumbnail mrgn-bttm-sm">
+ </div>
+ <div class="col-md-7 col-xs-12 ln-hght mrgn-tp-md">
+ <p class="ln-hght"><small>[Titre officiel]</small></p>
+ <ul>
+ <li><small><a href="">Élément de liste : Lettre de mandat [facultatif]<span class="wb-inv">: [Nom de la ministre]</span></a></small>
+ </li>
+ </ul>
+ </div>
+ </figure>
+ </div>
+ </div>
+ </div>
+
+
+
Evaluation and report
+
Il n’y a pas de rapport d’accessibilité.
+
Il n’y a pas de rapport de conformité en matière d’accessibilité.
<section class="ministers">
+ <h2>Ministre(s)</h2>
+ <div class="row wb-eqht-grd">
+ <div class="col-md-6">
+ <div class="row">
+ <div class="pull-right col-md-7 col-xs-12">
+ <h3><a href="#">L'honorable [prénom et nom de famille très long 1]</a></h3>
+ </div>
+ <div class="col-md-5 col-xs-12">
+ <img src="./img/minister-200x250.jpg" alt="L'honorable [prénom et nom de famille très long 1]">
+ </div>
+ <div class="col-md-7 col-xs-12">
+ <p>[Titre officiel du ministre]</p>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <div class="row">
+ <div class="pull-right col-md-7 col-xs-12">
+ <h3><a href="#">L'honorable [prénom et nom de famille 2]</a></h3>
+ </div>
+ <div class="col-md-5 col-xs-12">
+ <img src="./img/minister-200x250.jpg" alt="L'honorable [prénom et nom de famille 2]">
+ </div>
+ <div class="col-md-7 col-xs-12">
+ <p>[Titre officiel du ministre]</p>
+ <ul>
+ <li><a href="">Lettre de mandat [facultatif]</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <h3><a href="#">L'honorable [prénom et nom de famille très long 3]</a></h3>
+ <p>[Titre officiel du ministre]</p>
+ <ul>
+ <li><a href="">Lettre de mandat [facultatif]</a></li>
+ <li><a href="">Dossier d'information [facultatif]</a></li>
+ </ul>
+ </div>
+ <div class="col-md-6">
+ <h3><a href="#">L'honorable [prénom et nom de famille très long 4]</a></h3>
+ <p>[Titre officiel du ministre]</p>
+ </div>
+ </div>
+</section>
+
diff --git a/design-patterns/gc-ministers/img/minister-200x250.jpg b/components/gc-ministers/img/minister-200x250.jpg
similarity index 100%
rename from design-patterns/gc-ministers/img/minister-200x250.jpg
rename to components/gc-ministers/img/minister-200x250.jpg
diff --git a/components/gc-ministers/index.json-ld b/components/gc-ministers/index.json-ld
new file mode 100644
index 0000000000..c4dd1f36e5
--- /dev/null
+++ b/components/gc-ministers/index.json-ld
@@ -0,0 +1,169 @@
+{
+ "@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": "Minister or institutional head",
+ "fr": "Ministre ou chef d’institution"
+ },
+ "description": {
+ "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
+ "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
+ },
+ "modified": "2024-03-11",
+ "componentName": "gc-ministers",
+ "status": "stable",
+ "version": "1.0",
+ "pages": {
+ "examples": [
+ {
+ "title": "Minister or institutional head",
+ "language": "en",
+ "path": "gc-ministers-en.html"
+ },
+ {
+ "title": "Ministre ou chef d’institution",
+ "language": "fr",
+ "path": "gc-ministers-fr.html"
+ }
+ ],
+ "docs": [
+ {
+ "title": "Minister or institutional head",
+ "language": "en",
+ "path": "gc-ministers-doc-en.html"
+ },
+ {
+ "title": "Ministre ou chef d’institution",
+ "language": "fr",
+ "path": "gc-ministers-doc-fr.html"
+ }
+ ]
+ },
+ "dependencies": "No dependency.",
+ "a11yGuidance": "No accessibility guidance.",
+ "variations": [
+ {
+ "name": {
+ "en": "Minister or institutional head - default",
+ "fr": "Ministre ou chef d’institution - par défaut"
+ },
+ "status": "stable",
+ "description": {
+ "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
+ "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
+ },
+ "guidance": {
+ "en": "https://design.canada.ca/mandatory-templates/institutional-profile-pages.html",
+ "fr": "https://conception.canada.ca/modeles-obligatoire/pages-profil-institutionnel.html"
+ },
+ "iteration": "_:iteration_ministers_1",
+ "example": [
+ {
+ "en": { "href": "gc-ministers-en.html", "text": "Minister or institutional head" },
+ "fr": { "href": "gc-ministers-fr.html", "text": "Ministre ou chef d’institution" }
+ }
+ ],
+ "implementation": [
+ "_:implement_ministers"
+ ],
+ "history": [
+ {
+ "en": "March 2024 - Initial implementation of the variation.",
+ "fr": "Mars 2024 - Implémentation initiale de la variante."
+ }
+ ]
+ }
+ ],
+ "implementation": [
+ {
+ "@id": "_:implement_ministers",
+ "iteration": "_:iteration_ministers_1",
+ "name": {
+ "en": "Standard",
+ "fr": "Standard"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers/publishers adding the component manually.",
+ "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement."
+ },
+ "instructions": {
+ "en": [
+ "The following coded example is the default layout. When you are implementing your instance, you can omit any of the following:
image
mandate letter link
briefing book link
",
+ "The <div class=\"col-md-6\"> can be repeated as many times as there are ministers or institutional heads."
+ ],
+ "fr": [
+ "L'exemple codé suivant est la présentation par défaut. Lorsque vous mettez en œuvre votre instance, vous pouvez omettre les éléments suivants :
Image
Lettre de mandat
Dossier d’information
",
+ "Le <div class=\"col-md-6\"> peut être répété autant de fois qu'il y a de ministres ou de chefs d'institution."
+ ]
+ },
+ "notes": {
+ "en": [
+ "Please refer to the working example for the HTML markup when there is no image."
+ ],
+ "fr": [
+ "Veuillez vous référer à l'exemple pratique pour le balisage HTML lorsqu'il n'y a pas d'image."
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "\n\t
\n"
+ }
+ ]
+ }
+ ],
+ "changesets": [
+ {
+ "@id": "_:cs_ministers",
+ "name": "Minister or institutional head",
+ "status": "stable",
+ "baseOnIteration": "_:iteration_ministers_1",
+ "detectableBy": "section.ministers",
+ "layout": "Each minister takes up half the container. The image (if available) is on the left",
+ "semantic": "section ((h3 a) + img + p + (ul > li))",
+ "style": "The image has a thick grey border (like a thumbnail).",
+ "context": "To be used in the institutional landing page template.",
+ "schema": [
+ "Minister name",
+ "Minister title",
+ "Minister page URL",
+ "Minister image URL",
+ "Mandate letter text",
+ "Mandate letter URL",
+ "Briefing book text",
+ "Briefing book URL"
+ ]
+ }
+ ]
+}
diff --git a/design-patterns/gc-ministers/gc-ministers-en.html b/design-patterns/gc-ministers/gc-ministers-en.html
deleted file mode 100644
index ff2f4df4e7..0000000000
--- a/design-patterns/gc-ministers/gc-ministers-en.html
+++ /dev/null
@@ -1,131 +0,0 @@
----
-title: Minister or institutional head pattern
-description: Documentation and working example for the minister or institutional head pattern
-language: en
-altLangPage: gc-ministers-fr.html
-dateModified: 2024-01-29
-layout: no-container
----
-
-
{{ page.title }}
-
-
The Minister or institutional head pattern identifies the relevant Minister(s) or head(s) for a department, agency or organization. It provides links to the official bio for an institution’s minister(s), associate minister(s), or institutional head, and may also include a headshot or links to mandate letters and briefing materials.
The Minister or institutional head pattern is mandatory on an institutional landing page. Consult the Canada.ca Design system guidance for using this component.
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
-
There is no accessibility guidance defined.
-
Variations
-
The following coded example is the default layout. When you are implementing your instance, you can omit any of the following:
diff --git a/design-patterns/gc-ministers/gc-ministers-fr.html b/design-patterns/gc-ministers/gc-ministers-fr.html
deleted file mode 100644
index a65d53c6ef..0000000000
--- a/design-patterns/gc-ministers/gc-ministers-fr.html
+++ /dev/null
@@ -1,132 +0,0 @@
----
-title: Ministre ou chef d’institution
-description: Documentation and working example for the minister or institutional head pattern
-language: en
-altLangPage: gc-ministers-en.html
-dateModified: 2024-01-29
-layout: no-container
----
-
-
{{ page.title }}
-
-
La configuration de conception d’un ministre ou d’un chef d’institution indique le(s) ministre(s) ou chef(s) d’institution concernés d’un ministère, d’un organisme ou d’une organisation. Elle fournit des liens vers la biographie officielle du ou des ministres, ministres associés ou chefs d’institution, et elle peut également inclure un portrait ou des liens vers des lettres de mandat et des documents d’information.
La configuration de conception d’un ministre ou d’un chef d’institution est obligatoire sur les pages d’accueil institutionnelles. Consult the Canada.ca Design system guidance for using this component.
Liste des directives d’accessibilité à respecter pour veiller à ce que le composant soit utilisé dans le respect des directives d’accessibilité et de la norme EN 301 549 (y compris la norme WCAG 2.1, niveau AA).
-
Il n’y a pas de directives définies en matière d’accessibilité.
-
Variations
-
L'exemple codé suivant est la présentation par défaut. Lorsque vous mettez en œuvre votre instance, vous pouvez omettre les éléments suivants :
-
-
Image
-
Lettre de mandat
-
Dossier d’information
-
-
Ministre ou chef d’institution
-
Ministre(s)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Code
-
- <h2 class="h3 mrgn-tp-md">Ministre(s)</h2>
- <div class="row mrgn-bttm-lg wb-eqht-grd">
- <div class="col-md-6">
- <div class="row">
- <figure>
- <figcaption class="pull-right col-md-7 col-xs-12 mrgn-tp-md bold"><a href="">L’honorable [nom de la ministre]</a>
- </figcaption>
- <div class="col-md-5 col-xs-12">
- <img src="./img/minister-200x250.jpg" alt="" class="img-responsive thumbnail mrgn-bttm-sm">
- </div>
- <div class="col-md-7 col-xs-12 ln-hght mrgn-tp-md">
- <p class="ln-hght"><small>[Titre officiel]</small></p>
- <ul>
- <li><small><a href="">Élément de liste : Lettre de mandat<span class="wb-inv">: [Nom de la ministre]</span></a></small>
- </li>
- <li><small><a href="">Élément de liste : Dossier d’information<span class="wb-inv">: [Nom de la ministre]</span></a></small>
- </li>
- </ul>
- </div>
- </figure>
- </div>
- </div>
- <div class="col-md-6">
- <div class="row">
- <figure>
- <figcaption class="pull-right col-md-7 col-xs-12 mrgn-tp-md bold"><a href="">L’honorable [Nom de la ministre]</a>
- </figcaption>
- <div class="col-md-5 col-xs-12">
- <img src="./img/minister-200x250.jpg" alt="" class="img-responsive thumbnail mrgn-bttm-sm">
- </div>
- <div class="col-md-7 col-xs-12 ln-hght mrgn-tp-md">
- <p class="ln-hght"><small>[Titre officiel]</small></p>
- <ul>
- <li><small><a href="">Élément de liste : Lettre de mandat [facultatif]<span class="wb-inv">: [Nom de la ministre]</span></a></small>
- </li>
- </ul>
- </div>
- </figure>
- </div>
- </div>
- </div>
-
-
-
Evaluation and report
-
Il n’y a pas de rapport d’accessibilité.
-
Il n’y a pas de rapport de conformité en matière d’accessibilité.
-
Documentation technique
-
-
Statut :
stable
-
-
diff --git a/design-patterns/gc-ministers/index.json-ld b/design-patterns/gc-ministers/index.json-ld
deleted file mode 100644
index e895e57412..0000000000
--- a/design-patterns/gc-ministers/index.json-ld
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "@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": "Minister or institutional head pattern - Documentation and working example",
- "fr": "Ministre ou chef d’institution - Documentation et example pratique"
- },
- "description": {
- "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
- "fr": "Ce composant est destiné au modèle du ministre ou du responsable de l'institution sur la page d'accueil de l'institution."
- },
- "modified": "2024-01-29",
- "componentName": "gc-ministers",
- "status": "stable",
- "pages": {
- "examples": [
- {
- "title": "Minister or institutional head pattern - Documentation and working example",
- "language": "en",
- "path": "gc-ministers-en.html"
- },
- {
- "title": "Ministre ou chef d’institution - Documentation et example pratique",
- "language": "fr",
- "path": "gc-ministers-fr.html"
- }
- ]
- }
-}
diff --git a/sites/theme.scss b/sites/theme.scss
index 13308979a1..a8b406b25b 100644
--- a/sites/theme.scss
+++ b/sites/theme.scss
@@ -173,6 +173,7 @@
@import "../components/dshbrd/base";
@import "../components/triangle-up";
@import "../components/gc-follow-us/base";
+@import "../components/gc-ministers/base";
@import "../components/fd-wdgt";
@import "../components/pagination/base";
@import "../components/toc/base";
From defb350ea06a998e0ac2578d74e426f28aadc4ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc-Andr=C3=A9=20Garneau?=
Date: Wed, 13 Mar 2024 15:54:24 -0400
Subject: [PATCH 050/161] GC-Ministers: Fixing documentation
---
_data/components.json | 42 ++--
.../gc-minister-special-cases.html | 46 +++++
.../gc-minister-two-ministers.html | 39 ++++
.../components/gc-minister/gc-minister.html | 22 ++
.../{gc-ministers => gc-minister}/_base.scss | 7 +-
.../gc-minister-doc-en.html} | 2 +-
.../gc-minister-doc-fr.html} | 2 +-
components/gc-minister/gc-minister-en.html | 37 ++++
components/gc-minister/gc-minister-fr.html | 37 ++++
.../img/minister-200x250.jpg | Bin
components/gc-minister/index.json-ld | 169 +++++++++++++++
.../samples/gc-minister-special-cases.html | 46 +++++
.../samples/gc-minister-two-ministers.html | 39 ++++
.../gc-minister/samples/gc-minister.html | 22 ++
components/gc-ministers/gc-ministers-en.html | 195 ------------------
components/gc-ministers/gc-ministers-fr.html | 187 -----------------
components/gc-ministers/index.json-ld | 169 ---------------
sites/theme.scss | 2 +-
18 files changed, 484 insertions(+), 579 deletions(-)
create mode 100644 _includes/components/gc-minister/gc-minister-special-cases.html
create mode 100644 _includes/components/gc-minister/gc-minister-two-ministers.html
create mode 100644 _includes/components/gc-minister/gc-minister.html
rename components/{gc-ministers => gc-minister}/_base.scss (77%)
rename components/{gc-ministers/gc-ministers-doc-en.html => gc-minister/gc-minister-doc-en.html} (84%)
rename components/{gc-ministers/gc-ministers-doc-fr.html => gc-minister/gc-minister-doc-fr.html} (86%)
create mode 100644 components/gc-minister/gc-minister-en.html
create mode 100644 components/gc-minister/gc-minister-fr.html
rename components/{gc-ministers => gc-minister}/img/minister-200x250.jpg (100%)
create mode 100644 components/gc-minister/index.json-ld
create mode 100644 components/gc-minister/samples/gc-minister-special-cases.html
create mode 100644 components/gc-minister/samples/gc-minister-two-ministers.html
create mode 100644 components/gc-minister/samples/gc-minister.html
delete mode 100644 components/gc-ministers/gc-ministers-en.html
delete mode 100644 components/gc-ministers/gc-ministers-fr.html
delete mode 100644 components/gc-ministers/index.json-ld
diff --git a/_data/components.json b/_data/components.json
index e2e0869420..68927f997a 100644
--- a/_data/components.json
+++ b/_data/components.json
@@ -720,7 +720,7 @@
"fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
},
"modified": "2024-03-11",
- "componentName": "gc-ministers",
+ "componentName": "gc-minister",
"status": "stable",
"version": "1.0",
"pages": {
@@ -728,24 +728,24 @@
{
"title": "Minister or institutional head",
"language": "en",
- "path": "gc-ministers-en.html"
+ "path": "gc-minister-en.html"
},
{
"title": "Ministre ou chef d’institution",
"language": "fr",
- "path": "gc-ministers-fr.html"
+ "path": "gc-minister-fr.html"
}
],
"docs": [
{
"title": "Minister or institutional head",
"language": "en",
- "path": "gc-ministers-doc-en.html"
+ "path": "gc-minister-doc-en.html"
},
{
"title": "Ministre ou chef d’institution",
"language": "fr",
- "path": "gc-ministers-doc-fr.html"
+ "path": "gc-minister-doc-fr.html"
}
]
},
@@ -766,15 +766,15 @@
"en": "https://design.canada.ca/mandatory-templates/institutional-profile-pages.html",
"fr": "https://conception.canada.ca/modeles-obligatoire/pages-profil-institutionnel.html"
},
- "iteration": "_:iteration_ministers_1",
+ "iteration": "_:iteration_minister_1",
"example": [
{
- "en": { "href": "gc-ministers-en.html", "text": "Minister or institutional head" },
- "fr": { "href": "gc-ministers-fr.html", "text": "Ministre ou chef d’institution" }
+ "en": { "href": "gc-minister-en.html", "text": "Minister or institutional head" },
+ "fr": { "href": "gc-minister-fr.html", "text": "Ministre ou chef d’institution" }
}
],
"implementation": [
- "_:implement_ministers"
+ "_:implement_minister"
],
"history": [
{
@@ -786,8 +786,8 @@
],
"implementation": [
{
- "@id": "_:implement_ministers",
- "iteration": "_:iteration_ministers_1",
+ "@id": "_:implement_minister",
+ "iteration": "_:iteration_minister_1",
"name": {
"en": "Standard",
"fr": "Standard"
@@ -819,14 +819,14 @@
{
"@type": "source-code",
"description": "Code sample:",
- "code": "\n\t
Exemple lorsqu'un ou plusieurs éléments ne sont pas disponibles
+
Cet exemple est destiné lorsque l'image, la lettre de mandat et/ou le dossier d'information ne sont pas disponibles.
+{% include_relative samples/gc-minister-special-cases.html %}
+
+ Code sample
+ {% highlight html %}{% include_relative samples/gc-minister-special-cases.html %}{% endhighlight %}
+
diff --git a/components/gc-ministers/img/minister-200x250.jpg b/components/gc-minister/img/minister-200x250.jpg
similarity index 100%
rename from components/gc-ministers/img/minister-200x250.jpg
rename to components/gc-minister/img/minister-200x250.jpg
diff --git a/components/gc-minister/index.json-ld b/components/gc-minister/index.json-ld
new file mode 100644
index 0000000000..02f08ce609
--- /dev/null
+++ b/components/gc-minister/index.json-ld
@@ -0,0 +1,169 @@
+{
+ "@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": "Minister or institutional head",
+ "fr": "Ministre ou chef d’institution"
+ },
+ "description": {
+ "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
+ "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
+ },
+ "modified": "2024-03-11",
+ "componentName": "gc-minister",
+ "status": "stable",
+ "version": "1.0",
+ "pages": {
+ "examples": [
+ {
+ "title": "Minister or institutional head",
+ "language": "en",
+ "path": "gc-minister-en.html"
+ },
+ {
+ "title": "Ministre ou chef d’institution",
+ "language": "fr",
+ "path": "gc-minister-fr.html"
+ }
+ ],
+ "docs": [
+ {
+ "title": "Minister or institutional head",
+ "language": "en",
+ "path": "gc-minister-doc-en.html"
+ },
+ {
+ "title": "Ministre ou chef d’institution",
+ "language": "fr",
+ "path": "gc-minister-doc-fr.html"
+ }
+ ]
+ },
+ "dependencies": "No dependency.",
+ "a11yGuidance": "No accessibility guidance.",
+ "variations": [
+ {
+ "name": {
+ "en": "Minister or institutional head - default",
+ "fr": "Ministre ou chef d’institution - par défaut"
+ },
+ "status": "stable",
+ "description": {
+ "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
+ "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
+ },
+ "guidance": {
+ "en": "https://design.canada.ca/mandatory-templates/institutional-profile-pages.html",
+ "fr": "https://conception.canada.ca/modeles-obligatoire/pages-profil-institutionnel.html"
+ },
+ "iteration": "_:iteration_minister_1",
+ "example": [
+ {
+ "en": { "href": "gc-minister-en.html", "text": "Minister or institutional head" },
+ "fr": { "href": "gc-minister-fr.html", "text": "Ministre ou chef d’institution" }
+ }
+ ],
+ "implementation": [
+ "_:implement_minister"
+ ],
+ "history": [
+ {
+ "en": "March 2024 - Initial implementation of the variation.",
+ "fr": "Mars 2024 - Implémentation initiale de la variante."
+ }
+ ]
+ }
+ ],
+ "implementation": [
+ {
+ "@id": "_:implement_minister",
+ "iteration": "_:iteration_minister_1",
+ "name": {
+ "en": "Standard",
+ "fr": "Standard"
+ },
+ "introduction": {
+ "en": "This implementation is meant for developers/publishers adding the component manually.",
+ "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement."
+ },
+ "instructions": {
+ "en": [
+ "The following coded example is the default layout. When you are implementing your instance, you can omit any of the following:
image
mandate letter link
briefing book link
",
+ "The <div class=\"col-md-6\"> can be repeated as many times as there are ministers or institutional heads."
+ ],
+ "fr": [
+ "L'exemple codé suivant est la présentation par défaut. Lorsque vous mettez en œuvre votre instance, vous pouvez omettre les éléments suivants :
Image
Lettre de mandat
Dossier d’information
",
+ "Le <div class=\"col-md-6\"> peut être répété autant de fois qu'il y a de ministres ou de chefs d'institution."
+ ]
+ },
+ "notes": {
+ "en": [
+ "Please refer to the working example for the HTML markup when there is no image."
+ ],
+ "fr": [
+ "Veuillez vous référer à l'exemple pratique pour le balisage HTML lorsqu'il n'y a pas d'image."
+ ]
+ },
+ "sample": {
+ "en": [
+ {
+ "@type": "source-code",
+ "description": "Code sample:",
+ "code": "\n\t
<section class="ministers">
- <h2>Ministre(s)</h2>
- <div class="row wb-eqht-grd">
- <div class="col-md-6">
- <div class="row">
- <div class="pull-right col-md-7 col-xs-12">
- <h3><a href="#">L'honorable [prénom et nom de famille très long 1]</a></h3>
- </div>
- <div class="col-md-5 col-xs-12">
- <img src="./img/minister-200x250.jpg" alt="L'honorable [prénom et nom de famille très long 1]">
- </div>
- <div class="col-md-7 col-xs-12">
- <p>[Titre officiel du ministre]</p>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="row">
- <div class="pull-right col-md-7 col-xs-12">
- <h3><a href="#">L'honorable [prénom et nom de famille 2]</a></h3>
- </div>
- <div class="col-md-5 col-xs-12">
- <img src="./img/minister-200x250.jpg" alt="L'honorable [prénom et nom de famille 2]">
- </div>
- <div class="col-md-7 col-xs-12">
- <p>[Titre officiel du ministre]</p>
- <ul>
- <li><a href="">Lettre de mandat [facultatif]</a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <h3><a href="#">L'honorable [prénom et nom de famille très long 3]</a></h3>
- <p>[Titre officiel du ministre]</p>
- <ul>
- <li><a href="">Lettre de mandat [facultatif]</a></li>
- <li><a href="">Dossier d'information [facultatif]</a></li>
- </ul>
- </div>
- <div class="col-md-6">
- <h3><a href="#">L'honorable [prénom et nom de famille très long 4]</a></h3>
- <p>[Titre officiel du ministre]</p>
- </div>
- </div>
-</section>
-
diff --git a/components/gc-ministers/index.json-ld b/components/gc-ministers/index.json-ld
deleted file mode 100644
index c4dd1f36e5..0000000000
--- a/components/gc-ministers/index.json-ld
+++ /dev/null
@@ -1,169 +0,0 @@
-{
- "@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": "Minister or institutional head",
- "fr": "Ministre ou chef d’institution"
- },
- "description": {
- "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
- "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
- },
- "modified": "2024-03-11",
- "componentName": "gc-ministers",
- "status": "stable",
- "version": "1.0",
- "pages": {
- "examples": [
- {
- "title": "Minister or institutional head",
- "language": "en",
- "path": "gc-ministers-en.html"
- },
- {
- "title": "Ministre ou chef d’institution",
- "language": "fr",
- "path": "gc-ministers-fr.html"
- }
- ],
- "docs": [
- {
- "title": "Minister or institutional head",
- "language": "en",
- "path": "gc-ministers-doc-en.html"
- },
- {
- "title": "Ministre ou chef d’institution",
- "language": "fr",
- "path": "gc-ministers-doc-fr.html"
- }
- ]
- },
- "dependencies": "No dependency.",
- "a11yGuidance": "No accessibility guidance.",
- "variations": [
- {
- "name": {
- "en": "Minister or institutional head - default",
- "fr": "Ministre ou chef d’institution - par défaut"
- },
- "status": "stable",
- "description": {
- "en": "This component is for the minister or institutional head pattern on the institutional landing page.",
- "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution."
- },
- "guidance": {
- "en": "https://design.canada.ca/mandatory-templates/institutional-profile-pages.html",
- "fr": "https://conception.canada.ca/modeles-obligatoire/pages-profil-institutionnel.html"
- },
- "iteration": "_:iteration_ministers_1",
- "example": [
- {
- "en": { "href": "gc-ministers-en.html", "text": "Minister or institutional head" },
- "fr": { "href": "gc-ministers-fr.html", "text": "Ministre ou chef d’institution" }
- }
- ],
- "implementation": [
- "_:implement_ministers"
- ],
- "history": [
- {
- "en": "March 2024 - Initial implementation of the variation.",
- "fr": "Mars 2024 - Implémentation initiale de la variante."
- }
- ]
- }
- ],
- "implementation": [
- {
- "@id": "_:implement_ministers",
- "iteration": "_:iteration_ministers_1",
- "name": {
- "en": "Standard",
- "fr": "Standard"
- },
- "introduction": {
- "en": "This implementation is meant for developers/publishers adding the component manually.",
- "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant manuellement."
- },
- "instructions": {
- "en": [
- "The following coded example is the default layout. When you are implementing your instance, you can omit any of the following:
image
mandate letter link
briefing book link
",
- "The <div class=\"col-md-6\"> can be repeated as many times as there are ministers or institutional heads."
- ],
- "fr": [
- "L'exemple codé suivant est la présentation par défaut. Lorsque vous mettez en œuvre votre instance, vous pouvez omettre les éléments suivants :
Image
Lettre de mandat
Dossier d’information
",
- "Le <div class=\"col-md-6\"> peut être répété autant de fois qu'il y a de ministres ou de chefs d'institution."
- ]
- },
- "notes": {
- "en": [
- "Please refer to the working example for the HTML markup when there is no image."
- ],
- "fr": [
- "Veuillez vous référer à l'exemple pratique pour le balisage HTML lorsqu'il n'y a pas d'image."
- ]
- },
- "sample": {
- "en": [
- {
- "@type": "source-code",
- "description": "Code sample:",
- "code": "\n\t
Exemple lorsqu'un ou plusieurs éléments ne sont pas disponibles
-
Cet exemple est destiné lorsque l'image, la lettre de mandat et/ou le dossier d'information ne sont pas disponibles.
-{% include_relative samples/gc-minister-special-cases.html %}
-
- Code sample
- {% highlight html %}{% include_relative samples/gc-minister-special-cases.html %}{% endhighlight %}
-
diff --git a/components/gc-minister/gc-minister-special-cases-en.html b/components/gc-minister/gc-minister-special-cases-en.html
new file mode 100644
index 0000000000..70428b41a1
--- /dev/null
+++ b/components/gc-minister/gc-minister-special-cases-en.html
@@ -0,0 +1,21 @@
+---
+{
+ "title": "Minister or institutional head - special cases example",
+ "description": "Special cases working example for the 'Minister or institutional head' component.",
+ "language": "en",
+ "altLangPage": "gc-minister-special-cases-fr.html",
+ "breadcrumbs": [
+ { "title": "Minister or institutional head - Documentation", "link": "components/gc-minister/gc-minister-doc-en.html" }
+ ],
+ "dateModified": "2024-03-11",
+}
+---
+
+
+
Below is a working example for the "Minster or institutional head" component when the image, mandate letter, and/or briefing book are not available.
+
+{% include_relative samples/gc-minister-special-cases.html %}
+
+ Code sample
+ {% highlight html %}{% include_relative samples/gc-minister-special-cases.html %}{% endhighlight %}
+
diff --git a/components/gc-minister/gc-minister-special-cases-fr.html b/components/gc-minister/gc-minister-special-cases-fr.html
new file mode 100644
index 0000000000..40000cf03d
--- /dev/null
+++ b/components/gc-minister/gc-minister-special-cases-fr.html
@@ -0,0 +1,21 @@
+---
+{
+ "title": "Ministre ou chef d'institution - cas particuliers",
+ "description": "Exemple pratique pour certains cas particuliers pour la composante « Ministre ou chef d'institution »",
+ "language": "fr",
+ "altLangPage": "gc-minister-special-cases-en.html",
+ "breadcrumbs": [
+ { "title": "Ministre ou chef d'institution - Documentation", "link": "components/gc-minister/gc-minister-doc-fr.html" }
+ ],
+ "dateModified": "2024-03-11"
+}
+---
+
+
+
Vous trouverez ci-dessous un exemple pour la composante « Ministre ou chef d'institution » lorsque l'image, la lettre de mandat et/ou le dossier d'information ne sont pas disponibles.
+
+{% include_relative samples/gc-minister-special-cases.html %}
+
+ Code sample
+ {% highlight html %}{% include_relative samples/gc-minister-special-cases.html %}{% endhighlight %}
+
diff --git a/components/gc-minister/gc-minister-two-ministers-en.html b/components/gc-minister/gc-minister-two-ministers-en.html
new file mode 100644
index 0000000000..c62e0dcbfe
--- /dev/null
+++ b/components/gc-minister/gc-minister-two-ministers-en.html
@@ -0,0 +1,21 @@
+---
+{
+ "title": "Minister or institutional head - two ministers example",
+ "description": "Working example for the 'Minister or institutional head' component contains two or more ministers.",
+ "language": "en",
+ "altLangPage": "gc-minister-two-ministers-fr.html",
+ "breadcrumbs": [
+ { "title": "Minister or institutional head - Documentation", "link": "components/gc-minister/gc-minister-doc-en.html" }
+ ],
+ "dateModified": "2024-03-11",
+}
+---
+
+
+
Below is working example for when the "Minster or institutional head" component contains two or more ministers. The <div class="col-md-6"> element can be repeated as many times as there are ministers.
+
+{% include_relative samples/gc-minister-two-ministers.html %}
+
+ Code sample
+ {% highlight html %}{% include_relative samples/gc-minister-two-ministers.html %}{% endhighlight %}
+
diff --git a/components/gc-minister/gc-minister-two-ministers-fr.html b/components/gc-minister/gc-minister-two-ministers-fr.html
new file mode 100644
index 0000000000..eb0a036298
--- /dev/null
+++ b/components/gc-minister/gc-minister-two-ministers-fr.html
@@ -0,0 +1,21 @@
+---
+{
+ "title": "Ministre ou chef d'institution - exemple avec deux ministres",
+ "description": "Exemples pratiques pour la composante « Ministre ou chef d'institution » lorsqu'elle contient deux ministres ou plus.",
+ "language": "fr",
+ "altLangPage": "gc-minister-two-ministers-en.html",
+ "breadcrumbs": [
+ { "title": "Ministre ou chef d'institution - Documentation", "link": "components/gc-minister/gc-minister-doc-fr.html" }
+ ],
+ "dateModified": "2024-03-11"
+}
+---
+
+
+
Vous trouverez ci-dessous un exemple pratique pour la composante « Ministre ou chef d'institution » lorsqu'elle contient deux ministres ou plus. L'élément <div class="col-md-6"> peut être répété autant de fois qu'il y a de ministres.
+
+{% include_relative samples/gc-minister-two-ministers.html %}
+
+ Code sample
+ {% highlight html %}{% include_relative samples/gc-minister-two-ministers.html %}{% endhighlight %}
+
diff --git a/components/gc-minister/index.json-ld b/components/gc-minister/index.json-ld
index 02f08ce609..ad52670c4c 100644
--- a/components/gc-minister/index.json-ld
+++ b/components/gc-minister/index.json-ld
@@ -29,6 +29,26 @@
"title": "Ministre ou chef d’institution",
"language": "fr",
"path": "gc-minister-fr.html"
+ },
+ {
+ "title": "Minister or institutional head - two ministers example",
+ "language": "en",
+ "path": "gc-minister-two-ministers-en.html"
+ },
+ {
+ "title": "Ministre ou chef d'institution - exemple avec deux ministres",
+ "language": "fr",
+ "path": "gc-minister-two-ministers-fr.html"
+ },
+ {
+ "title": "Minister or institutional head - special cases example",
+ "language": "en",
+ "path": "gc-minister-special-cases-en.html"
+ },
+ {
+ "title": "Ministre ou chef d'institution - cas particuliers",
+ "language": "fr",
+ "path": "gc-minister-special-cases-fr.html"
}
],
"docs": [
@@ -66,6 +86,14 @@
{
"en": { "href": "gc-minister-en.html", "text": "Minister or institutional head" },
"fr": { "href": "gc-minister-fr.html", "text": "Ministre ou chef d’institution" }
+ },
+ {
+ "en": { "href": "gc-minister-two-ministers-en.html", "text": "Minister or institutional head - two ministers example" },
+ "fr": { "href": "gc-minister-two-ministers-fr.html", "text": "Ministre ou chef d'institution - exemple avec plusieurs ministres" }
+ },
+ {
+ "en": { "href": "gc-minister-special-cases-en.html", "text": "Minister or institutional head - special cases example" },
+ "fr": { "href": "gc-minister-special-cases-fr.html", "text": "Ministre ou chef d'institution - cas particuliers" }
}
],
"implementation": [
@@ -163,6 +191,10 @@
"Mandate letter URL",
"Briefing book text",
"Briefing book URL"
+ ],
+ "static": [
+ "Minister(s)",
+ "Ministre(s)"
]
}
]
From 3ca5578c652534cb3356ed04d687ac83c66a2658 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc-Andr=C3=A9=20Garneau?=
Date: Mon, 11 Mar 2024 08:17:20 -0400
Subject: [PATCH 054/161] GC Institution: removing h3 and mrgn-tp-md classes to
H2
---
_data/design-patterns.json | 46 +-
.../gc-institution/gc-institution.html | 15 +
.../gc-institution/gc-institution-doc-en.html | 4 +-
.../gc-institution/gc-institution-doc-fr.html | 4 +-
.../gc-institution/gc-institution-en.html | 40 +-
.../gc-institution/gc-institution-fr.html | 40 +-
design-patterns/gc-institution/index.json-ld | 46 +-
.../samples/gc-institution.html | 15 +
.../utilities/gc-institution-alert.html | 11 +
sites/layouts/documentation_pattern.html | 652 ++++++++++++++++++
10 files changed, 717 insertions(+), 156 deletions(-)
create mode 100644 _includes/design-patterns/gc-institution/gc-institution.html
create mode 100644 design-patterns/gc-institution/samples/gc-institution.html
create mode 100644 design-patterns/gc-institution/utilities/gc-institution-alert.html
create mode 100644 sites/layouts/documentation_pattern.html
diff --git a/_data/design-patterns.json b/_data/design-patterns.json
index 1f83b95ef4..7bb16d6a74 100644
--- a/_data/design-patterns.json
+++ b/_data/design-patterns.json
@@ -16,8 +16,6 @@
},
"modified": "2024-01-11",
"componentName": "gc-institution",
- "status": "stable",
- "version": "1.0",
"pages": {
"docs": [
{
@@ -52,7 +50,6 @@
"en": "About the institution - default",
"fr": "À propos de l'institution - par défaut"
},
- "status": "stable",
"description": {
"en": "Section on an institutional landing page that provides links to corporate, program and policy information",
"fr": "Section d’une page d’accueil institutionnelle offrant des liens vers des renseignements relatifs à un organisme, à un programme ou à une politique en particulier."
@@ -61,7 +58,6 @@
"en": "https://design.canada.ca/mandatory-templates/institutional-profile-pages.html",
"fr": "https://conception.canada.ca/modeles-obligatoire/pages-profil-institutionnel.html"
},
- "iteration": "_:iteration_institution_1",
"example": [
{
"en": { "href": "gc-institution-en.html", "text": "About the institution" },
@@ -82,7 +78,6 @@
"implementation": [
{
"@id": "_:implement_institution",
- "iteration": "_:iteration_institution_1",
"name": {
"en": "Standard",
"fr": "Standard"
@@ -104,55 +99,18 @@
{
"@type": "source-code",
"description": "Code sample:",
- "code": "\n\t
Ce composant n'est qu'un conteneur pour d'autres composants. Par conséquent, les mises à jour des composants inclus n'affectent pas l'API de ce composant.
+ {% else %}
+
About this component
+
This component is only a container for other components. Therefore, updates to included components do not affect this component's API.
+ {% endif %}
+
+
+
+
+
+
+
{% if lng == "fr" %}Sur cette page{% else %}On this page{% endif %}
{% if lng == "fr" %}Ce composant n'a pas de dépendances{% else %}This component has no dependency{% endif %}
+
+
+
+
+
+
+
+
+
+
+
+
+{%- if page.before_start_ajax_url -%}
+
{% if lng == "fr" %}Avant de commencer{% else %}Before you start{% endif %}
+
+{%- endif -%}
+
+
+
{% if lng == "fr" %}Conseils en matière d'accessibilité{% else %}Accessibility guidance{% endif %}
+
+{%- if lng == "fr" -%}
+
Liste des directives d'accessibilité à suivre pour garantir que le composant est utilisé dans le respect de la directive d'accessibilité et de la norme EN 301 549 (y compris WCAG 2.1 niveau AA).
+{%- else -%}
+
List of accessibility guidances to be followed to ensure component is used in respect of the accessibility guideline and EN 301 549 standard (including WCAG 2.1 Level AA).
+{%- endif -%}
+
+
+
+
{% if lng == "fr" %}Il n’y a pas de directives d’accessibilité définies{% else %}There is no accessibility guidance defined{% endif %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% if lng == "fr" %}Variantes{% else %}Variations{% endif %}
+
+{%- if lng == "fr" -%}
+
Voici quelques exemples populaires. Il ne s’agit pas d’une liste exhaustive des variantes possibles. Configurez votre page en fonction du type de page, des besoins des utilisateurs et des conseils du système de conception.
+{%- else -%}
+
Here are some popular examples. This isn’t an exhaustive list of possible variations. Configure your page based on page type, user needs and design system guidance.
The page templates and design patterns below comprise a reference implementation of the Canada.ca design system, including the mandatory requirement of the Content and Information Architecture (C&IA) Specification. Government of Canada departments and agencies can contribute additional patterns and templates via GCWeb github repository.
diff --git a/index-fr.md b/index-fr.md
index cd938eda37..f181b1f1e7 100644
--- a/index-fr.md
+++ b/index-fr.md
@@ -1,7 +1,7 @@
---
title: GCWeb, le thème WET-BOEW de Canada.ca
altLangPage: index-en.html
-dateModified: 2024-03-05
+dateModified: 2024-03-27
description: "Page d'accueil décrivant l'ensemble des composants du thème de Canada.ca, nommé GCWeb."
layout: no-container
language: fr
@@ -20,7 +20,7 @@ css:
Les gabarits et les conceptions communes si dessous sont une référence d'implémentation du Système de conception de Canada.ca, incluant les exigences obligatoire de la spécifications du contenu et de l’architecture de l'information (C&AI) pour Canada.ca. Les ministères et organisme du gouvernement du Canada peuvent y contribuer en publiant leur modèle et leur conception commune via le dépôt github de GCWeb.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
+ tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
+ consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
+ interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
+ dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
+ quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
+ commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
+ euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
+ lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.
+
+
+
+
Code
+
+ <main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
+ <article>
+ <!-- heading -->
+ <h1>Article</h1>
+
+ <!-- content page -->
+
+ <!-- Page details section [Must be configured as a <footer> element in this situation] -->
+
+ </article>
+ </main>
+
+
+
+
+
+
diff --git a/common/main-container/maincontainer-article-fr.html b/common/main-container/maincontainer-article-fr.html
new file mode 100644
index 0000000000..b13240ff83
--- /dev/null
+++ b/common/main-container/maincontainer-article-fr.html
@@ -0,0 +1,61 @@
+---
+{
+ "altLangPage": "maincontainer-article-en.html",
+ "dateModified": "2023-07-04",
+ "description": "Documentation sur l'utilisation du conteneur principal avec un article.",
+ "language": "fr",
+ "title": "Conteneur Principal avec article",
+ "layout": "core"
+}
+---
+
+{%- include variable-core.liquid -%}
+{%- capture page-title -%}
+ {%- if page.titleH1 -%}
+ {{ page.titleH1 }}
+ %- {elsif page.title -%}
+ {{ page.title }}
+ {%- else -%}
+ Page untitled
+ {%- endif -%}
+{%- endcapture -%}
+
+
+
+
+
+
+
Article
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
+ tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
+ consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
+ interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
+ dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
+ quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
+ commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
+ euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
+ lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.
+
+
+
+
+
Code
+
+ <main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
+ <article>
+ <!-- heading -->
+ <h1>Article</h1>
+
+ <!-- contenu de la page -->
+
+ <!-- Section des détails de la page [Doit être configuré comme un élément <footer> dans cette situation] -->
+
+ </article>
+ </main>
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur tincidunt
+ elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac consectetur.
+ Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu interdum sem lacinia
+ nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas dignissim, lorem pretium
+ facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet quam. Donec consectetur
+ eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis commodo eu eget nisl.
+ Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam euismod. Pellentesque
+ eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt lacus. Proin dictum arcu at leo
+ aliquam placerat. Donec volutpat ornare condimentum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur tincidunt
+ elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac consectetur.
+ Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu interdum sem lacinia
+ nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas dignissim, lorem pretium
+ facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet quam. Donec consectetur
+ eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis commodo eu eget nisl.
+ Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam euismod. Pellentesque
+ eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt lacus. Proin dictum arcu at leo
+ aliquam placerat. Donec volutpat ornare condimentum.
+
diff --git a/common/main-container/maincontainer-section-en.html b/common/main-container/maincontainer-section-en.html
new file mode 100644
index 0000000000..531f55431e
--- /dev/null
+++ b/common/main-container/maincontainer-section-en.html
@@ -0,0 +1,60 @@
+---
+{
+ "altLangPage": "maincontainer-section-fr.html",
+ "dateModified": "2023-07-04",
+ "description": "Documentation on how to use main container with a section.",
+ "language": "en",
+ "title": "Main Container with section",
+ "layout": "core"
+}
+---
+
+{%- include variable-core.liquid -%}
+{%- capture page-title -%}
+ {%- if page.titleH1 -%}
+ {{ page.titleH1 }}
+ %- {elsif page.title -%}
+ {{ page.title }}
+ {%- else -%}
+ Page untitled
+ {%- endif -%}
+{%- endcapture -%}
+
+
+
+
+
+
+
Section
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
+ tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
+ consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
+ interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
+ dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
+ quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
+ commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
+ euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
+ lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.
+
+
+
+
Code
+
+ <main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
+ <section>
+ <!-- heading -->
+ <h1 id="wb-cont">Section</h1>
+
+ <!-- content page -->
+
+ <!-- Page details section [Must be configured as a <footer> element in this situation] -->
+
+ </section>
+ </main>
+
+
+
+
+
diff --git a/common/main-container/maincontainer-section-fr.html b/common/main-container/maincontainer-section-fr.html
new file mode 100644
index 0000000000..5d827365c5
--- /dev/null
+++ b/common/main-container/maincontainer-section-fr.html
@@ -0,0 +1,60 @@
+---
+{
+ "altLangPage": "maincontainer-section-en.html",
+ "dateModified": "2023-07-04",
+ "description": "Documentation sur l'utilisation du conteneur principal avec une section.",
+ "language": "fr",
+ "title": "Conteneur Principal avec section",
+ "layout": "core"
+}
+---
+
+{%- include variable-core.liquid -%}
+{%- capture page-title -%}
+ {%- if page.titleH1 -%}
+ {{ page.titleH1 }}
+ %- {elsif page.title -%}
+ {{ page.title }}
+ {%- else -%}
+ Page untitled
+ {%- endif -%}
+{%- endcapture -%}
+
+
+
+
+
+
+
Section
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
+ tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
+ consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
+ interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
+ dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
+ quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
+ commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
+ euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
+ lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.
+
+
+
+
Code
+
+ <main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
+ <section>
+ <!-- heading -->
+ <h1 id="wb-cont">Section</h1>
+
+ <!-- contenu de la page -->
+
+ <!-- Section des détails de la page [Doit être configuré comme un élément <footer> dans cette situation] -->
+
+ </section>
+ </main>
+