Skip to content

Commit

Permalink
fix(MdListItem): expand content cursor style and hover (#1808)
Browse files Browse the repository at this point in the history
* fix(MdListItemExpand): specifically target direct md-list-expand-icon children when parent is active.

* fix(MdListItem): expand content cursor style and hover (#1643)
  • Loading branch information
Pwntus authored and Samuell1 committed Jun 8, 2018
1 parent 24e63ba commit 739cefa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 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
2 changes: 1 addition & 1 deletion src/components/MdList/MdListItem/MdListItemExpand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
will-change: border;
&.md-active {
.md-list-expand-icon {
> .md-list-item-content > .md-list-expand-icon {
perspective: 1000px;
perspective-origin: 50% 50%;
transform: rotateX(180deg);
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 739cefa

Please sign in to comment.