|
1954 | 1954 | "en": "Theme page template", |
1955 | 1955 | "fr": "Gabarit de page thème" |
1956 | 1956 | }, |
1957 | | - "modified": "2020-02-12", |
| 1957 | + "modified": "2025-11-19", |
1958 | 1958 | "componentName": "theme", |
1959 | 1959 | "status": "stable", |
1960 | | - "version": "2.0.2", |
| 1960 | + "version": "2.0.3", |
1961 | 1961 | "pages": { |
1962 | 1962 | "examples": [ |
1963 | 1963 | { |
1964 | | - "title": "[Theme]", |
| 1964 | + "title": "Complete theme page", |
1965 | 1965 | "language": "en", |
1966 | 1966 | "path": "theme-en.html" |
1967 | 1967 | }, |
1968 | 1968 | { |
1969 | | - "title": "[Thème]", |
| 1969 | + "title": "Page de thème complète", |
1970 | 1970 | "language": "fr", |
1971 | 1971 | "path": "theme-fr.html" |
| 1972 | + }, |
| 1973 | + { |
| 1974 | + "title": "Minimal theme page", |
| 1975 | + "language": "en", |
| 1976 | + "path": "theme-business-en.html" |
| 1977 | + }, |
| 1978 | + { |
| 1979 | + "title": "Page de thème minimale", |
| 1980 | + "language": "fr", |
| 1981 | + "path": "theme-business-fr.html" |
| 1982 | + }, |
| 1983 | + { |
| 1984 | + "title": "Custom theme page for IRCC", |
| 1985 | + "language": "en", |
| 1986 | + "path": "theme-ircc-en.html" |
| 1987 | + }, |
| 1988 | + { |
| 1989 | + "title": "Page de thème personnalisée pour IRCC", |
| 1990 | + "language": "fr", |
| 1991 | + "path": "theme-ircc-fr.html" |
1972 | 1992 | } |
1973 | 1993 | ], |
1974 | 1994 | "docs": [ |
|
2022 | 2042 | "en": "https://design.canada.ca/mandatory-templates/theme.html", |
2023 | 2043 | "fr": "https://conception.canada.ca/modeles-obligatoire/theme.html" |
2024 | 2044 | }, |
2025 | | - "iteration": "_:iteration_theme_1", |
| 2045 | + "iteration": "_:iteration_theme_2", |
2026 | 2046 | "example": [ |
2027 | 2047 | { |
2028 | | - "en": { "href": "theme-en.html", "text": "Theme page" }, |
2029 | | - "fr": { "href": "theme-fr.html", "text": "Pages de thème" } |
| 2048 | + "en": { "href": "theme-en.html", "text": "Complete theme page" }, |
| 2049 | + "fr": { "href": "theme-fr.html", "text": "Pages de thème complète" } |
| 2050 | + }, |
| 2051 | + { |
| 2052 | + "en": { "href": "theme-business-en.html", "text": "Minimal theme page" }, |
| 2053 | + "fr": { "href": "theme-business-fr.html", "text": "Pages de thème minimale" } |
| 2054 | + }, |
| 2055 | + { |
| 2056 | + "en": { "href": "theme-ircc-en.html", "text": "Customized theme page for IRCC" }, |
| 2057 | + "fr": { "href": "theme-ircc-fr.html", "text": "Page de thème personnalisée pour IRCC" } |
2030 | 2058 | } |
2031 | 2059 | ], |
2032 | 2060 | "implementation": [ |
2033 | 2061 | "_:implement_theme", |
2034 | 2062 | "_:implement_theme_aem" |
2035 | 2063 | ], |
2036 | 2064 | "history": [ |
| 2065 | + { |
| 2066 | + "en": "November 2025 - Added Featured link and Context-specific features components support. Added custom working example for Immigration and Citizenship.", |
| 2067 | + "fr": "Novembre 2025 - Ajout du support pour les composantes Lien en vedette et Promotions contextuelles. Ajout d'un exemple pratique personnalisé pour Immigration et Citoyenneté." |
| 2068 | + }, |
2037 | 2069 | { |
2038 | 2070 | "en": "July 2025 - Minor adjustments for other environments compatibility and addition of wb-navcurrent.", |
2039 | 2071 | "fr": "Juillet 2025 - Ajustements mineurs pour la compatibilité avec d'autres environnements et ajout de wb-navcurrent." |
|
2052 | 2084 | "implementation": [ |
2053 | 2085 | { |
2054 | 2086 | "@id": "_:implement_theme", |
2055 | | - "iteration": "_:iteration_theme_1", |
| 2087 | + "iteration": "_:iteration_theme_2", |
2056 | 2088 | "name": { |
2057 | 2089 | "en": "Standard", |
2058 | 2090 | "fr": "Standard" |
|
2064 | 2096 | "instructions": { |
2065 | 2097 | "en": [ |
2066 | 2098 | "Add the CSS class <code>.page-type-theme</code> to the page's <code><body></code> element.", |
2067 | | - "The CSS class <code>.active</code> must be added to the current page's <code><li></code>.", |
2068 | 2099 | "Refer to the working example for a code sample.", |
2069 | 2100 | "Refer to the working example and guidance for more information on how to implement this page template." |
2070 | 2101 | ], |
2071 | 2102 | "fr": [ |
2072 | 2103 | "Ajoutez la classe CSS <code>.page-type-theme</code> sur l'élément <code><body></code> de la page.", |
2073 | | - "La classe CSS <code>.active</code> doit être ajoutée au <code><li></code> de la page courante.", |
2074 | 2104 | "Reportez-vous à l'exemple pratique pour un exemple de code.", |
2075 | 2105 | "Référez-vous à l'exemple pratique et aux directives pour plus d'informations sur l'implémentation ce modèle de page." |
2076 | 2106 | ] |
|
2088 | 2118 | }, |
2089 | 2119 | { |
2090 | 2120 | "@id": "_:implement_theme_aem", |
2091 | | - "iteration": "_:iteration_theme_1", |
| 2121 | + "iteration": "_:iteration_theme_2", |
2092 | 2122 | "name": { |
2093 | 2123 | "en": "AEM users", |
2094 | 2124 | "fr": "Utilisateurs AEM" |
|
2120 | 2150 | } |
2121 | 2151 | ], |
2122 | 2152 | "iteration": [ |
| 2153 | + { |
| 2154 | + "@id": "_:iteration_theme_3", |
| 2155 | + "name": "Theme page - Iteration 3", |
| 2156 | + "date": "2025-11", |
| 2157 | + "additions": [ |
| 2158 | + "Added Featured link support.", |
| 2159 | + "Added Context-specific features support.", |
| 2160 | + "Added custom styles for Immigration and citizenship." |
| 2161 | + ], |
| 2162 | + "detectableBy": ".page-type-theme:has(.gc-features)", |
| 2163 | + "predecessor": "_:iteration_theme_2" |
| 2164 | + }, |
| 2165 | + { |
| 2166 | + "@id": "_:iteration_theme_2", |
| 2167 | + "name": "Theme page - Iteration 2", |
| 2168 | + "date": "2025-07", |
| 2169 | + "additions": [ |
| 2170 | + "Added wb-navcurrent support to add active link styles based on URL.", |
| 2171 | + "Adjustments to the styles to support MWS implementation." |
| 2172 | + ], |
| 2173 | + "detectableBy": ".page-type-theme", |
| 2174 | + "predecessor": "_:iteration_theme_1", |
| 2175 | + "successor": "_:iteration_theme_3" |
| 2176 | + }, |
2123 | 2177 | { |
2124 | 2178 | "@id": "_:iteration_theme_1", |
2125 | 2179 | "name": "Theme page - Iteration 1", |
|
2131 | 2185 | "notes": [ |
2132 | 2186 | "The H1 is exempt from the default styling (bottom red line). Confirmed by DTO on July 17th, 2024.", |
2133 | 2187 | "The breadcrumbs has specific styling <strong>only</strong> for Theme pages. Confirmed by DTO on July 8th, 2024." |
2134 | | - ] |
| 2188 | + ], |
| 2189 | + "successor": "_:iteration_theme_2" |
2135 | 2190 | } |
2136 | 2191 | ], |
2137 | 2192 | "changesets": [ |
2138 | 2193 | { |
2139 | 2194 | "@id": "_:cs_theme", |
2140 | 2195 | "name": "Theme page", |
2141 | 2196 | "status": "stable", |
2142 | | - "baseOnIteration": "_:iteration_theme_1", |
| 2197 | + "baseOnIteration": "_:iteration_theme_2", |
2143 | 2198 | "detectableBy": ".page-type-theme", |
2144 | 2199 | "layout": [ |
2145 | 2200 | "On larger screens, navigation on the left and page content on the right.", |
2146 | | - "In the page content section, from top to bottom: page title, most requested, services and information." |
| 2201 | + "In the page content section, from top to bottom: page title, Alert (optional), Featured link (optional), Most requested highlight (optional), Most requested, Services and information, Context-specific features (optional)." |
2147 | 2202 | ], |
2148 | 2203 | "style": [ |
2149 | 2204 | "The breadcrumbs first element has a left dark blue border.", |
|
0 commit comments