From 1db03fab1496ffcbad7f9c3e14bdddfbe69b51d2 Mon Sep 17 00:00:00 2001 From: alinarublea Date: Tue, 8 Aug 2023 19:15:22 +0200 Subject: [PATCH 1/3] issue-873 - transform to bold column bullets --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index bbe7cfc43..76ed81b71 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -240,7 +240,7 @@ export function decorateLinks(main) { // decorate video links if (isVideo(url) && !link.closest('.block.hero-advanced') && !link.closest('.block.hero')) { const closestButtonContainer = link.closest('.button-container'); - if (link.closest('.block.cards') || (closestButtonContainer && closestButtonContainer.querySelector('strong'))) { + if (link.closest('.block.cards') || (closestButtonContainer && (closestButtonContainer.querySelector('strong') || closestButtonContainer.querySelector('em')))) { videoButton(link.closest('div'), link, url); } else { const up = link.parentElement; From 5ffe7ad4f43ca8a1aa2296eb9f278dbf9a130a45 Mon Sep 17 00:00:00 2001 From: alinarublea Date: Wed, 9 Aug 2023 10:39:18 +0200 Subject: [PATCH 2/3] Update scripts/scripts.js Co-authored-by: Alex Carol --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 76ed81b71..78c73b547 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -240,7 +240,7 @@ export function decorateLinks(main) { // decorate video links if (isVideo(url) && !link.closest('.block.hero-advanced') && !link.closest('.block.hero')) { const closestButtonContainer = link.closest('.button-container'); - if (link.closest('.block.cards') || (closestButtonContainer && (closestButtonContainer.querySelector('strong') || closestButtonContainer.querySelector('em')))) { + if (link.closest('.block.cards') || (closestButtonContainer && closestButtonContainer.querySelector('strong,em')))) { videoButton(link.closest('div'), link, url); } else { const up = link.parentElement; From 14d7ce8a6a627fba18975119bc785836c6355410 Mon Sep 17 00:00:00 2001 From: alinarublea Date: Wed, 9 Aug 2023 10:41:14 +0200 Subject: [PATCH 3/3] issue-873 - transform to bold column bullets --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 78c73b547..a2790504c 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -240,7 +240,7 @@ export function decorateLinks(main) { // decorate video links if (isVideo(url) && !link.closest('.block.hero-advanced') && !link.closest('.block.hero')) { const closestButtonContainer = link.closest('.button-container'); - if (link.closest('.block.cards') || (closestButtonContainer && closestButtonContainer.querySelector('strong,em')))) { + if (link.closest('.block.cards') || (closestButtonContainer && closestButtonContainer.querySelector('strong,em'))) { videoButton(link.closest('div'), link, url); } else { const up = link.parentElement;