From b0c3d740a0ac308b284590328d53c16dbaffeb13 Mon Sep 17 00:00:00 2001 From: Arunmozhi Date: Fri, 24 Jul 2026 15:40:41 +1000 Subject: [PATCH] fix: showUserDropdown hiding LearningHeaderActionsSlot The showUserDropdown prop gates both the LearningHeaderActionsSlot and the AuthenticatedUserDropdown. This makes it impossible to just hide the userDropdown without also hiding all the action items like the help menu and the notifications. This commit applies the `showUserDropdown` gate to just the user dropdown menu. Ref: https://github.com/openedx/frontend-component-header/issues/675 --- src/learning-header/LearningHeader.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/learning-header/LearningHeader.jsx b/src/learning-header/LearningHeader.jsx index 9d70ee28f..a5fa0de1e 100644 --- a/src/learning-header/LearningHeader.jsx +++ b/src/learning-header/LearningHeader.jsx @@ -37,12 +37,14 @@ const LearningHeader = ({
- {showUserDropdown && authenticatedUser && ( + {authenticatedUser && ( <> - + {showUserDropdown && ( + + )} )} {showUserDropdown && !authenticatedUser && (