Commit 8b9d422
Forms: Update form submission confirmation page template (#46521)
* Forms: Update form submission confirmation page template
- Change back link text from 'Go back' to '← Back'
- Update default heading to 'Thank you for your response.'
- Add sparkle emoji (✨) decoration to heading
- Update CSS for new design:
- Centered layout with max-width 600px
- Fields with label above value
- Horizontal dividers between fields
- Improved typography (muted labels, bold values)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Simplify changelog copy
* Forms: Update E2E test to match new confirmation heading
Update the form submission E2E test to expect "Thank you for your response."
instead of "Your message has been sent" to match the new default heading.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Use CSS logical properties for RTL support
- Change margin-left to margin-inline-start for sparkle decoration
- Change text-align: left to text-align: start for go-back-message
This addresses RTL language support by using logical CSS properties
that automatically adapt to the text direction.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Use theme-compatible colors for form submission page
Replace hardcoded colors with theme-aware alternatives:
- Border color: Use currentColor with color-mix() for 20% opacity,
falling back to solid currentColor for older browsers
- Field label: Use inherit with opacity for secondary text effect
This ensures the submission confirmation page adapts to different
WordPress themes instead of using fixed gray values.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Make sparkle emoji part of default heading text
Move the sparkle emoji from being hardcoded in the template to being
part of the customThankyouHeading default value. This makes it
automatically optional - users who customize the heading text will
not have the sparkle unless they add it themselves.
Also adds get_translated_with_fallback() helper to show the previous
translation ("Your message has been sent") if the new string
("Thank you for your response.") hasn't been translated yet.
Removes the now-unused .sparkle-decoration CSS class.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Add translation fallback for thank you heading
When the new heading copy ("Thank you for your response.") hasn't been
translated yet, fall back to the old copy ("Your message has been sent")
without the sparkle emoji.
This ensures non-English users see translated text rather than
untranslated English during the transition period.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Fix Phan error in translation check
Use string comparison instead of translate_entry() which expects
a Translation_Entry object, not a string.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20965369221
Upstream-Ref: Automattic/jetpack@8e6cfcf1 parent fe26f63 commit 8b9d422
File tree
14 files changed
+213
-159
lines changed- jetpack_vendor
- automattic/jetpack-forms
- dist
- blocks
- contact-form/css
- src
- blocks/contact-form
- contact-form
- css
- vendor/composer
14 files changed
+213
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
| 871 | + | |
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| |||
Lines changed: 32 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
603 | 632 | | |
604 | 633 | | |
605 | 634 | | |
| |||
1342 | 1371 | | |
1343 | 1372 | | |
1344 | 1373 | | |
1345 | | - | |
| 1374 | + | |
1346 | 1375 | | |
1347 | 1376 | | |
1348 | 1377 | | |
| |||
1437 | 1466 | | |
1438 | 1467 | | |
1439 | 1468 | | |
1440 | | - | |
| 1469 | + | |
1441 | 1470 | | |
1442 | 1471 | | |
1443 | 1472 | | |
| |||
Lines changed: 37 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
| 269 | + | |
267 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
268 | 286 | | |
269 | 287 | | |
270 | 288 | | |
271 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
272 | 294 | | |
273 | 295 | | |
274 | 296 | | |
275 | 297 | | |
276 | 298 | | |
277 | 299 | | |
278 | | - | |
| 300 | + | |
279 | 301 | | |
280 | 302 | | |
281 | 303 | | |
| |||
308 | 330 | | |
309 | 331 | | |
310 | 332 | | |
311 | | - | |
| 333 | + | |
| 334 | + | |
312 | 335 | | |
313 | 336 | | |
314 | 337 | | |
| |||
0 commit comments