New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 608996 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: May 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 3
Type: Bug

Blocking:
issue 495654



Sign in to add a comment

md toolbar button ripples should appear on spacebar down

Project Member Reported by est...@chromium.org, May 4 2016

Issue description

In pre-md, when you pressed space, the button would look pressed, and when you released space, it would activate. Assuming we want to keep this general behavior, we should show a ripple on space down in MD (currently there's no visible feedback until you release the spacebar).
 
Blocking: 495654
Labels: -Pri-2 Pri-3
Labels: -M-52 M-53
When do toolbar buttons get focus in order to actually get keyboard events? I found this comment in custom_button.h:

// A button with custom rendering. The base of ImageButton and LabelButton.
// Note that this type of button is not focusable by default and will not be
// part of the focus chain.  Call SetFocusBehavior(FocusBehavior::ALWAYS) to
// make it part of the focus chain.

Pressing <alt> + <shift> + 't' will focus the Toolbar buttons.
Owner: kylixrd@chromium.org
This appears to be working now. I'm seeing the ripple feedback in MD mode on pressing the spacebar.

Comment 6 by est...@chromium.org, May 13 2016

you're seeing a ripple before release the space key?
It's odd. I see the ripples on the button to the right of the omnibar, but not the refresh button... so it's not consistent or universal to all of the buttons.
Upon further examination, the ripples do appear on release.. if the timing is right. Also, the ripples are much larger for the back/forward/refresh buttons than the app/extension/menu buttons on the right.

Comment 9 Deleted

The navigation button actions are triggered on space-release whereas the extension button actions are triggered on space-down.  I believe the ACTION_TRIGGERED ripple animation is triggered when the button action is triggered, thus you will see the ripple on space-down for extension buttons but not for the navigation buttons.  This issue is tracking the work to show the ripple on space-down for space-up triggered buttons.
Ok, that's why I didn't initially notice it. I assumed (yeah, I know ;-), that the extension buttons shared the same implementation as the navigation buttons.

To make this work then, the ripple trigger will need to be tied to a specific action applied to the button and not the resulting event trigger.
with regards to the discrepancy between nav and extension buttons, see also
https://codereview.chromium.org/1886943002
https://codereview.chromium.org/1947533003

Note in particular my comment "We'd also need to update browser
action buttons to key up, but that can be a TODO."

> This issue is tracking the work to show the ripple on space-down for space-up triggered buttons.

correct
Status: Started (was: Available)
Marking to started for kylixrd@.

Review: https://codereview.chromium.org/1977793006/
Status: Fixed (was: Started)
Status: Verified (was: Fixed)

Sign in to add a comment