File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/app/src/components/Root Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import { useSidebarSelectedBackgroundColor } from '../../hooks/useThemedConfig';
1010const StyledSidebarItemWrapper = styled ( 'div' ) < {
1111 selectedBackgroundColor : string ;
1212} > ( ( { selectedBackgroundColor } ) => ( {
13+ // Add spacing between sidebar items to prevent hover overlap
14+ marginBottom : '4px' ,
15+
1316 // Target the selected/active sidebar item
1417 '& a[aria-current="page"]' : {
1518 backgroundColor : `${ selectedBackgroundColor } !important` ,
@@ -27,6 +30,10 @@ const GlobalSidebarStyles: React.FC<{ selectedBackgroundColor: string }> = ({
2730 [class*="BackstageSidebarItem-selected"] {
2831 background-color: ${ selectedBackgroundColor } !important;
2932 }
33+ /* Add spacing between all sidebar items to prevent hover overlap */
34+ [class*="BackstageSidebarItem-root"] {
35+ margin-bottom: 4px;
36+ }
3037 ` ;
3138 document . head . appendChild ( style ) ;
3239
Original file line number Diff line number Diff line change @@ -211,8 +211,7 @@ const SidebarScrollableContent = styled(Box)(({ theme }) => ({
211211 } ,
212212 } ,
213213
214- // Firefox scrollbar - thin and auto-hiding
215- scrollbarWidth : 'thin' ,
214+ // Firefox scrollbar to auto-hide it
216215 scrollbarColor : 'transparent transparent' ,
217216 '&:hover' : {
218217 scrollbarColor : `${
@@ -237,15 +236,13 @@ const renderExpandIcon = (expand: boolean) => {
237236 fontSize = "small"
238237 style = { {
239238 display : 'flex' ,
240- marginLeft : 8 ,
241239 } }
242240 />
243241 ) : (
244242 < ChevronRightIcon
245243 fontSize = "small"
246244 style = { {
247245 display : 'flex' ,
248- marginLeft : 8 ,
249246 } }
250247 />
251248 ) ;
You can’t perform that action at this time.
0 commit comments