Merge pull request #29595 from JPeer264/fix/JP/safari-overflow

fix safari sidebar overflow
This commit is contained in:
Fredrik Adelöw
2025-04-24 13:35:35 +02:00
committed by GitHub
2 changed files with 16 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Fix the hidden sidebar's sub-menu when the sidebar is scrollable
@@ -41,15 +41,21 @@ import { coreComponentsTranslationRef } from '../../translation';
export type SidebarClassKey = 'drawer' | 'drawerOpen';
const useStyles = makeStyles<Theme, { sidebarConfig: SidebarConfig }>(
theme => ({
drawer: {
display: 'flex',
flexFlow: 'column nowrap',
alignItems: 'flex-start',
position: 'fixed',
root: {
left: 0,
top: 0,
bottom: 0,
zIndex: theme.zIndex.appBar,
position: 'fixed',
},
drawer: {
display: 'flex',
flexFlow: 'column nowrap',
alignItems: 'flex-start',
left: 0,
top: 0,
bottom: 0,
position: 'absolute',
background: theme.palette.navigation.background,
overflowX: 'hidden',
msOverflowStyle: 'none',