Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(list): item-inner should be not wider than the container
Browse files Browse the repository at this point in the history
* List Item Content should be not wider than the container, this will cause overflow issues
* Background Color of the Button Wrap should not inherit its parent, otherwise the text will be unreadable, if the button overlays with a fixed background color

Fixes #7551. Fixes #7525. Closes #7531.
  • Loading branch information
devversion authored and ThomasBurleson committed Mar 14, 2016
1 parent dfa0a0c commit 9158589
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,13 @@ md-list-item {
align-items: center;
justify-content: flex-start;

padding: 0;
padding: 0 16px;
margin: 0;

// The button should not inherit the parents background color.
background-color: initial;

font-weight: 400;
background-color: inherit;
@include rtl(text-align, left, right);
border: medium none;

Expand All @@ -151,16 +153,16 @@ md-list-item {
position: absolute;
top: 0;
left: 0;
height: 100%;

margin: 0;
padding: 0;
height: 100%;
}

._md-list-item-inner {
// The list item content should fill the complete width.
flex: 1 1 auto;
padding: 0 16px;
width: 100%;
height: 100%;
}

}
Expand Down

0 comments on commit 9158589

Please sign in to comment.