You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a focus issue rather than selection as the menu item is a light gray instead of white when it scrolls back into view - and selecting the file doesn't change the diff.
Just making sure, is the automatic deselection when scrolling away an expected behavior?
It's not but it's non-trivial to fix since those lists are virtualized. The DOM element which has focus gets destroyed when scrolling so Chromium unsets the active element. We'd need to apply some magic in our List implementation to keep track of focus globally and restore focus when appropriate.
We can adjust the background gray, but I want to be sure that we're solving for the original problem reported here.
I played around with this the other day. I think $gray-200 is too dark (and also conflicts with our border colors which makes things look pretty terrible) but I agree that what we're using now ($gray-100) is a bit too much on the light side. I tried mixing the two to get something close to $gray-150 and ended up with #ebeef1 (right side)
I noticed when looking into #2957 that this is also a (minor) accessibility issue. When the selected List item loses focus, macOS voiceover gets confused.
Activity
shiftkey commentedon May 21, 2017
I think this is a focus issue rather than selection as the menu item is a light gray instead of white when it scrolls back into view - and selecting the file doesn't change the diff.
joshaber commentedon May 22, 2017
Yeah, the selected, unfocused state is a bit too subtle. For comparison, Classic looks like:
[-]Scrolling on changes list causes deselection[/-][+]Unfocused selection is too light[/+]donokuda commentedon Jul 11, 2017
Just making sure, is the automatic deselection when scrolling away an expected behavior?
We can adjust the background gray, but I want to be sure that we're solving for the original problem reported here.
niik commentedon Jul 12, 2017
It's not but it's non-trivial to fix since those lists are virtualized. The DOM element which has focus gets destroyed when scrolling so Chromium unsets the active element. We'd need to apply some magic in our
Listimplementation to keep track of focus globally and restore focus when appropriate.I played around with this the other day. I think $gray-200 is too dark (and also conflicts with our border colors which makes things look pretty terrible) but I agree that what we're using now ($gray-100) is a bit too much on the light side. I tried mixing the two to get something close to $gray-150 and ended up with
#ebeef1(right side)j-f1 commentedon Jul 12, 2017
Looks much better!
NiklasBr commentedon Oct 6, 2017
I noticed when looking into #2957 that this is also a (minor) accessibility issue. When the selected
Listitem loses focus, macOS voiceover gets confused.