From 1d23bc82facc0fa834cfea5c10123c91fde84f8a Mon Sep 17 00:00:00 2001 From: Dragana Trajkovic Date: Fri, 19 Jul 2024 15:54:08 +0200 Subject: [PATCH 1/5] small fixes + background-color --- edsdme/components/PartnerCards.js | 20 +++++++++---- edsdme/components/PartnerCardsStyles.js | 40 ++++++++++++------------- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/edsdme/components/PartnerCards.js b/edsdme/components/PartnerCards.js index 0909593..396fc3f 100644 --- a/edsdme/components/PartnerCards.js +++ b/edsdme/components/PartnerCards.js @@ -137,6 +137,11 @@ export default class PartnerCards extends LitElement { const paginationType = paginationEl.innerText.trim(); if (paginationType) this.blockData.pagination = paginationType.toLowerCase().replace(/ /g, '-'); }, + 'background-color': (cols) => { + const [backgroundColorEl] = cols; + const backgroundColor = backgroundColorEl.innerText.trim(); + if (backgroundColor) this.blockData.backgroundColor = backgroundColor; + }, }; const rows = Array.from(this.blockData.tableData); @@ -367,7 +372,7 @@ export default class PartnerCards extends LitElement {
- +