Skip to content

Commit ca6919d

Browse files
authored
[Card] Align icons with ListItem (#12292)
<!-- Thanks so much for your PR, your contribution is appreciated! ❤️ --> Closes #12291 ![image](https://user-images.githubusercontent.com/357702/43292552-be1ede14-912d-11e8-9dca-9f05755242e3.png)
1 parent 9c67189 commit ca6919d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/src/pages/demos/cards/RecipeReviewCard.js

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const styles = theme => ({
3434
duration: theme.transitions.duration.shortest,
3535
}),
3636
marginLeft: 'auto',
37+
[theme.breakpoints.up('sm')]: {
38+
marginRight: -8,
39+
},
3740
},
3841
expandOpen: {
3942
transform: 'rotate(180deg)',

packages/material-ui/src/CardHeader/CardHeader.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export const styles = theme => ({
2222
flex: '0 0 auto',
2323
alignSelf: 'flex-start',
2424
marginTop: -8,
25-
marginRight: -16,
25+
marginRight: -12,
26+
[theme.breakpoints.up('sm')]: {
27+
marginRight: -20,
28+
},
2629
},
2730
/* Styles applied to the content wrapper element. */
2831
content: {

0 commit comments

Comments
 (0)