Skip to content

Commit

Permalink
EDERCMS-137: Add no-headline contact block
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Morbitzer committed Oct 2, 2024
1 parent fa76ea4 commit d935a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/contacts/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default async function decorate(block) {
});

// add headline if sidebar contains contacts block
if (hasBodyClass('has-sidebar')) {
if (hasBodyClass('has-sidebar') && !block.classList.contains('no-headline')) {
const contact = document.body.querySelector('.section.sidebar > .contacts-wrapper');

if (contact && !contact.querySelector(':scope > .contact-headline')) {
Expand Down

0 comments on commit d935a72

Please sign in to comment.