Skip to content

Link focus is weird #1127

Closed
Closed

Description

@joshaber

After I click on the link:

screen shot 2017-04-04 at 10 15 08 am

Activity

  1. added
    design-input-needed
    on Apr 4, 2017
  2. niik commented on Apr 4, 2017

    @niik
    Member

    Yeah, so this is something that I've been thinking a lot about. We need to differentiate between keyboard focus and mouse focus and currently there's no easy way to do that. While we can certainly make that focus style nicer but the real solution would be differentiating focus states.

    I've had this video on my to-watch list for a while but haven't had time to get to it yet

    https://www.youtube.com/watch?v=ilj2P5-5CjI&index=1&list=PLNYkxOF6rcICWx0C9LVWWVqvHlYJyqw7g
    https://github.com/wicg/focus-ring

    Hopefully that's something we can utilize

  3. joshaber commented on Apr 4, 2017

    @joshaber
    ContributorAuthor

    So mulling this over, on macOS at least, I wouldn't expect clicking on a button/link to give it focus.

  4. niik commented on Apr 4, 2017

    @niik
    Member

    So mulling this over, on macOS at least, I wouldn't expect clicking on a button/link to give it focus.

    I can see that but I don't think there's any easy way for us to prevent that from happening, the web has its own set of focus rules and they don't quite abide with native expectations (on Mac or Windows). That's why I'm saying that we should differentiate between keyboard focus (i.e. tabbing to a control) and mouse focus (focus received by clicking) for certain controls. It won't prevent the component becoming the activeElement but we will be able to control the focus style. In the case above (and setting aside that it's not the best focus outline to begin with) I would turn only show the focus state if someone tabs to that link.

    It's worth noting that macOS differs even further from what we currently have by default but comes much closer when one turns on Full Keyboard Access.

  5. joshaber commented on Apr 6, 2017

    @joshaber
    ContributorAuthor

    Another case of kinda weird focus:

    screen shot 2017-04-05 at 9 58 17 pm

  6. locked as resolved and limited conversation to collaborators on Jul 23, 2018
  7. 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

No one assigned

    Labels

    design-input-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions