Skip to content

Commit

Permalink
fix(PermissionDialog): Show overflow icon on iOS
Browse files Browse the repository at this point in the history
MUI adds a `-webkit-overflow-scrolling` property to manage scrolling on iOS. This is act as a counter-effect to `overflow-y: visible` of the parent to display the icon beyond the modal.
cballevre committed Jul 10, 2024
1 parent 6dd61b4 commit f9f6073
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/MuiCozyTheme/overrides/makeLightNormalOverrides.js
Original file line number Diff line number Diff line change
@@ -456,7 +456,10 @@ export const makeLightNormalOverrides = theme => ({
}
},
'&.overflow': {
overflowY: 'visible !important' // Allow the icon to overflow the dialog, otherwise it will be cut off
overflowY: 'visible !important', // Allow the icon to overflow the dialog, otherwise it will be cut off,
'& .cozyDialogContent': {
overflowY: 'visible !important' // This allow the overflow to work also on iOS
}
}
},
scrollPaper: {

0 comments on commit f9f6073

Please sign in to comment.