Merge pull request #26053 from mahendra1290/fix-25888-mahendra

Fix: UI Issue with Sidebar Submenu Overlapping When Sidebar is Pinned
This commit is contained in:
Patrik Oldsberg
2024-09-25 14:46:40 +02:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Fixed a bug in the `SidebarSubmenu` core component that caused the nested menu to overlap with the sidebar when the user hovers over the pinned sidebar.
@@ -46,11 +46,12 @@ const useStyles = makeStyles<
flexFlow: 'column nowrap',
alignItems: 'flex-start',
position: 'fixed',
opacity: 0,
[theme.breakpoints.up('sm')]: {
marginLeft: props.left,
transition: theme.transitions.create('margin-left', {
transition: theme.transitions.create(['margin-left', 'opacity'], {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.shortest,
duration: props.submenuConfig.defaultOpenDelayMs,
}),
},
top: 0,
@@ -71,6 +72,8 @@ const useStyles = makeStyles<
},
}),
drawerOpen: props => ({
marginLeft: props.left,
opacity: 1,
width: props.submenuConfig.drawerWidthOpen,
[theme.breakpoints.down('xs')]: {
width: '100%',