Skip to content

Commit

Permalink
fix(MdListItem): expand content cursor style and hover (vuematerial#1643
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Pwntus committed Jun 7, 2018
1 parent acc6d8f commit 2572323
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/components/MdList/MdListItem/MdListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@
text-transform: none;
&:not(.md-list-item-default):not([disabled]) {
user-select: none;
cursor: pointer;
> .md-list-item-content {
user-select: none;
cursor: pointer;
}
}
&.md-button-clean:hover {
Expand Down
15 changes: 12 additions & 3 deletions src/components/MdList/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
.md-list-item-container {
@include md-theme-property(color, text-primary, background);

&:not(.md-list-item-default):not([disabled]):hover {
&:not(.md-list-item-default):not(.md-list-item-expand):not([disabled]):hover {
@include md-theme-property(background-color, divider, background);
@include md-theme-property(color, text-primary, background);
}
Expand All @@ -35,8 +35,17 @@
}
}

.md-list-item-expand.md-active {
@include md-theme-property(border-color, divider, background);
.md-list-item-expand {
&.md-active {
@include md-theme-property(border-color, divider, background);
}

&:not(.md-list-item-default):not([disabled]) {
> .md-list-item-content:hover {
@include md-theme-property(background-color, divider, background);
@include md-theme-property(color, text-primary, background);
}
}
}
}
}

0 comments on commit 2572323

Please sign in to comment.