Skip to content

Unfocused selection is too light #1669

Closed

Description

@saschanaz

Description

github-scroll

Version

GitHub Desktop version: 0.5.5

OS version: 10.0.15063

Steps to Reproduce

  1. Select a file on changes list
  2. Scroll so that the file isn't visible anymore
  3. Return

Expected behaviour: Selection should be kept

Actual behaviour: Selection is removed

Reproduces how often: 100%

Activity

  1. shiftkey commented on May 21, 2017

    @shiftkey
    Member

    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.

  2. joshaber commented on May 22, 2017

    @joshaber
    Contributor

    Yeah, the selected, unfocused state is a bit too subtle. For comparison, Classic looks like:

    screen shot 2017-05-22 at 3 51 49 pm

  3. changed the title [-]Scrolling on changes list causes deselection[/-] [+]Unfocused selection is too light[/+] on Jun 29, 2017
  4. donokuda commented on Jul 11, 2017

    @donokuda
    Contributor

    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.

  5. niik commented on Jul 12, 2017

    @niik
    Member

    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)

    image

  6. j-f1 commented on Jul 12, 2017

    @j-f1
    Contributor

    Looks much better!

  7. self-assigned this
    on Aug 10, 2017
  8. NiklasBr commented on Oct 6, 2017

    @NiklasBr
    Contributor

    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.

  9. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  10. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions