Skip to content

Commit

Permalink
fix nested MenuList padding
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilan committed May 30, 2024
1 parent 070d1cc commit 9dcaee4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-ui/src/components/molecules/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ const StyledMenu = styled(MuiMenu, {
shouldForwardProp: (prop) => !['extended', 'width', 'height'].includes(prop)
})(({ extended, width, height, theme }) => ({
'.MuiMenu-list': {
backgroundColor: '#ff970038 !important' // TODO: remove, just for QA purposes
backgroundColor: '#ff970038 !important', // TODO: remove, just for QA purposes

'& .MuiList-root': {
backgroundColor: 'transparent !important' // TODO: remove, just for QA purposes,
}
},
...(extended && {
'.MuiMenuItem-root': {
Expand Down
4 changes: 4 additions & 0 deletions packages/react-ui/src/components/molecules/MenuList.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const StyledMenuList = styled(MuiMenuList, {
'&.MuiList-root': {
backgroundColor: '#ff970038 !important', // TODO: remove, just for QA purposes

'& .MuiList-root': {
backgroundColor: 'transparent !important' // TODO: remove, just for QA purposes,
},

...(width && {
width: width,
minWidth: width
Expand Down
3 changes: 3 additions & 0 deletions packages/react-ui/src/theme/sections/components/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export const navigationOverrides = {

// Indent sublevels, ugly but needed to avoid issues with hover
'& .MuiList-root': {
paddingTop: 0,
paddingBottom: 0,

'& .MuiListItem-root': {
paddingLeft: theme.spacing(4)
},
Expand Down

0 comments on commit 9dcaee4

Please sign in to comment.