Skip to content

Commit

Permalink
Update holiday-blade.js
Browse files Browse the repository at this point in the history
  • Loading branch information
echen-adobe committed Nov 14, 2024
1 parent 6a7438d commit 2409b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions express/blocks/holiday-blade/holiday-blade.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ async function decorateHoliday(block, props) {
toggleBar.classList.add('toggle-bar');
const toggleChev = createTag('div', { class: 'toggle-button-chev' });
const staticImage = rows[0].children[1].querySelector('img');
if (staticImage){
if (staticImage) {
block.classList.add('static-background');
staticImage.classList.add('static-background-image');
}
toggleBar.append(toggleChev);

const backgroundStyle = rows[0].children[1].querySelector('strong')
const backgroundStyle = rows[0].children[1].querySelector('strong');
if (backgroundStyle) {
block.style.background = backgroundStyle.textContent
backgroundStyle.remove()
block.style.background = backgroundStyle.textContent;
backgroundStyle.remove();
}

const animationLink = rows[0].children[1].querySelector('a');
Expand Down

0 comments on commit 2409b5b

Please sign in to comment.