Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuItemLink is not clipped under AppBar when scrolling on large screen media #4304

Closed
smeng9 opened this issue Jan 16, 2020 · 5 comments · Fixed by #4315
Closed

MenuItemLink is not clipped under AppBar when scrolling on large screen media #4304

smeng9 opened this issue Jan 16, 2020 · 5 comments · Fixed by #4315
Assignees
Labels

Comments

@smeng9
Copy link
Contributor

smeng9 commented Jan 16, 2020

What you were expecting:

I expect MenuItem of SideBar is always below AppBar on large screen media

What happened instead:

MenuItem of SideBar is above AppBar on large screen media

Steps to reproduce:

Here is the codesandbox environment https://codesandbox.io/s/patient-night-gfe2k
Set the view to about 1000 x 700 resolution, then try to scroll a little bit on the view, before the AppBar hides itself. You will see the buttons' z-index of the SideBar menu is above the AppBar, and covers the toggle button.

Related code:

MaterialUI defines AppBar's z-index to be 1100 and Drawer's z-index to be 1200. Maybe that is the reason Drawer's items' z-index is above AppBar's z-index, as they get inherited.

Other information:

Environment

  • React-admin version: 3.1.2
  • Last version that did not exhibit the issue (if applicable): 2.9.9
  • React version: 16.12.0
  • Browser: Firefox 71
  • Stack trace (in case of a JS error): None for a CSS/Styling issue
@fzaninotto
Copy link
Member

Could you please attacha a screenshot of the problem?

@fzaninotto
Copy link
Member

I've reproduced it. Marking it as a bug. Thanks for the report.

image

@fzaninotto
Copy link
Member

There is something weird: I cannot reproduce it locally. there must be something special about your Layout customization.

@fzaninotto
Copy link
Member

OK, this bug is due to a regression in 'material-ui/core' between 4.3.3 and 4.8.0

@fzaninotto
Copy link
Member

The regression was introduced by mui/material-ui#18866: we were able to replace Drawer CSS in the past, not we can only merge into them.

@fzaninotto fzaninotto self-assigned this Jan 17, 2020
fzaninotto added a commit that referenced this issue Jan 17, 2020
JulienMattiussi pushed a commit that referenced this issue Jan 28, 2020
JulienMattiussi pushed a commit that referenced this issue Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants