Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes media player volume button overlap #429

Merged
merged 1 commit into from
Jul 18, 2017

Conversation

vanitabarrett
Copy link
Contributor

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

After: volume button touch area remains the same as previously, but focus state is smaller so as not to obscure current volume percentage:
This shows the new focus state:
screen shot 2017-07-18 at 14 14 51

But we can see that the touch area remains the same:
screen shot 2017-07-18 at 14 14 35

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

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever solution 💯
How does this look in IE8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fofr looks like the player never worked in IE8... at least according to BrowserStack, all I get is JS errors on the original link. Looks fine visually (with this fix), but none of the functionality works.

@NickColley NickColley merged commit 086f891 into master Jul 18, 2017
@NickColley NickColley deleted the overlapping-volume-buttons branch July 18, 2017 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Media Player volume controls obscure current percentage
3 participants