WebUI: cr-icon-button, create and show ripple if needed on
'pointerdown' event This worked in most other situations because the cr-icon-button ripple is either created when the button gains focus through a click or keyboard. When the ripple is present, it is listening for the 'down' event synthetic Polymer event similar to 'pointerdown'. This issue arose in settings due to the use of cr.ui.focusWithoutInk which will focus on the button with 'noink' set. |ensureRipple| can take an event which can be used to determine if a ripple should also be shown. Bug: 999070 Change-Id: I355a6a835627e628b88e3eb3b6737354034fc67d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775200Reviewed-by:Hector Carmona <hcarmona@chromium.org> Commit-Queue: Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#692089}
Showing
Please register or sign in to comment