From 1d44b42dd286838eef63d77224acdb64b462b519 Mon Sep 17 00:00:00 2001 From: David Upton Date: Thu, 16 Jan 2025 16:00:50 -0500 Subject: [PATCH 01/10] Chore - adds percy to patterns repo --- .github/percy/percy_config.yml | 15 +++ .github/percy/snapshot_config.yml | 106 +++++++++++++++++++++ .github/percy/snapshot_config_stage.yml | 101 ++++++++++++++++++++ .github/workflows/percy_snapshot.yml | 120 ++++++++++++++++++++++++ 4 files changed, 342 insertions(+) create mode 100644 .github/percy/percy_config.yml create mode 100644 .github/percy/snapshot_config.yml create mode 100644 .github/percy/snapshot_config_stage.yml create mode 100644 .github/workflows/percy_snapshot.yml diff --git a/.github/percy/percy_config.yml b/.github/percy/percy_config.yml new file mode 100644 index 00000000..82c75125 --- /dev/null +++ b/.github/percy/percy_config.yml @@ -0,0 +1,15 @@ +# @file(yaml) +# Global Configurations for Percy CLI +version: 2 +snapshot: + widths: [390,1280] + minHeight: 1024 + percyCSS: "" +discovery: + allowedHostnames: [] + disallowedHostnames: [] + networkIdleTimeout: 100 +upload: + files: "**/*.{png,jpg,jpeg}" + ignore: "" + stripExtensions: false diff --git a/.github/percy/snapshot_config.yml b/.github/percy/snapshot_config.yml new file mode 100644 index 00000000..7a4f583c --- /dev/null +++ b/.github/percy/snapshot_config.yml @@ -0,0 +1,106 @@ + + +- name: Article with ALL components + url: https://d8-dev.boston.gov/departments/digital-team/test-page + waitForTimeout: 5000 + execute: | + jQuery('.paragraphs-item-events-and-notices').addClass("hidden"); + +- name: Event (basic) - WEST END COMMUNITY PRESERVATION + url: https://d8-dev.boston.gov/node/61556 + +- name: Event (with header) - MAYOR ON MAIN TROLLEY TOUR + url: https://d8-dev.boston.gov/node/45361 + +- name: Listing Page - PAY AND APPLY + url: https://d8-dev.boston.gov/node/32906 + +- name: Listing Page - PARKS AND PLAYGROUNDS + url: https://d8-dev.boston.gov/node/32946 + +- name: Place Profile - ANIMAL CARE AND CONTROL CENTER + url: https://d8-dev.boston.gov/node/2191 + +- name: Place Profile - BAY VILLAGE HISTORIC DISTRICT + url: https://d8-dev.boston.gov/node/3251 + +- name: Person Profile - MARK CIOMMO + url: https://d8-dev.boston.gov/node/401 + +- name: Person Profile - KIM JANEY + url: https://d8-dev.boston.gov/node/38046 + +- name: Program Initiative Page - MY BROTHERS KEEPER BOSTON + url: https://d8-dev.boston.gov/node/7396 + +- name: Program Initiative Page - AGE-FRIENDLY BOSTON + url: https://d8-dev.boston.gov/node/25396 + +- name: Post - BIKE SHARE + url: https://d8-dev.boston.gov/node/1741 + +- name: Post - RODENT AND PEST CONTROL + url: http://d8-dev.boston.gov/node/63036 + +- name: How To - CPR TRAINING + url: https://d8-dev.boston.gov/node/3606 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands last drawer on page + +- name: How To - FILE FOR A PROPERTY TAX ABATEMENT + url: https://d8-dev.boston.gov/node/12806 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands last drawer on page + +- name: Article - PARKING METERS + url: https://d8-dev.boston.gov/node/551 + +- name: Article - MAYORS OFFICE OF HOUSING + url: https://d8-dev.boston.gov/node/2726 + +- name: Department - INSPECTIONAL SERVICES + url: https://d8-dev.boston.gov/node/151 + execute: | + jQuery('.paragraphs-item-events-and-notices').addClass("hidden"); +# Hides dynamic content on page to reduce false positives for changes + +- name: Department - HUMAN RESOURCES + url: https://d8-dev.boston.gov/node/216 + execute: | + jQuery('.dr-c:first()').; +# Expands first drawer on page + +- name: Public Notice - PUBLIC FACILITIES COMMISSION MEETING + url: https://d8-dev.boston.gov/node/64966 + +- name: Guide - GETTING AROUND BOSTON + url: https://d8-dev.boston.gov/node/506 + +- name: Guide - HAVING A CAR IN BOSTON + url: https://d8-dev.boston.gov/node/6 + +- name: Landing Page - HOMEPAGE + url: https://d8-dev.boston.gov/node/21 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands first drawer on page + +- name: Landing Page - CAREER CENTER + url: https://d8-dev.boston.gov/node/19261 + execute: | + jQuery('.paragraphs-item-grid-of-cards:first()').addClass("hidden"); + # Hides dynamic content on page to reduce false positives for changes + +- name: Procurement - INSPECTIONAL SERVICES RELATIVE TO ... + url: https://d8-dev.boston.gov/node/15920681 + +- name: Procurement - BFD THERMAL IMAGING CAMERAS ... + url: https://d8-dev.boston.gov/node/15920521 + +- name: Map Verification - 30 Westville St (BH) + url: https://d8-dev.boston.gov/buildinghousing/30-westville-st + +- name: Drawers Example - DRAWERS (INSPECTION SERVICES) + url: https://d8-dev.boston.gov/node/3921 diff --git a/.github/percy/snapshot_config_stage.yml b/.github/percy/snapshot_config_stage.yml new file mode 100644 index 00000000..4f075234 --- /dev/null +++ b/.github/percy/snapshot_config_stage.yml @@ -0,0 +1,101 @@ +- name: Article with ALL components + url: https://d8-stg.boston.gov/departments/digital-team/test-page + waitForTimeout: 5000 + execute: | + jQuery('.paragraphs-item-events-and-notices').addClass("hidden"); + +- name: Event (basic) - WEST END COMMUNITY PRESERVATION + url: https://d8-stg.boston.gov/node/61556 + +- name: Event (with header) - MAYOR ON MAIN TROLLEY TOUR + url: https://d8-stg.boston.gov/node/45361 + +- name: Listing Page - PAY AND APPLY + url: https://d8-stg.boston.gov/node/32906 + +- name: Listing Page - PARKS AND PLAYGROUNDS + url: https://d8-stg.boston.gov/node/32946 + +- name: Place Profile - ANIMAL CARE AND CONTROL CENTER + url: https://d8-stg.boston.gov/node/2191 + +- name: Place Profile - BAY VILLAGE HISTORIC DISTRICT + url: https://d8-stg.boston.gov/node/3251 + +- name: Person Profile - MARK CIOMMO + url: https://d8-stg.boston.gov/node/401 + +- name: Person Profile - KIM JANEY + url: https://d8-stg.boston.gov/node/38046 + +- name: Program Initiative Page - MY BROTHERS KEEPER BOSTON + url: https://d8-stg.boston.gov/node/7396 + +- name: Program Initiative Page - AGE-FRIENDLY BOSTON + url: https://d8-stg.boston.gov/node/25396 + +- name: Post - BIKE SHARE + url: https://d8-stg.boston.gov/node/1741 + +- name: Post - RODENT AND PEST CONTROL + url: http://d8-stg.boston.gov/node/63036 + +- name: How To - CPR TRAINING + url: https://d8-stg.boston.gov/node/3606 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands last drawer on page + +- name: How To - FILE FOR A PROPERTY TAX ABATEMENT + url: https://d8-stg.boston.gov/node/12806 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands last drawer on page + +- name: Article - PARKING METERS + url: https://d8-stg.boston.gov/node/551 + +- name: Article - MAYORS OFFICE OF HOUSING + url: https://d8-stg.boston.gov/node/2726 + +- name: Department - INSPECTIONAL SERVICES + url: https://d8-stg.boston.gov/node/151 + execute: | + jQuery('.paragraphs-item-events-and-notices').addClass("hidden"); +# Hides dynamic content on page to reduce false positives for changes + +- name: Department - HUMAN RESOURCES + url: https://d8-stg.boston.gov/node/216 + execute: | + jQuery('.dr-c:first()').; +# Expands first drawer on page + +- name: Public Notice - PUBLIC FACILITIES COMMISSION MEETING + url: https://d8-stg.boston.gov/node/64966 + +- name: Guide - GETTING AROUND BOSTON + url: https://d8-stg.boston.gov/node/506 + +- name: Guide - HAVING A CAR IN BOSTON + url: https://d8-stg.boston.gov/node/6 + +- name: Landing Page - HOMEPAGE + url: https://d8-stg.boston.gov/node/21 + execute: | + jQuery('.dr-tr:last()').click(); +# Expands first drawer on page + +- name: Landing Page - CAREER CENTER + url: https://d8-stg.boston.gov/node/19261 + execute: | + jQuery('.paragraphs-item-grid-of-cards:first()').addClass("hidden"); + # Hides dynamic content on page to reduce false positives for changes + +- name: Procurement - INSPECTIONAL SERVICES RELATIVE TO ... + url: https://d8-stg.boston.gov/node/15920681 + +- name: Procurement - BFD THERMAL IMAGING CAMERAS ... + url: https://d8-stg.boston.gov/node/15920521 + +- name: Map Verification - 30 Westville St (BH) + url: https://d8-stg.boston.gov/buildinghousing/30-westville-st diff --git a/.github/workflows/percy_snapshot.yml b/.github/workflows/percy_snapshot.yml new file mode 100644 index 00000000..85681fe4 --- /dev/null +++ b/.github/workflows/percy_snapshot.yml @@ -0,0 +1,120 @@ +# @file(yaml) +# == GITHUB ACTION == +# Percy screenshot scripting for patterns.boston.gov +# Workflow monitors master branch and is triggered by a Pull Request. +# The action is triggered before the code reaches the environment, so the workflow compares screenshots taken +# from the lower environment. + +# Attached resources: +# - GitHub SECRETS: +# -> local.PERCY_TOKEN_STAGE -> Notify people that release is ready. +# -> local.PERCY_TOKEN -> Notify people that release is ready. + +name: Percy Snapshot Regression Testing + +env: + PERCY_CONFIG: "$GITHUB_WORKSPACE/.github/percy/percy_config.yml" + +on: + workflow_dispatch: + pull_request: + branches: + - production + types: + - opened + - reopened + - synchronize + +jobs: + + debug: + runs-on: ubuntu-latest + if: ${{ vars.DEBUG == 1 }} + + defaults: + run: + shell: bash + + steps: + - name: Debug ENVARS + run: | + export + + - name: Debug github context + env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + run: | + echo $GITHUB_CONTEXT + + - name: Debug github.event context + env: + EVENT_CONTEXT: ${{ toJSON(github.event) }} + run: | + echo $EVENT_CONTEXT + + + percy_manual: + + if: github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + + env: + SNAPSHOT_CONFIG: "$GITHUB_WORKSPACE/.github/percy/snapshot_config.yml" + + defaults: + run: + shell: bash + + steps: + - name: checkout percy files + uses: Bhacaz/checkout-files@v2 + with: + files: .github/percy + branch: develop + + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install Percy CLI + run: npm install --save-dev @percy/cli + + - name: Compare Frontend Snapshots + run: | + npx @percy/cli snapshot --config ${{ env.PERCY_CONFIG }} ${{ env.SNAPSHOT_CONFIG }} + env: + PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} + + percy_production: + + if: ${{ github.base_ref == 'production' }} + runs-on: ubuntu-latest + + env: + SNAPSHOT_CONFIG: "$GITHUB_WORKSPACE/.github/percy/snapshot_config_stage.yml" + + defaults: + run: + shell: bash + + steps: + - name: checkout percy files + uses: Bhacaz/checkout-files@v2 + with: + files: .github/percy + branch: master + + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install Percy CLI + run: npm install --save-dev @percy/cli + + - name: Compare Frontend Snapshots + run: | + npx @percy/cli snapshot --config ${{ env.PERCY_CONFIG }} ${{ env.SNAPSHOT_CONFIG }} + env: + PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_STAGE }} From 64a8b450dbe00b4db941fcf741fa361d71366489 Mon Sep 17 00:00:00 2001 From: David Upton Date: Fri, 17 Jan 2025 14:26:56 -0500 Subject: [PATCH 02/10] DIG-5557 - alters header blocks --- scripts/components/header.js | 11 +++++++- scripts/components/menu.js | 52 +++++++++++++++++++++++------------- 2 files changed, 44 insertions(+), 19 deletions(-) diff --git a/scripts/components/header.js b/scripts/components/header.js index 956abbd4..1fba1daa 100644 --- a/scripts/components/header.js +++ b/scripts/components/header.js @@ -1,5 +1,5 @@ 'use strict' -// This module controls the City of Boston newsletter component +// This module controls the City of Boston header component // --------------------------- var BostonHeader = (function () { var guideTitle; @@ -78,6 +78,15 @@ var BostonHeader = (function () { if (burgerckbx) { burgerckbx.setAttribute("tabIndex", "0"); + burgerckbx.addEventListener("click", function (element) { + if (document.getElementById("cob-content").classList.contains('brg-tr--active')) { + document.getElementById("cob-content").classList.remove('brg-tr--active'); + } + else { + document.getElementById("cob-content").classList.add('brg-tr--active'); + } + }); + } if (searchckbx) { diff --git a/scripts/components/menu.js b/scripts/components/menu.js index d741f829..2f3160e8 100644 --- a/scripts/components/menu.js +++ b/scripts/components/menu.js @@ -1,5 +1,6 @@ 'use strict' - +// This module controls the City of Boston Main RHS Menu +// --------------------------- var BostonMenu = (function () { // Set height var secondaryNavs; @@ -9,21 +10,22 @@ var BostonMenu = (function () { var backTriggers; var burger; var placeholder; - var navMainmenu; - var sticky; + // var navMainmenu; + // var sticky; var navLogo; var navFirstItem; + var siteBanner; // activate class for sticky menu - function mainMenuonScroll() { - sticky = navMainmenu.offsetTop; - - if (window.pageYOffset > sticky) { - navMainmenu.classList.add("sticky"); - } else { - navMainmenu.classList.remove("sticky"); - } - } + // function mainMenuonScroll() { + // sticky = navMainmenu.offsetTop; + // + // if (window.pageYOffset > sticky) { + // navMainmenu.classList.add("sticky"); + // } else { + // navMainmenu.classList.remove("sticky"); + // } + // } function handleTrigger(ev, method) { @@ -69,7 +71,8 @@ var BostonMenu = (function () { // Update the title title.innerHTML = trigger.innerHTML; - } else { + } + else { for (var i = 0; i < listItems.length; i++) { if (parentItem != listItems[i]) { listItems[i].classList.remove('nv-m-c-l-i--h'); @@ -92,13 +95,14 @@ var BostonMenu = (function () { function start() { burger = document.getElementById('brg-tr'); + siteBanner = document.querySelector('.dr-h'); navLogo = document.getElementById('logoImg'); listItems = document.querySelectorAll('.nv-m-c-l-i'); backTriggers = document.querySelectorAll('.nv-m-c-b'); secondaryTriggers = document.querySelectorAll('.nolink'); secondaryNavs = document.querySelectorAll('.nv-m-c-l-l'); secondaryNavItems = document.querySelectorAll('.nv-m-c-a--s'); - navMainmenu = document.getElementById("main-menu"); + // navMainmenu = document.getElementById("main-menu"); navFirstItem = document.querySelector('.nv-m-h-i'); var title = document.getElementById('nv-m-h-t'); @@ -159,12 +163,24 @@ var BostonMenu = (function () { secondaryNavItems[i].classList.add('nv-m-c-a--p'); } - if (navMainmenu) { - window.onscroll = function() { - mainMenuonScroll() - }; + // Note when the site_banner is expanded. + if (siteBanner) { + siteBanner.addEventListener("click", function (element) { + if (document.getElementById("cob-content").classList.contains('site-banner--expanded')) { + document.getElementById("cob-content").classList.remove('site-banner--expanded'); + } + else { + document.getElementById("cob-content").classList.add('site-banner--expanded'); + } + }); } + // if (navMainmenu) { + // window.onscroll = function() { + // mainMenuonScroll() + // }; + // } + } return { From 684c3e3be514e34814c8c9818283b85f2d005f10 Mon Sep 17 00:00:00 2001 From: David Upton Date: Fri, 24 Jan 2025 10:58:08 -0500 Subject: [PATCH 03/10] Revert "(develop) Clean up Javascript; Refactor headers on Boston.gov" --- scripts/components/header.js | 11 +------- scripts/components/menu.js | 52 +++++++++++++----------------------- 2 files changed, 19 insertions(+), 44 deletions(-) diff --git a/scripts/components/header.js b/scripts/components/header.js index 1fba1daa..956abbd4 100644 --- a/scripts/components/header.js +++ b/scripts/components/header.js @@ -1,5 +1,5 @@ 'use strict' -// This module controls the City of Boston header component +// This module controls the City of Boston newsletter component // --------------------------- var BostonHeader = (function () { var guideTitle; @@ -78,15 +78,6 @@ var BostonHeader = (function () { if (burgerckbx) { burgerckbx.setAttribute("tabIndex", "0"); - burgerckbx.addEventListener("click", function (element) { - if (document.getElementById("cob-content").classList.contains('brg-tr--active')) { - document.getElementById("cob-content").classList.remove('brg-tr--active'); - } - else { - document.getElementById("cob-content").classList.add('brg-tr--active'); - } - }); - } if (searchckbx) { diff --git a/scripts/components/menu.js b/scripts/components/menu.js index 2f3160e8..d741f829 100644 --- a/scripts/components/menu.js +++ b/scripts/components/menu.js @@ -1,6 +1,5 @@ 'use strict' -// This module controls the City of Boston Main RHS Menu -// --------------------------- + var BostonMenu = (function () { // Set height var secondaryNavs; @@ -10,22 +9,21 @@ var BostonMenu = (function () { var backTriggers; var burger; var placeholder; - // var navMainmenu; - // var sticky; + var navMainmenu; + var sticky; var navLogo; var navFirstItem; - var siteBanner; // activate class for sticky menu - // function mainMenuonScroll() { - // sticky = navMainmenu.offsetTop; - // - // if (window.pageYOffset > sticky) { - // navMainmenu.classList.add("sticky"); - // } else { - // navMainmenu.classList.remove("sticky"); - // } - // } + function mainMenuonScroll() { + sticky = navMainmenu.offsetTop; + + if (window.pageYOffset > sticky) { + navMainmenu.classList.add("sticky"); + } else { + navMainmenu.classList.remove("sticky"); + } + } function handleTrigger(ev, method) { @@ -71,8 +69,7 @@ var BostonMenu = (function () { // Update the title title.innerHTML = trigger.innerHTML; - } - else { + } else { for (var i = 0; i < listItems.length; i++) { if (parentItem != listItems[i]) { listItems[i].classList.remove('nv-m-c-l-i--h'); @@ -95,14 +92,13 @@ var BostonMenu = (function () { function start() { burger = document.getElementById('brg-tr'); - siteBanner = document.querySelector('.dr-h'); navLogo = document.getElementById('logoImg'); listItems = document.querySelectorAll('.nv-m-c-l-i'); backTriggers = document.querySelectorAll('.nv-m-c-b'); secondaryTriggers = document.querySelectorAll('.nolink'); secondaryNavs = document.querySelectorAll('.nv-m-c-l-l'); secondaryNavItems = document.querySelectorAll('.nv-m-c-a--s'); - // navMainmenu = document.getElementById("main-menu"); + navMainmenu = document.getElementById("main-menu"); navFirstItem = document.querySelector('.nv-m-h-i'); var title = document.getElementById('nv-m-h-t'); @@ -163,24 +159,12 @@ var BostonMenu = (function () { secondaryNavItems[i].classList.add('nv-m-c-a--p'); } - // Note when the site_banner is expanded. - if (siteBanner) { - siteBanner.addEventListener("click", function (element) { - if (document.getElementById("cob-content").classList.contains('site-banner--expanded')) { - document.getElementById("cob-content").classList.remove('site-banner--expanded'); - } - else { - document.getElementById("cob-content").classList.add('site-banner--expanded'); - } - }); + if (navMainmenu) { + window.onscroll = function() { + mainMenuonScroll() + }; } - // if (navMainmenu) { - // window.onscroll = function() { - // mainMenuonScroll() - // }; - // } - } return { From 93c2c4cc021fd9d60abcf1d51b4f512d4a444fce Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Mon, 10 Feb 2025 09:48:06 -0500 Subject: [PATCH 04/10] DIG-5636 Add warning message before discarding drafts in Drupal --- stylesheets/patterns-cob-theme.styl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 7bff32fd..7f1e5602 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -507,6 +507,10 @@ label { margin-bottom: 25px; padding-bottom: 3rem } +.paragraphs-item-text .entity-paragraphs-item { + margin-bottom: 0; + padding-bottom: 0 +} .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem } From e48b4e81b3631234f4aebf37d3ebb8a266c7e370 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Tue, 18 Feb 2025 14:39:41 -0500 Subject: [PATCH 05/10] DIG-5685 Reduce padding at bottom of 'Formatted Text' components --- stylesheets/patterns-cob-theme.styl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 7f1e5602..58c49f8a 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -511,6 +511,9 @@ label { margin-bottom: 0; padding-bottom: 0 } +.squiggle-border-bottom, .paragraphs-item-text .entity-paragraphs-item.squiggle-border-bottom { + padding-bottom: 20px; +} .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem } From 8c5638d6db3b2e370be3886d7033b11ef2945939 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Tue, 18 Feb 2025 16:19:18 -0500 Subject: [PATCH 06/10] DIG-5685 Reduce padding at bottom of 'Formatted Text' components --- stylesheets/patterns-cob-theme.styl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 58c49f8a..4312dd1f 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -509,10 +509,7 @@ label { } .paragraphs-item-text .entity-paragraphs-item { margin-bottom: 0; - padding-bottom: 0 -} -.squiggle-border-bottom, .paragraphs-item-text .entity-paragraphs-item.squiggle-border-bottom { - padding-bottom: 20px; + padding-bottom: 20px } .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem From 5a607b9d71ff5f7fd236038829e763809eca9f6a Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 20 Feb 2025 11:22:36 -0500 Subject: [PATCH 07/10] DIG-5685 Reduce padding at bottom of 'Formatted Text' components --- stylesheets/patterns-cob-theme.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 4312dd1f..9ec5cbab 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -509,7 +509,10 @@ label { } .paragraphs-item-text .entity-paragraphs-item { margin-bottom: 0; - padding-bottom: 20px + padding-bottom: 0 +} +.paragraphs-item-text .entity-paragraphs-item .supporting-lg { + padding-bottom: 30px !important } .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem From c7e303e758e3b34fa21fd735ede7e0eb1fe8aebd Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 20 Feb 2025 16:04:09 -0500 Subject: [PATCH 08/10] DIG-5685 Reduce padding at bottom of 'Formatted Text' components --- stylesheets/patterns-cob-theme.styl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 9ec5cbab..de63ed53 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -511,8 +511,8 @@ label { margin-bottom: 0; padding-bottom: 0 } -.paragraphs-item-text .entity-paragraphs-item .supporting-lg { - padding-bottom: 30px !important +.paragraphs-item-text .entity-paragraphs-item .supporting-lg, .paragraphs-item-text .entity-paragraphs-item.paragraphs-item-text-three-column { + padding-bottom: 20px } .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem From 447ec360f632b0252f3a7ed1bc12ef13a20408c7 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 20 Feb 2025 16:19:46 -0500 Subject: [PATCH 09/10] DIG-5685 Reduce padding at bottom of 'Formatted Text' components --- stylesheets/patterns-cob-theme.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index de63ed53..f476efef 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -512,7 +512,7 @@ label { padding-bottom: 0 } .paragraphs-item-text .entity-paragraphs-item .supporting-lg, .paragraphs-item-text .entity-paragraphs-item.paragraphs-item-text-three-column { - padding-bottom: 20px + padding-bottom: 30px } .dr .squiggle-border-bottom .supporting-text { padding-bottom: 3rem From 6be74a7f7b09db73eae14e9de7281ab23f6b166b Mon Sep 17 00:00:00 2001 From: David Upton Date: Mon, 24 Feb 2025 10:02:15 -0500 Subject: [PATCH 10/10] Update percy_snapshot.yml --- .github/workflows/percy_snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/percy_snapshot.yml b/.github/workflows/percy_snapshot.yml index 85681fe4..d6bd5c08 100644 --- a/.github/workflows/percy_snapshot.yml +++ b/.github/workflows/percy_snapshot.yml @@ -103,7 +103,7 @@ jobs: uses: Bhacaz/checkout-files@v2 with: files: .github/percy - branch: master + branch: develop - name: Setup Node 16 uses: actions/setup-node@v3