Skip to content

Commit

Permalink
[ExpansionPanel] Unify paddings with ListItem and similar components (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
esseswann authored Apr 17, 2020
1 parent 4dc5803 commit 3e24fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';

export const styles = {
export const styles = (theme) => ({
/* Styles applied to the root element. */
root: {
display: 'flex',
padding: '8px 24px 24px',
padding: theme.spacing(1, 2, 2),
},
};
});

const ExpansionPanelDetails = React.forwardRef(function ExpansionPanelDetails(props, ref) {
const { classes, className, ...other } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const styles = (theme) => {
display: 'flex',
minHeight: 8 * 6,
transition: theme.transitions.create(['min-height', 'background-color'], transition),
padding: theme.spacing(0, 3),
padding: theme.spacing(0, 2),
'&:hover:not($disabled)': {
cursor: 'pointer',
},
Expand Down

0 comments on commit 3e24fdd

Please sign in to comment.