Skip to content

Commit

Permalink
merch-card-collection in section
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Oct 9, 2023
1 parent 6a26c3a commit b263f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/blocks/merch-card/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ const getMerchCardRows = (rows, ribbonMetadata, cardType, actionMenuContent) =>
return rows[0];
}
}
}
} else {
return rows[ribbonMetadata === null ? 0 : 1];
}
};

const init = (el) => {
const section = el.closest('.section');
section.classList.add('merch-card-collection');
const headings = el.querySelectorAll('h1, h2, h3, h4, h5, h6');
decorateLinkAnalytics(el, headings);
const images = el.querySelectorAll('picture');
Expand Down

0 comments on commit b263f76

Please sign in to comment.