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

fix(list): Add cursor: pointer for interactive list items #4563

Merged
merged 6 commits into from
Apr 3, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/mdc-list/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
}
}

// Only enable mouse hover for interactive list items which are not disabled.
:not(.mdc-list--non-interactive) > .mdc-list-item:not(.mdc-list-item--disabled) {
cursor: pointer;
}

// "Selected" is ephemeral and likely to change soon. E.g., selecting one or more photos to share in Google Photos.
// "Activated" is more permanent. E.g., the currently highlighted navigation destination in a drawer.
.mdc-list-item--selected,
Expand Down