paper-icon-button
paper-icon-button copied to clipboard
paper-icon-button tap/keydown ripple when focused is too light
Description
The paper-icon-button ripple when tapped (or activated via spacebar) is the same shade as its focus ripple.
Expected outcome
The ripple should presumably be darker, to match paper-button as well as paper-icon-button-light.
Actual outcome
The ripple is lighter than the other buttons' ripples. It doesn't differentiate between focus and pressing.
Live Demo
https://jsfiddle.net/37kmh427/
Steps to reproduce
- tap
paper-icon-button; see light ripple - tap
paper-icon-button-light; see dark ripple - tap
paper-button; see dark ripple
Also:
- tab to
paper-icon-button; see light ripple - press <Enter>: nothing changes visually
- tab to `paper-icon-button-light; see light ripple
- press <Enter>: ripple darkens
- tab to
paper-button; see no ripple - press <Enter>: dark ripple appears
Also:
- tab to
paper-icon-button, then click and hold: ripple shimmers - tab to
paper-icon-button-lightorpaper-button, then click and hold: solid ripple remains for duration of mouse press

@mgiuffrida: paper-icon-button-light lazily creates ripples. the lazily created ripple listens for the same events. so, if I understand correctly, the "dark" look is essentially double-handling events and double-showing partially opaque ripples.
I'm not sure this is intended.