Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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 

(cherry picked from commit d2f0ccb)
  • Loading branch information
joyzhong authored and abhiomkar committed Apr 8, 2019
1 parent 6d699a9 commit 0bba1fa
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 0bba1fa

Please sign in to comment.