From f012ff48f9c7c21f9edcc7c3cb99f5a0eb891e6b Mon Sep 17 00:00:00 2001 From: Dragana Trajkovic Date: Mon, 22 Jul 2024 14:12:10 +0200 Subject: [PATCH 1/2] MWPW-154747 - date filter resets on clear all --- edsdme/components/PartnerCards.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/edsdme/components/PartnerCards.js b/edsdme/components/PartnerCards.js index 0909593..fe42b32 100644 --- a/edsdme/components/PartnerCards.js +++ b/edsdme/components/PartnerCards.js @@ -511,11 +511,10 @@ export default class PartnerCards extends LitElement { filter.tags.forEach((tag) => tag.checked = false); this.urlSearchParams.delete(filter.key); }); - this.urlSearchParams.delete('filters'); this.additionalResetActions(); this.paginationCounter = 1; this.handleActions(); - this.handleUrlSearchParams(); + if (this.blockData.filters.length) this.handleUrlSearchParams(); } // eslint-disable-next-line class-methods-use-this From 01d102e1922845b8cf3266815234cd76a28f3be0 Mon Sep 17 00:00:00 2001 From: Dragana Trajkovic Date: Mon, 22 Jul 2024 14:12:47 +0200 Subject: [PATCH 2/2] MWPW-154747 - added back and filter icons for mobile --- edsdme/components/PartnerCardsStyles.js | 4 ++-- edsdme/img/icons/back.svg | 3 +++ edsdme/img/icons/filters.svg | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 edsdme/img/icons/back.svg create mode 100644 edsdme/img/icons/filters.svg diff --git a/edsdme/components/PartnerCardsStyles.js b/edsdme/components/PartnerCardsStyles.js index 74314db..5a5a975 100644 --- a/edsdme/components/PartnerCardsStyles.js +++ b/edsdme/components/PartnerCardsStyles.js @@ -356,7 +356,7 @@ export const partnerCardsStyles = css` height: 18px; margin-right: 8px; background-color: #fff; - background: no-repeat url(/eds/img/icons/filters.svg) 0 0; + background: no-repeat url(/edsdme/img/icons/filters.svg) 0 0; } .partner-cards-header .partner-cards-sort-wrapper .filters-btn-mobile-title { @@ -586,7 +586,7 @@ export const partnerCardsStyles = css` line-height: 0; border: none; border-radius: 50%; - background: transparent url(/eds/img/icons/back.svg) no-repeat 50% 50%; + background: transparent url(/edsdme/img/icons/back.svg) no-repeat 50% 50%; outline: 0; cursor: pointer; } diff --git a/edsdme/img/icons/back.svg b/edsdme/img/icons/back.svg new file mode 100644 index 0000000..a3bcc21 --- /dev/null +++ b/edsdme/img/icons/back.svg @@ -0,0 +1,3 @@ + + + diff --git a/edsdme/img/icons/filters.svg b/edsdme/img/icons/filters.svg new file mode 100644 index 0000000..fd04f4a --- /dev/null +++ b/edsdme/img/icons/filters.svg @@ -0,0 +1,5 @@ + + + + +