Skip to content

Commit

Permalink
fix(list): Add cursor: pointer for interactive list items (#4563)
Browse files Browse the repository at this point in the history
Fixes #4557
  • Loading branch information
joyzhong authored Apr 3, 2019
1 parent 98c0fee commit d2f0ccb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/mdc-list/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@
}
}

// Only change mouse cursor for interactive list items which are not disabled.
:not(.mdc-list--non-interactive) > :not(.mdc-list-item--disabled).mdc-list-item {
@include mdc-feature-targets($feat-structure) {
cursor: pointer;
}
}

// Override anchor tag styles for the use-case of a list being used for navigation
// stylelint-disable selector-max-type,selector-no-qualifying-type
a.mdc-list-item {
Expand Down
1 change: 0 additions & 1 deletion packages/mdc-menu/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@

.mdc-list-item {
@include mdc-feature-targets($feat-structure) {
cursor: pointer;
user-select: none;
}
}
Expand Down

0 comments on commit d2f0ccb

Please sign in to comment.