From bace8286fd36ed16eb75892bf81f45cba54e3869 Mon Sep 17 00:00:00 2001 From: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:18:00 -0500 Subject: [PATCH] fix: studio dropdown hover styles (#433) --- example/index.js | 31 +++++++- src/index.scss | 8 +-- src/studio-header/CourseLockUp.jsx | 2 +- src/studio-header/HeaderBody.jsx | 39 +++++----- src/studio-header/MobileHeader.jsx | 3 - src/studio-header/NavDropdownMenu.jsx | 4 +- src/studio-header/StudioHeader.jsx | 9 +-- src/studio-header/StudioHeader.scss | 49 +++++++++++++ src/studio-header/header.scss | 64 ----------------- src/studio-header/messages.js | 100 -------------------------- 10 files changed, 114 insertions(+), 195 deletions(-) create mode 100644 src/studio-header/StudioHeader.scss delete mode 100644 src/studio-header/header.scss diff --git a/example/index.js b/example/index.js index e9b44a531..2559c03d4 100644 --- a/example/index.js +++ b/example/index.js @@ -7,6 +7,7 @@ import { AppContext, AppProvider } from '@edx/frontend-platform/react'; import Header from '@edx/frontend-component-header'; import './index.scss'; +import StudioHeader from '../src/studio-header/StudioHeader'; subscribe(APP_READY, () => { ReactDOM.render( @@ -32,7 +33,35 @@ subscribe(APP_READY, () => { }}>
-
Logged in state
+
Logged in state
+ + + +
Logged in state for Studio header
, document.getElementById('root'), ); diff --git a/src/index.scss b/src/index.scss index 355ae0771..1d31c9bab 100644 --- a/src/index.scss +++ b/src/index.scss @@ -3,7 +3,7 @@ $blue: #007db8; $white: #fff; @import './Menu/menu.scss'; -@import './studio-header/header.scss'; +@import './studio-header/StudioHeader.scss'; .dropdown-item a { text-decoration: none; @@ -43,9 +43,9 @@ $white: #fff; .user-dropdown { .btn { height: 3rem; - @media (max-width: -1 + map-get($grid-breakpoints, "sm")) { - padding: 0 0.5rem; - } + // @media (max-width: -1 + map-get($grid-breakpoints, "sm")) { + // padding: 0 0.5rem; + // } } } } diff --git a/src/studio-header/CourseLockUp.jsx b/src/studio-header/CourseLockUp.jsx index d4946c93d..386fa1d01 100644 --- a/src/studio-header/CourseLockUp.jsx +++ b/src/studio-header/CourseLockUp.jsx @@ -24,7 +24,7 @@ const CourseLockUp = ({ )} > + {isHiddenMainMenu ? ( @@ -64,17 +64,19 @@ const HeaderBody = ({ Menu ) : ( - - {renderBrandNav} - - +
+ + {renderBrandNav} + + +
)} {isMobile ? ( <> @@ -82,11 +84,11 @@ const HeaderBody = ({ {renderBrandNav} ) : ( -