|
17 | 17 | "modified": "2024-08-27", |
18 | 18 | "componentName": "main-page-title", |
19 | 19 | "status": "stable", |
20 | | - "version": "1.1.1", |
| 20 | + "version": "1.2", |
21 | 21 | "pages": { |
22 | 22 | "docs": [ |
23 | 23 | { |
|
51 | 51 | "title": "Titre principal superposé", |
52 | 52 | "language": "fr", |
53 | 53 | "path": "main-page-title-stacked-fr.html" |
| 54 | + }, |
| 55 | + { |
| 56 | + "title": "Main page title aligned on the right", |
| 57 | + "language": "en", |
| 58 | + "path": "main-page-title-align-right-en.html" |
| 59 | + }, |
| 60 | + { |
| 61 | + "title": "Titre principal de la page aligné à droite", |
| 62 | + "language": "fr", |
| 63 | + "path": "main-page-title-align-right-fr.html" |
| 64 | + }, |
| 65 | + { |
| 66 | + "title": "Main page title in a div aligned on the right", |
| 67 | + "language": "en", |
| 68 | + "path": "main-page-title-div-align-right-en.html" |
| 69 | + }, |
| 70 | + { |
| 71 | + "title": "Titre principal dans une div alignée à droite", |
| 72 | + "language": "fr", |
| 73 | + "path": "main-page-title-div-align-right-fr.html" |
| 74 | + }, |
| 75 | + { |
| 76 | + "title": "Stacked main page title in a div aligned on the right", |
| 77 | + "language": "en", |
| 78 | + "path": "main-page-title-div-stacked-align-right-en.html" |
| 79 | + }, |
| 80 | + { |
| 81 | + "title": "Titre principal superposé dans une div alignée à droite", |
| 82 | + "language": "fr", |
| 83 | + "path": "main-page-title-div-stacked-align-right-fr.html" |
| 84 | + }, |
| 85 | + { |
| 86 | + "title": "Stacked main page title aligned on the right", |
| 87 | + "language": "en", |
| 88 | + "path": "main-page-title-stacked-align-right-en.html" |
| 89 | + }, |
| 90 | + { |
| 91 | + "title": "Titre principal superposé aligné à droite", |
| 92 | + "language": "fr", |
| 93 | + "path": "main-page-title-stacked-align-right-fr.html" |
54 | 94 | } |
55 | 95 | ] |
56 | 96 | }, |
|
70 | 110 | "en": "https://design.canada.ca/styles/typography.html", |
71 | 111 | "fr": "https://conception.canada.ca/styles/typographie.html" |
72 | 112 | }, |
73 | | - "iteration": "_:iteration_mpt_3", |
| 113 | + "iteration": "_:iteration_mpt_4", |
74 | 114 | "example": [ |
75 | 115 | { |
76 | 116 | "en": { "href": "../../templates/content-page/content-en.html", "text": "Content page (main page title)" }, |
77 | 117 | "fr": { "href": "../../templates/content-page/content-fr.html", "text": "Page de contenu (titre principal)" } |
| 118 | + }, |
| 119 | + { |
| 120 | + "en": { "href": "main-page-title-align-right-en", "text": "Main page title aligned on the right" }, |
| 121 | + "fr": { "href": "main-page-title-align-right-fr.html", "text": "Titre principal de la page aligné à droite" } |
| 122 | + }, |
| 123 | + { |
| 124 | + "en": { "href": "main-page-title-div-align-right-en", "text": "Main page title in a div aligned on the right" }, |
| 125 | + "fr": { "href": "main-page-title-div-align-right-fr.html", "text": "Titre principal dans une div alignée à droite" } |
78 | 126 | } |
79 | 127 | ], |
80 | 128 | "implementation": [ |
81 | 129 | "_:implement_mpt", |
82 | 130 | "_:implement_mpt_gcweb" |
83 | 131 | ], |
84 | 132 | "history": [ |
| 133 | + { |
| 134 | + "en": "2024-10 - Right to left support - initial implementation of the variant.", |
| 135 | + "fr": "2024-10 - Support de droite à gauche - Implémentation initiale de la variation." |
| 136 | + }, |
85 | 137 | { |
86 | 138 | "en": "2024-08 - Fixed three-sided border bug in Safari <= 15.3", |
87 | 139 | "fr": "2024-08 - Correction d’un bogue de bordure à trois côtés dans Safari <= 15.3" |
|
106 | 158 | "en": "https://design.canada.ca/styles/typography.html", |
107 | 159 | "fr": "https://conception.canada.ca/styles/typographie.html" |
108 | 160 | }, |
109 | | - "iteration": "_:iteration_smpt_1", |
| 161 | + "iteration": "_:iteration_smpt_2", |
110 | 162 | "example": [ |
111 | 163 | { |
112 | 164 | "en": { "href": "main-page-title-stacked-en.html", "text": "Stacked main page title" }, |
113 | 165 | "fr": { "href": "main-page-title-stacked-fr.html", "text": "Titre principal superposé" } |
| 166 | + }, |
| 167 | + { |
| 168 | + "en": { "href": "main-page-title-stacked-align-right-en", "text": "Stacked main page title aligned on the right" }, |
| 169 | + "fr": { "href": "main-page-title-stacked-align-right-fr.html", "text": "Titre principal superposé aligné à droite" } |
| 170 | + }, |
| 171 | + { |
| 172 | + "en": { "href": "main-page-title-div-stacked-align-right-en", "text": "Stacked main page title in a div aligned on the right" }, |
| 173 | + "fr": { "href": "main-page-title-div-stacked-align-right-fr.html", "text": "Titre principal superposé aligné à droite" } |
114 | 174 | } |
115 | 175 | ], |
116 | 176 | "implementation": [ |
117 | 177 | "_:implement_smpt", |
118 | 178 | "_:implement_smpt_gcweb" |
119 | 179 | ], |
120 | 180 | "history": [ |
| 181 | + { |
| 182 | + "en": "2024-10 - Right to left support - initial implementation of the variant.", |
| 183 | + "fr": "2024-10 - Support de droite à gauche - Implémentation initiale de la variation." |
| 184 | + }, |
121 | 185 | { |
122 | 186 | "en": "2024-08 - Initial implementation of the variant.", |
123 | 187 | "fr": "2024-01 - Implémentation initiale de la variation." |
|
128 | 192 | "implementation": [ |
129 | 193 | { |
130 | 194 | "@id": "_:implement_mpt", |
131 | | - "iteration": "_:iteration_mpt_3", |
| 195 | + "iteration": "_:iteration_mpt_4", |
132 | 196 | "name": { |
133 | 197 | "en": "Standard", |
134 | 198 | "fr": "Standard" |
|
172 | 236 | }, |
173 | 237 | { |
174 | 238 | "@id": "_:implement_mpt_gcweb", |
175 | | - "iteration": "_:iteration_mpt_2", |
| 239 | + "iteration": "_:iteration_mpt_4", |
176 | 240 | "name": { |
177 | 241 | "en": "GCWeb Jekyll", |
178 | 242 | "fr": "GCWeb Jekyll" |
|
208 | 272 | }, |
209 | 273 | { |
210 | 274 | "@id": "_:implement_smpt", |
211 | | - "iteration": "_:iteration_smpt_1", |
| 275 | + "iteration": "_:iteration_smpt_2", |
212 | 276 | "name": { |
213 | 277 | "en": "Standard", |
214 | 278 | "fr": "Standard" |
|
244 | 308 | }, |
245 | 309 | { |
246 | 310 | "@id": "_:implement_smpt_gcweb", |
247 | | - "iteration": "_:iteration_smpt_1", |
| 311 | + "iteration": "_:iteration_smpt_2", |
248 | 312 | "name": { |
249 | 313 | "en": "GCWeb Jekyll", |
250 | 314 | "fr": "GCWeb Jekyll" |
|
283 | 347 | { |
284 | 348 | "@id": "_:cs_mpt", |
285 | 349 | "name": "Default h1", |
286 | | - "baseOnIteration": "_:iteration_mpt_3", |
| 350 | + "baseOnIteration": "_:iteration_mpt_4", |
287 | 351 | "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.", |
288 | 352 | "layout": "The line is positioned below the text.", |
289 | 353 | "semantic": "h1", |
|
306 | 370 | { |
307 | 371 | "@id": "_:cs_smpt", |
308 | 372 | "name": "Stacked main page title", |
309 | | - "baseOnIteration": "_:iteration_smpt_1", |
| 373 | + "baseOnIteration": "_:iteration_smpt_2", |
310 | 374 | "detectableBy": "hgroup > h1#wb-cont", |
311 | 375 | "layout": "The section page title is above the page title. The line is positioned below the page title.", |
312 | 376 | "semantic": "hgroup > p + h1", |
|
352 | 416 | "fixes": [ |
353 | 417 | "Style: Added left/right/top <code>border-*-width: 0;</code> properties to avoid three-sided borders in Safari <= 15.3." |
354 | 418 | ], |
355 | | - "predecessor": "_:iteration_mpt_2" |
| 419 | + "predecessor": "_:iteration_mpt_2", |
| 420 | + "successor": "_:iteration_mpt_4" |
| 421 | + }, |
| 422 | + { |
| 423 | + "@id": "_:iteration_mpt_4", |
| 424 | + "name": "Main page title aligned on the right", |
| 425 | + "date": "2024-09", |
| 426 | + "detectableBy": "h1#wb-cont[dir='rtl'], [dir='rtl'] h1#wb-cont", |
| 427 | + "additions": [ |
| 428 | + "Added right to left support" |
| 429 | + ], |
| 430 | + "predecessor": "_:iteration_mpt_3" |
| 431 | + |
356 | 432 | }, |
357 | 433 | { |
358 | 434 | "@id": "_:iteration_smpt_1", |
359 | 435 | "name": "Stacked main page title - Iteration 1", |
360 | 436 | "date": "2024-08", |
361 | | - "detectableBy": "hgroup > h1#wb-cont" |
| 437 | + "detectableBy": "hgroup > h1#wb-cont", |
| 438 | + "successor": "_:iteration_smpt_2" |
| 439 | + }, |
| 440 | + { |
| 441 | + "@id": "_:iteration_smpt_2", |
| 442 | + "name": "Stacked main page title - Iteration 2 (LTR support)", |
| 443 | + "date": "2024-10", |
| 444 | + "detectableBy": "hgroup > h1#wb-cont[dir='ltr'], [dir='ltr'] hgroup > h1#wb-cont", |
| 445 | + "additions": [ |
| 446 | + "Added right to left support" |
| 447 | + ], |
| 448 | + "predecessor": "_:iteration_smpt_1" |
362 | 449 | } |
363 | 450 | ] |
364 | 451 | } |
0 commit comments