Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add highlight styling to list style (#1919)
# Summary Added the ability to customize highlighted (tapped state) background color of List Items. Previously, it was locked to the default OS value. # What problem you’re solving Unable to change the highlighted background color of list items. # Your approach to fixing the problem Added a style property to `ListItemStyle` - as an optional value, because the default value is OS protected and can only be approximated. This also means it won't result in any changes to existing implementations. # Any tests you wrote As a highlighted state that only occurs on tapping, I did not see a way to integrate with snapshot tests. Happy to add some if someone can point me in the right direction. # Release notes <changed> You can now highlight a list item by changing its background color when the shopper selects it. To do this, use the new optional `ListItemStyle.highlightedBackgroundColor` property. </changed>
- Loading branch information