Skip to content

Commit

Permalink
fix(react-scheduler): fix container classes (#3456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krijovnick authored Nov 30, 2021
1 parent ce90225 commit 1b40305
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'clsx';
import { styled } from '@mui/material/styles';

const PREFIX = 'Container';

export const classes = {
container: `${PREFIX}-container`,
};

const StyledDiv = styled('div')(() => ({
[`&.${classes.container}`]: {
WebkitOverflowScrolling: 'touch',
// NOTE: fix sticky positioning in Safari
width: '100%',
height: '100%',
position: 'relative',
display: 'flex',
flexDirection: 'column',
},
}));

export const ContainerBase = ({
children, className, ...restProps
}) => (
<StyledDiv className={classNames(classes.container, className)} {...restProps}>
<div className={classNames(classes.container, className)} {...restProps}>
{children}
</StyledDiv>
</div>
);

ContainerBase.propTypes = {
Expand Down

0 comments on commit 1b40305

Please sign in to comment.