Please sign in to comment.
[Buttons] [Ripple] fix button to update ripple states correctly (#7337)
Fixing programmatic interface of buttons to correctly set the Ripple highlighted and select state. ### Description Buttons do not change the ripple state correctly when their selected or highlighted states are updated programmatically. To fix this issue, we're updating the RippleViews's highlighted and selected states to match the button's highlighted and selected states. Steps to reproduce the highlighted state issued: 1. set: button.isHighlighted = true Expected: button is highlighted (background is light blue) Outcome: button is not highlighted (background is white) Steps to reproduce the selected state issued: 1. set: button.isSelected = true Expected: button is selected (background is light blue) Outcome: button is not selected (background is white) Before: ![image](https://user-images.githubusercontent.com/2329102/57167435-c60c6300-6dcb-11e9-8e54-3aa96b0f8eb8.png) After: ![image](https://user-images.githubusercontent.com/2329102/57167455-dd4b5080-6dcb-11e9-864e-cd4d960df464.png) ### Issue b/128908676 Issue: #7342
- Loading branch information
Showing with 25 additions and 20 deletions.