Skip to content

Commit

Permalink
fix: fix links in footer block
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Christiani committed Mar 27, 2024
1 parent 70d7516 commit 47426da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions blocks/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,17 @@ export default async function decorate(block) {
// social icons
block.querySelector('.footer > div > div:last-of-type')
.classList.add('footer-social');

// move social elements
const footerSocialElement = block.querySelector('.footer-social');
footerSocialElement.querySelectorAll('p.button-container').forEach((ele) => {
footerSocialElement.appendChild(ele);
});
footerSocialElement.querySelector('div.default-content-wrapper').remove();

// remove class button-container and button
block.querySelectorAll('p.button-container').forEach((ele) => {
ele.classList.remove('button-container');
ele.querySelector('a').classList.remove('button');
});
}

0 comments on commit 47426da

Please sign in to comment.