Skip to content

Commit

Permalink
[CardActions] Fix CSS override (#11092)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 21, 2018
1 parent 1d9e576 commit 643460a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/material-ui/src/Card/CardActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { cloneChildrenWithClassName } from '../utils/reactHelpers';
import '../Button'; // So we don't have any override priority issue.

export const styles = theme => ({
root: {
Expand Down
6 changes: 3 additions & 3 deletions packages/material-ui/src/Dialog/DialogActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import '../Button'; // So we don't have any override priority issue.

export const styles = theme => ({
root: {
flex: '0 0 auto',
margin: `${theme.spacing.unit}px ${theme.spacing.unit / 2}px`,
display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center',
justifyContent: 'flex-end',
flex: '0 0 auto',
margin: `${theme.spacing.unit}px ${theme.spacing.unit / 2}px`,
},
action: {
margin: `0 ${theme.spacing.unit / 2}px`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { cloneChildrenWithClassName } from '../utils/reactHelpers';
import '../Button'; // So we don't have any override priority issue.

export const styles = theme => ({
root: {
display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center',
justifyContent: 'flex-end',
padding: `${theme.spacing.unit * 2}px ${theme.spacing.unit}px`,
},
action: {
Expand Down

0 comments on commit 643460a

Please sign in to comment.