diff --git a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx index c0ac53ed9..988f98d44 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx @@ -255,9 +255,9 @@ function LeftSidebarToggleButton() { if (hasMainMenu) { return ( { dispatch(toggleLeftSidebarVisible()); }} @@ -277,16 +277,13 @@ function RightSidebarToggleButton() { (state) => state.application.rightSidebarVisible, ); - if (!rightSidebarAvailable) { - return null; - } - return ( { dispatch(toggleRightSidebarVisible()); }} @@ -320,6 +317,16 @@ const badgeCountClassname = css` margin-top: 8px; } `; + +const hideBorderWhenDisabled = css` + :disabled { + border-color: transparent !important; + } + :disabled:hover { + border-color: ${theme.disabledColor} !important; + } +`; + export function NavbarButton({ icon: Icon, label, @@ -343,10 +350,12 @@ export function NavbarButton({ const color = toggled ? theme.primaryColor : theme.textColorActive; const button = (