From b36a07f9888851228fb02cc16fc90cbd19a52ec5 Mon Sep 17 00:00:00 2001 From: Dejan Preradovic Date: Wed, 11 Sep 2024 15:36:49 +0200 Subject: [PATCH 1/2] MWPW-157753 - make only edit profile anchor clickable --- .../features/profile/dropdown.css | 7 ++++++- .../features/profile/dropdown.js | 20 ++++++++++--------- .../partners-navigation.css | 4 +++- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/edsdme/blocks/partners-navigation/features/profile/dropdown.css b/edsdme/blocks/partners-navigation/features/profile/dropdown.css index 04d02a7..9424d40 100644 --- a/edsdme/blocks/partners-navigation/features/profile/dropdown.css +++ b/edsdme/blocks/partners-navigation/features/profile/dropdown.css @@ -42,6 +42,9 @@ .feds-profile-header .feds-profile-img { max-height: 64px; max-width: 64px; + + /* MWPW-157753 - profile image should not be clickable */ + pointer-events: none; } .feds-profile-details { @@ -72,7 +75,9 @@ margin: 0; font-size: 14px; text-decoration: underline; - color: var(--feds-color-profile); + + /* MWPW-157753 - to meet requirements */ + color: var(--link-color); } .feds-local-menu { diff --git a/edsdme/blocks/partners-navigation/features/profile/dropdown.js b/edsdme/blocks/partners-navigation/features/profile/dropdown.js index 07423b2..7e55802 100644 --- a/edsdme/blocks/partners-navigation/features/profile/dropdown.js +++ b/edsdme/blocks/partners-navigation/features/profile/dropdown.js @@ -2,6 +2,7 @@ import { toFragment, getFedsPlaceholderConfig, trigger, closeAllDropdowns, logEr // Partners navigation import { getLibs } from '../../../../scripts/utils.js'; + const miloLibs = getLibs(); const { replaceKeyArray } = await import(`${miloLibs}/features/placeholders.js`); const { getConfig } = await import(`${miloLibs}/utils/utils.js`); @@ -130,22 +131,23 @@ class ProfileDropdown { tabindex="0" alt="${this.placeholders.profileAvatar}" data-url="${decorateEditProfileLink()}">`; + // MWPW-157753 - only Edit user profile link should be clickable return toFragment`
- + ${this.localMenu ? this.decorateLocalMenu() : ''}