Commit 5acdf2a
WT-1000: Pattern lib refactor (#1346)
* Add cards list block as a possibility for free form pages
* Refactor button component to not render <a> when there's no link
* Fix dialog css when used inside of a .fl-buttons tag
* Add new css utilities for conditionally displaying content
* Add set as default button block with dummy data
* Add js logic to manage setting firefox as default browser
* Add set as default snippet
* Add cms tag and apply it to the set as default block's template
* Add tests
* Refactor set as default snippet and block
* Remove unnecessary template tag
* Update migration
* Add default browser conditions to conditional display
* Fix platform conditions on default browser snippet
* Add missing default browser conditions to block
* modal revisions, fixing a bad migration
* fixing tests
* fixing tests again
* Add isUITourEnabled helper and apply it to the isDefaultBrowser check
* Fix set default messages that shouldn't show on Firefox
* Add missing empty option to default browser conditional choices
* Fix set as default CSS selector
* Add Set as Default snippet to DB export
* Only add set as default button when UI Tour is allowed
* Add merge migration
* Only start check timer when set as default button is clicked
* Make multiple instances of set as default buttons possible
* Use div instead of p for notification headings, since they use rich text
* Align notification text to the start on set-as-default modal
* Fix tests
* Separate set as default and ui tour helpers into their own files
* Refactor set as default into a component class
* Update migrations
* Create data migration to add Editors permissions for Set as Default Snippet
* Remove useless css condition
* remove notification, use `is-not-default` conditional around button
* remove success message from modal
* Update test_set_as_default_snippet.py
* Add "copy link to clipboard" button to the download section of the snippet
* button alignment
* Use download firefox button include on set as default snippet
* Add static bundles entries for the page-specific css files
* Remove pages samples from the pattern library
* Add page-specific css bundles to the templates
* Wrap page-specific css with @layer page
* Remove page-specific css imports from the main flare26 css file
* Fix media queries on page-specific css
* Make flare import anywhere loader recursive
* Move component CSS files to their own folder
* Reorganize pattern library files
Still need to find out which components in the flare-26 folder aren't
related to flare 26, so some of them might be removed in a future
commit.
* Separate flare 25 from 26 in the pattern library's sidebar
* Point base path for the visual regression tests to the flare 26 folder
* Fix visual regression tests
* Remove redundant pattern library samples for flare26
* Set flare26 as the default case in the pattern library base template
* Add visual regression tests for dialog and tag components
* Add visual regression tests for illustration card variants
* Add visual regression tests for heading variants
* Treat flare26 as the default case in pattern library yamls
* Add visual regression tests for missing components
* Remove redundant body text pattern lib sample
* Remove redundant card pattern lib samples
* Add missing snapshots
* Fix sticker card border and card body color on dark mode
* Make base pattern library samples not force light/dark modes
* Refactor visual regression tests to test dark mode
* Fix spacing on icon-list component
* Remove 2026 mentions on flare26 pattern library samples and tests
* Add container width prop to pattern library cards list samples
* Update snapshots
* Update Card Gallery pattern library copy
* Redirect /mobile/get-app to /mobile (#1350)
* Enable stub attribution mode on freeform pages (#1352)
Change FreeFormPage2026 to base its promote_panels on UTMParamsMixin.promote_panels instead of AbstractSpringfieldCMSPage.promote_panels. This ensures the UTM parameter promote panels are included for this page type while still appending the enable_marketing_attribution FieldPanel.
* Add analytics attributes to all rich text links (#1332)
* Add analytics attributes to all rich text links
* Fix migration
* Fix richtext template tag tests
* Make sure Rich Text Block uses |richtext by default
* Fix rich text block position attr when context variable isn't set
* Check URL on external link handler before building the resulting HTML
* Rename migration
* Add document link to base rich text features
* Fix attribute name on comment
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Add comment about apps ordering
* Add unit tests for UID link methods
* Add analytics attributes to Wagtail Document links
* Add license
* Rename migration
* Fix |richtext test for FxA link
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Update snapshots
* Remove basic step cards pattern lib sample
* Fix icon text list's icon bg and color
* Remove outline from two column outline cards when an image is stuck
---------
Co-authored-by: Mariana Bedran Lesche <maribedran@gmail.com>
Co-authored-by: Kasey Kelly <kasey@servee.com>
Co-authored-by: Matthew Semeniuk <9813994+bluewave41@users.noreply.github.com>
Co-authored-by: Dan Brown <dbrown@mozilla.com>
Co-authored-by: Mariana Bedran Lesche <mariana@lincolnloop.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 82f55b2 commit 5acdf2a
362 files changed
Lines changed: 1877 additions & 1240 deletions
File tree
- media/css/cms
- components
- springfield
- cms/templates
- cms
- components
- pattern-library/components
- cards-list
- dialog
- flare-25
- banner
- body_text
- button
- cards-list
- card
- heading
- icon
- illustration-card
- intro
- media-content
- media
- notification
- rich_text
- section
- sticker-card
- subheading
- subscription
- tag
- flare-26
- banner
- body_text
- button
- card-gallery
- cards-list
- conditional-display
- dialog
- heading
- icon-list-with-image
- icon-list
- icon
- illustration-card
- intro
- media-content
- media
- mobile-store-qr-code
- notification
- numbered-list
- rich_text
- showcase
- sliding-carousel
- smart-window-instructions
- stacked-article-list
- tag
- testimonial-card
- timeline
- topic
- two-column-cards
- heading
- icon-list-with-image
- mobile-store-qr-code
- notification
- rich_text
- section
- sliding-carousel
- sticker-card
- settings
- tests/playwright/specs/visual-regression
- button-variants-2026.spec.js-snapshots
- button-variants.spec.js-snapshots
- card-gallery-2026.spec.js-snapshots
- card-gallery.spec.js-snapshots
- cards-list-outlined-2026.spec.js-snapshots
- cards-list-outlined.spec.js-snapshots
- cards-list-step-cards-2026.spec.js-snapshots
- cards-list-step-cards.spec.js-snapshots
- cards-list-sticker-2026.spec.js-snapshots
- cards-list-sticker.spec.js-snapshots
- dialog.spec.js-snapshots
- heading.spec.js-snapshots
- home-intro-2026.spec.js-snapshots
- home-intro.spec.js-snapshots
- icon-list-with-image-2026.spec.js-snapshots
- icon-list-with-image.spec.js-snapshots
- illustration-card-variants.spec.js-snapshots
- intro-variants-2026.spec.js-snapshots
- intro-variants.spec.js-snapshots
- kit-banner.spec.js-snapshots
- media-content-variants.spec.js-snapshots
- mobile-store-qr-code-2026.spec.js-snapshots
- mobile-store-qr-code.spec.js-snapshots
- notification-variants-2026.spec.js-snapshots
- notification-variants.spec.js-snapshots
- showcase-variants-2026.spec.js-snapshots
- showcase-variants.spec.js-snapshots
- sliding-carousel-2026.spec.js-snapshots
- sliding-carousel.spec.js-snapshots
- smart-window-instructions.spec.js-snapshots
- stacked-article-list.spec.js-snapshots
- tag-variants.spec.js-snapshots
- testimonial-card.spec.js-snapshots
- topic-list-2026.spec.js-snapshots
- topic-list.spec.js-snapshots
- two-column-cards-2026.spec.js-snapshots
- two-column-cards.spec.js-snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 25 | + | |
| 26 | + | |
33 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
97 | 106 | | |
98 | 107 | | |
99 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
100 | 113 | | |
101 | 114 | | |
102 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
396 | 404 | | |
397 | 405 | | |
398 | 406 | | |
| |||
428 | 436 | | |
429 | 437 | | |
430 | 438 | | |
| 439 | + | |
431 | 440 | | |
432 | 441 | | |
433 | 442 | | |
| |||
519 | 528 | | |
520 | 529 | | |
521 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
522 | 534 | | |
523 | 535 | | |
524 | 536 | | |
| |||
553 | 565 | | |
554 | 566 | | |
555 | 567 | | |
| 568 | + | |
556 | 569 | | |
557 | 570 | | |
558 | 571 | | |
| |||
691 | 704 | | |
692 | 705 | | |
693 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
694 | 710 | | |
695 | 711 | | |
696 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 0 additions & 87 deletions
This file was deleted.
0 commit comments