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

[core] Fix some DashboardLayout bugs and make some docs examples more consis… #3905

Merged
merged 12 commits into from
Aug 9, 2024
Prev Previous commit
Next Next commit
Add todos
  • Loading branch information
apedroferreira committed Aug 9, 2024
commit 5658dc02bbb7ddbdae6a513e1ad1fa8813d0521e
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const AppBar = styled(MuiAppBar)(({ theme }) => ({
borderStyle: 'solid',
borderColor: (theme.vars ?? theme).palette.divider,
boxShadow: 'none',
// TODO: Temporary fix to issue reported in https://github.com/mui/material-ui/issues/43244
left: 0,
zIndex: theme.zIndex.drawer + 1,
}));
Expand Down Expand Up @@ -382,7 +383,10 @@ function DashboardLayout(props: DashboardLayoutProps) {
return (
<Box sx={{ display: 'flex' }}>
<AppBar color="inherit" position="fixed">
<Toolbar sx={{ backgroundColor: 'inherit', width: '100vw' }}>
{
// TODO: Temporary fix to issue reported in https://github.com/mui/material-ui/issues/43244
}
<Toolbar sx={{ backgroundColor: 'inherit', minWidth: '100vw' }}>
<Box sx={{ display: { xs: 'block', md: 'none' } }}>
<Tooltip
title={`${isMobileNavigationOpen ? 'Close' : 'Open'} menu`}
Expand Down Expand Up @@ -470,6 +474,7 @@ function DashboardLayout(props: DashboardLayoutProps) {
component="main"
sx={{
flexGrow: 1,
// TODO: Temporary fix to issue reported in https://github.com/mui/material-ui/issues/43244
minWidth: { xs: isMobileNavigationOpen ? '100vw' : 'auto', md: 'auto' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment to the github issue on mui core repository that tracks the issues with the responsive drawer demo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raised the issue in mui/material-ui#43244 and added todo comments in 5658dc0

}}
>
Expand Down
Loading