Merge pull request #29595 from JPeer264/fix/JP/safari-overflow
fix safari sidebar overflow
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user