diff --git a/blocks/accordion/accordion.css b/blocks/accordion/accordion.css index 087705c8..aa152dfe 100644 --- a/blocks/accordion/accordion.css +++ b/blocks/accordion/accordion.css @@ -123,7 +123,7 @@ main .expand-btn, .collapse-btn { /* Tablet */ @media only screen and (min-width: 768px) { main .accordion { - padding: 20px 0; + padding: 14px 0; } main .accordion.faq-accordion .faq-question { diff --git a/blocks/accordion/accordion.js b/blocks/accordion/accordion.js index 4e9beb67..814bc7ad 100644 --- a/blocks/accordion/accordion.js +++ b/blocks/accordion/accordion.js @@ -46,6 +46,11 @@ export default function decorate(block) { }); } const faqRows = [...block.children]; + faqRows.forEach((ele) => { + if (ele.children[0].innerHTML === '') { + ele.remove(); + } + }); faqRows.forEach((row) => { const faqQuestion = [...row.children][0]; faqQuestion.classList.add('faq-question');