diff --git a/src/components/nav/__styles__/index.ts b/src/components/nav/__styles__/index.ts index f49eb048..61225539 100644 --- a/src/components/nav/__styles__/index.ts +++ b/src/components/nav/__styles__/index.ts @@ -350,3 +350,11 @@ export const ElNavResponsiveAppSwitcherIconWrap = styled.div` } } ` + +export const elNewTopBarAppSwitcher = css` + ${ElNavResponsiveAppSwitcherIconWrap} { + margin-right: 0; + padding: var(--spacing-half); + box-sizing: content-box; + } +` diff --git a/src/components/nav/nav-responsive.tsx b/src/components/nav/nav-responsive.tsx index 70f88fe1..a017ac8b 100644 --- a/src/components/nav/nav-responsive.tsx +++ b/src/components/nav/nav-responsive.tsx @@ -72,6 +72,7 @@ export interface NavResponsiveAvatarProps { export interface NavResponsiveAppSwitcherProps { options: NavResponsiveAppSwitcherOption[] + className?: string // Note: probably only required for new AppBar } export type LogoIcon = 'reapitLogoSelectedMenu' | 'reapitLogoMenu' @@ -141,7 +142,7 @@ export const NavResponsiveAvatar: FC = ({ options, isH ) } -export const NavResponsiveAppSwitcher: FC = ({ options }) => { +export const NavResponsiveAppSwitcher: FC = ({ options, className }) => { const [appSwitcherOpen, setAppSwitcherOpen] = useState(false) const marketplaceCallback = () => { @@ -164,6 +165,7 @@ export const NavResponsiveAppSwitcher: FC = ({ op onKeyDown={handleKeyboardEvent('Enter', handleToggleMenu(setAppSwitcherOpen))} role="button" tabIndex={0} + className={className} > diff --git a/src/components/top-bar/__test__/__snapshots__/top-bar.test.tsx.snap b/src/components/top-bar/__test__/__snapshots__/top-bar.test.tsx.snap index 1fb79a21..ef11a0ab 100644 --- a/src/components/top-bar/__test__/__snapshots__/top-bar.test.tsx.snap +++ b/src/components/top-bar/__test__/__snapshots__/top-bar.test.tsx.snap @@ -4,45 +4,50 @@ exports[`TopBar Snapshot > should match snapshot 1`] = `