Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(list): focus covers whole row, IE11 layout fix
Browse files Browse the repository at this point in the history
Closes #2222. Closes #2240.
  • Loading branch information
Marcy Sutton authored and ThomasBurleson committed Apr 10, 2015
1 parent 2c57a82 commit b47a878
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
7 changes: 0 additions & 7 deletions src/components/list/demoBasicUsage/style.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/list/demoListControls/index.html
Expand Up @@ -8,7 +8,7 @@
<md-list-item ng-click="navigateTo(setting.extraScreen)" ng-repeat="setting in settings">
<md-icon md-svg-icon="{{setting.icon}}"></md-icon>
<p> {{ setting.name }} </p>
<md-switch class="md-secondary" ng-model="setting.enabled">
<md-switch class="md-secondary" ng-model="setting.enabled"></md-switch>
</md-list-item>
<md-list-item ng-click="navigateTo('data usage')">
<md-icon md-svg-icon="cached"></md-icon>
Expand Down
3 changes: 0 additions & 3 deletions src/components/list/demoListControls/style.css

This file was deleted.

3 changes: 3 additions & 0 deletions src/components/list/list-theme.scss
Expand Up @@ -24,4 +24,7 @@ md-list.md-THEME_NAME-theme {
}
}
}
md-list-item button {
background-color: '{{background-color}}';
}
}
13 changes: 6 additions & 7 deletions src/components/list/list.scss
Expand Up @@ -48,7 +48,7 @@ md-list-item {
}
}
&.md-with-secondary {
padding-right: $list-item-padding-horizontal;
position: relative;
}
&.md-clickable:hover {
cursor: pointer;
Expand Down Expand Up @@ -126,16 +126,15 @@ md-list-item, md-list-item .md-list-item-inner {
box-sizing: content-box;
}

md-checkbox.md-secondary {
margin-right: 0px;
}
md-checkbox.md-secondary,
md-switch.md-secondary {
margin: 0;
position: relative;
right: -9px;
margin-right: 0px;
}
.md-secondary {
margin-left: $list-item-secondary-left-margin;
position: absolute;
right: $list-item-padding-horizontal;
top: 0;
}

& > p, & > .md-list-item-inner > p {
Expand Down

0 comments on commit b47a878

Please sign in to comment.