|
1781 | 1781 | "en": "Theme page template", |
1782 | 1782 | "fr": "Gabarit de page thème" |
1783 | 1783 | }, |
1784 | | - "modified": "2020-02-12", |
| 1784 | + "modified": "2025-11-19", |
1785 | 1785 | "componentName": "theme", |
1786 | 1786 | "status": "stable", |
1787 | | - "version": "2.0.2", |
| 1787 | + "version": "2.0.3", |
1788 | 1788 | "pages": { |
1789 | 1789 | "examples": [ |
1790 | 1790 | { |
1791 | | - "title": "[Theme]", |
| 1791 | + "title": "Complete theme page", |
1792 | 1792 | "language": "en", |
1793 | 1793 | "path": "theme-en.html" |
1794 | 1794 | }, |
1795 | 1795 | { |
1796 | | - "title": "[Thème]", |
| 1796 | + "title": "Page de thème complète", |
1797 | 1797 | "language": "fr", |
1798 | 1798 | "path": "theme-fr.html" |
| 1799 | + }, |
| 1800 | + { |
| 1801 | + "title": "Minimal theme page", |
| 1802 | + "language": "en", |
| 1803 | + "path": "theme-business-en.html" |
| 1804 | + }, |
| 1805 | + { |
| 1806 | + "title": "Page de thème minimale", |
| 1807 | + "language": "fr", |
| 1808 | + "path": "theme-business-fr.html" |
| 1809 | + }, |
| 1810 | + { |
| 1811 | + "title": "Custom theme page for IRCC", |
| 1812 | + "language": "en", |
| 1813 | + "path": "theme-ircc-en.html" |
| 1814 | + }, |
| 1815 | + { |
| 1816 | + "title": "Page de thème personnalisée pour IRCC", |
| 1817 | + "language": "fr", |
| 1818 | + "path": "theme-ircc-fr.html" |
1799 | 1819 | } |
1800 | 1820 | ], |
1801 | 1821 | "docs": [ |
|
1849 | 1869 | "en": "https://design.canada.ca/mandatory-templates/theme.html", |
1850 | 1870 | "fr": "https://conception.canada.ca/modeles-obligatoire/theme.html" |
1851 | 1871 | }, |
1852 | | - "iteration": "_:iteration_theme_1", |
| 1872 | + "iteration": "_:iteration_theme_2", |
1853 | 1873 | "example": [ |
1854 | 1874 | { |
1855 | | - "en": { "href": "theme-en.html", "text": "Theme page" }, |
1856 | | - "fr": { "href": "theme-fr.html", "text": "Pages de thème" } |
| 1875 | + "en": { "href": "theme-en.html", "text": "Complete theme page" }, |
| 1876 | + "fr": { "href": "theme-fr.html", "text": "Pages de thème complète" } |
| 1877 | + }, |
| 1878 | + { |
| 1879 | + "en": { "href": "theme-business-en.html", "text": "Minimal theme page" }, |
| 1880 | + "fr": { "href": "theme-business-fr.html", "text": "Pages de thème minimale" } |
| 1881 | + }, |
| 1882 | + { |
| 1883 | + "en": { "href": "theme-ircc-en.html", "text": "Customized theme page for IRCC" }, |
| 1884 | + "fr": { "href": "theme-ircc-fr.html", "text": "Page de thème personnalisée pour IRCC" } |
1857 | 1885 | } |
1858 | 1886 | ], |
1859 | 1887 | "implementation": [ |
1860 | 1888 | "_:implement_theme", |
1861 | 1889 | "_:implement_theme_aem" |
1862 | 1890 | ], |
1863 | 1891 | "history": [ |
| 1892 | + { |
| 1893 | + "en": "November 2025 - Added Featured link and Context-specific features components support. Added custom working example for Immigration and Citizenship.", |
| 1894 | + "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é." |
| 1895 | + }, |
1864 | 1896 | { |
1865 | 1897 | "en": "July 2025 - Minor adjustments for other environments compatibility and addition of wb-navcurrent.", |
1866 | 1898 | "fr": "Juillet 2025 - Ajustements mineurs pour la compatibilité avec d'autres environnements et ajout de wb-navcurrent." |
|
1879 | 1911 | "implementation": [ |
1880 | 1912 | { |
1881 | 1913 | "@id": "_:implement_theme", |
1882 | | - "iteration": "_:iteration_theme_1", |
| 1914 | + "iteration": "_:iteration_theme_2", |
1883 | 1915 | "name": { |
1884 | 1916 | "en": "Standard", |
1885 | 1917 | "fr": "Standard" |
|
1891 | 1923 | "instructions": { |
1892 | 1924 | "en": [ |
1893 | 1925 | "Add the CSS class <code>.page-type-theme</code> to the page's <code><body></code> element.", |
1894 | | - "The CSS class <code>.active</code> must be added to the current page's <code><li></code>.", |
1895 | 1926 | "Refer to the working example for a code sample.", |
1896 | 1927 | "Refer to the working example and guidance for more information on how to implement this page template." |
1897 | 1928 | ], |
1898 | 1929 | "fr": [ |
1899 | 1930 | "Ajoutez la classe CSS <code>.page-type-theme</code> sur l'élément <code><body></code> de la page.", |
1900 | | - "La classe CSS <code>.active</code> doit être ajoutée au <code><li></code> de la page courante.", |
1901 | 1931 | "Reportez-vous à l'exemple pratique pour un exemple de code.", |
1902 | 1932 | "Référez-vous à l'exemple pratique et aux directives pour plus d'informations sur l'implémentation ce modèle de page." |
1903 | 1933 | ] |
|
1915 | 1945 | }, |
1916 | 1946 | { |
1917 | 1947 | "@id": "_:implement_theme_aem", |
1918 | | - "iteration": "_:iteration_theme_1", |
| 1948 | + "iteration": "_:iteration_theme_2", |
1919 | 1949 | "name": { |
1920 | 1950 | "en": "AEM users", |
1921 | 1951 | "fr": "Utilisateurs AEM" |
|
1947 | 1977 | } |
1948 | 1978 | ], |
1949 | 1979 | "iteration": [ |
| 1980 | + { |
| 1981 | + "@id": "_:iteration_theme_3", |
| 1982 | + "name": "Theme page - Iteration 3", |
| 1983 | + "date": "2025-11", |
| 1984 | + "additions": [ |
| 1985 | + "Added Featured link support.", |
| 1986 | + "Added Context-specific features support.", |
| 1987 | + "Added custom styles for Immigration and citizenship." |
| 1988 | + ], |
| 1989 | + "detectableBy": ".page-type-theme:has(.gc-features)", |
| 1990 | + "predecessor": "_:iteration_theme_2" |
| 1991 | + }, |
| 1992 | + { |
| 1993 | + "@id": "_:iteration_theme_2", |
| 1994 | + "name": "Theme page - Iteration 2", |
| 1995 | + "date": "2025-07", |
| 1996 | + "additions": [ |
| 1997 | + "Added wb-navcurrent support to add active link styles based on URL.", |
| 1998 | + "Adjustments to the styles to support MWS implementation." |
| 1999 | + ], |
| 2000 | + "detectableBy": ".page-type-theme", |
| 2001 | + "predecessor": "_:iteration_theme_1", |
| 2002 | + "successor": "_:iteration_theme_3" |
| 2003 | + }, |
1950 | 2004 | { |
1951 | 2005 | "@id": "_:iteration_theme_1", |
1952 | 2006 | "name": "Theme page - Iteration 1", |
|
1958 | 2012 | "notes": [ |
1959 | 2013 | "The H1 is exempt from the default styling (bottom red line). Confirmed by DTO on July 17th, 2024.", |
1960 | 2014 | "The breadcrumbs has specific styling <strong>only</strong> for Theme pages. Confirmed by DTO on July 8th, 2024." |
1961 | | - ] |
| 2015 | + ], |
| 2016 | + "successor": "_:iteration_theme_2" |
1962 | 2017 | } |
1963 | 2018 | ], |
1964 | 2019 | "changesets": [ |
1965 | 2020 | { |
1966 | 2021 | "@id": "_:cs_theme", |
1967 | 2022 | "name": "Theme page", |
1968 | 2023 | "status": "stable", |
1969 | | - "baseOnIteration": "_:iteration_theme_1", |
| 2024 | + "baseOnIteration": "_:iteration_theme_2", |
1970 | 2025 | "detectableBy": ".page-type-theme", |
1971 | 2026 | "layout": [ |
1972 | 2027 | "On larger screens, navigation on the left and page content on the right.", |
1973 | | - "In the page content section, from top to bottom: page title, most requested, services and information." |
| 2028 | + "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)." |
1974 | 2029 | ], |
1975 | 2030 | "style": [ |
1976 | 2031 | "The breadcrumbs first element has a left dark blue border.", |
|
0 commit comments