-
Notifications
You must be signed in to change notification settings - Fork 256
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
Consistency of hover/focus/selected indicators #2479
Comments
So in discussions with @jvine and @ggeisler and experimentation, I think we may need to depart from this in some ways. I'll try to outline the rationale here so this work can move forward.
Doing this disables keyboard focus indicators on any In our discussions, an acceptable alternative is to update |
I'm going to grab just the annotations piece right now. |
Definitions
Mouse hover indicates "this is an active thing you can click". Keyboard focus sometimes indicates "this is an active thing you can click"; sometimes actually triggers an action. We need to treat these separately.
Hover
Focus/Select
Active/Pinned
In the light theme these visual states are currently rendered as:
rgba(0,0,0,0.08)
rgba(0,0,0,0.14)
#1967d2
Gallery view
Hover
Keyboard & click behaviour are correct.
Additional theme change:
Active/pinned
Current behaviour is correct.
Thumbnail nav
Because the layout is so pixel-fussy, we propose using the outline property to provide both the hover and focus/selected states.
On the
<div role="button">
outline:0
Additional theme change:
Load window
Currently has no hover/focus indication.
Hover
**
Active=> #2495 **Index lists
Thumbnail list, Compact list
Current behaviour is correct.
ToC
Basically:
Additional style changes required, will be ticketed separately.
Annotations
Current mouse behaviour is correct.
No keyboard behaviour yet:
Menus
Jump to window menu
Currently the first item in the menu has a dark background, which remains static even when the keyboard focus moves. This is the behaviour of an active/pinned item, implying that it might be associated with the currently-focused window, but it's not.
Window options menu (View as, Thumbnails)
Currently the active item uses only colour to differentiate itself, which is insufficient.
Dropdown menus
Index selection
Current behaviour is correct.
Simple dialogs
Change theme
Active theme has dark background; keyboard focus moves that background. This should follow the pattern of the dropdown menus.
Images: keyboard (incorrect); mouse (correct)

Same applies to Workspace type dialog. This becomes more important when there are more than 2 options.
General cleanup
Mouse & keyboard states that are noticeably different for the same effective state
FAB
Currently, hover darkens the button; focus lightens it. This means a noticeably different experience for mouse vs. keyboard users. (Images: default, hover, focus)
Sidebar tab icons
These seem to have an override hover style (#2205?) that fills the square of the tab. But the keyboard focus is the standard dark grey circle. Again, noticeably different experience for mouse vs. keyboard users. (Image: About = active; Rights = mouse hover; Index = keyboard focus)
Collapse/expand panel icon
Forcing the background to be white on hover means... there's no mouse hover indicator. Keyboard focus gets the round icon-button background. Which pulses.
<div>
with a white background, so the button itself can have standard hover behaviour.Default outline
Sometimes the browser's default focus outline is showing through. We don't want to eliminate it globally, but to suppress it when it's inappropriate.
Presentation items in menus
**Images in thumbnail navs
Kill the pulse
ripplePulsate still happens when icon buttons get keyboard focus. Tab to any icon button to see the effect: FAB, app bar, window top bar, sidebar tab, canvas nav, panel headers, panel section collapse...
The text was updated successfully, but these errors were encountered: