-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(mat-list-option): There's no visual selected state on mobile browsers #19876
Labels
area: material/list
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added
area: material/list
has pr
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
and removed
needs triage
This issue needs to be triaged by the team
labels
Jul 6, 2020
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 6, 2020
…vices We have some extra CSS rules to prevent sticky hover states on touch devices. The problem is that we use the hover style to indicate a selected item in a single selection list and it breaks in a way that prevents the selected state from showing up for touch devices. These changes make the selector more specific to avoid the issue. Fixes angular#19876.
mmalerba
pushed a commit
that referenced
this issue
Jul 7, 2020
…vices We have some extra CSS rules to prevent sticky hover states on touch devices. The problem is that we use the hover style to indicate a selected item in a single selection list and it breaks in a way that prevents the selected state from showing up for touch devices. These changes make the selector more specific to avoid the issue. Fixes #19876.
For anyone wondering, I'm using the following as a temporary workaround: @media (hover: none) {
.mat-list-single-selected-option {
&:not(.mat-list-item-disabled):hover {
background: rgba(0, 0, 0, 0.12);
}
}
} |
mmalerba
pushed a commit
that referenced
this issue
Jul 8, 2020
…vices (#19877) We have some extra CSS rules to prevent sticky hover states on touch devices. The problem is that we use the hover style to indicate a selected item in a single selection list and it breaks in a way that prevents the selected state from showing up for touch devices. These changes make the selector more specific to avoid the issue. Fixes #19876.
mmalerba
pushed a commit
that referenced
this issue
Jul 8, 2020
…vices (#19877) We have some extra CSS rules to prevent sticky hover states on touch devices. The problem is that we use the hover style to indicate a selected item in a single selection list and it breaks in a way that prevents the selected state from showing up for touch devices. These changes make the selector more specific to avoid the issue. Fixes #19876.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/list
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
https://stackblitz.com/angular/aexyvybjrlm?file=src%2Fapp%2Flist-single-selection-example.html (taken from your "List with single selection" example: https://material.angular.io/components/list/examples)
Steps to reproduce:
Expected Behavior
The selected item should have a visual selected state, like on desktop.
Desktop screenshot (macOS, Chrome):
Actual Behavior
There's no visual selected state.
Mobile screenshot (iPhone, iOS, Safari):
Environment
Please fix.
PS: Any workaround we can use while this gets fixed and released?
The text was updated successfully, but these errors were encountered: