-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inner list action looks inconsistent with card header action #12291
Comments
|
@mbrookes Fixed the link |
@TrySound Following the specification I think that the list implementation is correct, we can change the card to be more consitent. |
Yep, that would be good. But the issue is mostly about list item action which should follow the same spec. |
I mean it doesn't have media query. |
Looks like the padding on the card-header is reduce at < 600px width, so the negative margin on the icon needs to reduced to compensate which is an easy fix.
Just what I had 😄: marginRight: -12,
[theme.breakpoints.up('sm')]: {
marginRight: -20,
}, However aligning the icon with the ListItem breaks makes the misalignment with the CardActions more obvious: (Top and bottom right icons.) We could add negative margin to the icons in the demo:
|
That is the spec for ListItem, and the action icon follows it. It's about changing the Card to match it. |
is |
<!-- 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)
Inner list action looks inconsistent with card header action
Expected Behavior
More consistent spaces
Current Behavior
Steps to Reproduce
Link: https://codesandbox.io/s/n55mqrjpjj
The text was updated successfully, but these errors were encountered: