Skip to content

Commit

Permalink
remove :active state on list-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
connors committed Oct 17, 2015
1 parent 511580a commit d017253
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/css/photon.css
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ img {
.list-group-item:first-child {
border-top: 0;
}
.list-group-item:active, .list-group-item.selected {
.list-group-item.active, .list-group-item.selected {
color: #fff;
background-color: #116cd6;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/css/photon.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/components/lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="list-group-header">
<input class="form-control" type="text" placeholder="Search for someone">
</li>
<li class="list-group-item">
<li class="list-group-item active">
<img class="img-circle media-object pull-left" src="/assets/img/avatar.jpg" width="32" height="32">
<div class="media-body">
<strong>List item title</strong>
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/css/photon.css
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ img {
.list-group-item:first-child {
border-top: 0;
}
.list-group-item:active, .list-group-item.selected {
.list-group-item.active, .list-group-item.selected {
color: #fff;
background-color: #116cd6;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/css/photon.min.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sass/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
&:first-child {
border-top: 0;
}
&:active,

&.active,
// `.selected` is deprecated. Use `.active` instead.
&.selected {
color: #fff;
background-color: $active-color;
Expand Down

0 comments on commit d017253

Please sign in to comment.