Skip to content

Commit

Permalink
Support Collapse with root and container class keys (#408)
Browse files Browse the repository at this point in the history
Fixes #394.
  • Loading branch information
joshkel authored Jul 25, 2021
1 parent 066cb52 commit 7104b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SnackbarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { SNACKBAR_INDENTS } from './utils/constants';
import { SnackbarProviderProps } from '.';

const collapse = {
container: '& > .MuiCollapse-container',
wrapper: '& > .MuiCollapse-container > .MuiCollapse-wrapper',
// Material-UI 4.12.x and above uses MuiCollapse-root; earlier versions use
// Mui-Collapse-container. https://github.com/mui-org/material-ui/pull/24084
container: '& > .MuiCollapse-container, & > .MuiCollapse-root',
wrapper: '& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper',
};

const xsWidthMargin = 16;
Expand Down

0 comments on commit 7104b14

Please sign in to comment.