Fixes media player volume button overlap #429
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #853. Volume up and down buttons in the media player were overlapping the current volume percentage on focus. This fix keeps the large button touch area, but adjust the focus state to be smaller.
Before: volume button focus state overlaps the current volume percentage:
![screen shot 2017-07-18 at 14 36 38](https://user-images.githubusercontent.com/29889908/28319722-9eb559b4-6bc6-11e7-85f6-9b99937142a8.png)
After: volume button touch area remains the same as previously, but focus state is smaller so as not to obscure current volume percentage:
![screen shot 2017-07-18 at 14 14 51](https://user-images.githubusercontent.com/29889908/28319782-cc198a7e-6bc6-11e7-98d1-d81ebbc31722.png)
This shows the new focus state:
But we can see that the touch area remains the same:
![screen shot 2017-07-18 at 14 14 35](https://user-images.githubusercontent.com/29889908/28319791-cea89dc0-6bc6-11e7-8a12-48c4cade43f8.png)
This means the volume controls continue to work on small devices where all icons are more closely located together:
![screen shot 2017-07-18 at 14 15 34](https://user-images.githubusercontent.com/29889908/28319867-fde24906-6bc6-11e7-9925-81fa8d562815.png)