-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Inline volumeMenuButton option #2378
Conversation
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 1b28a9329a1cac2915aa84c7d7d3e6e1fd736045 (Please note that this is a fully automated comment.) |
Very cool! How do I test it? I tried:
and got It'd be nice if we could just do |
@heff you also need to specify
|
Can |
|
That's true. But the |
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 4b6bcdf1935f071731d8133bf40c24d30c4cf9cc (Please note that this is a fully automated comment.) |
@@ -19,6 +19,12 @@ import VolumeBar from './volume-control/volume-bar.js'; | |||
class VolumeMenuButton extends MenuButton { | |||
|
|||
constructor(player, options={}){ | |||
// If an inline volumeMenuButton is used, we should default to using a horizontal | |||
// slider for obvious reasons. | |||
if (options.inline) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well move this inside the options.vertical === undefined
check, so it's overridable.
A few more comments, not blockers. LGTM |
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 4e68e6fe64d1b313053ce3f13458f8d1c7bccbf0 (Please note that this is a fully automated comment.) |
4e68e6f
to
ad810ae
Compare
Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: ad810aeddd9f3729007be3c6932a0f2086b1e29f (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 34a38c3a6e8f6d9350e56e6ce433d2b5ea7517ed (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 70e0c4877ea40cb9d824a167d219a7bee0d6a681 (Please note that this is a fully automated comment.) |
Also to note, I've personally tested this in: OSX: Chrome, Firefox, Safari |
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: a2c56a71107279168465facc27ec0654d3c43adb (Please note that this is a fully automated comment.) |
a2c56a7
to
7a842e2
Compare
Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 7a842e2 (Please note that this is a fully automated comment.) |
Nice, you ere able to fix IE8? LGTM |
@heff Everything related to this PR is working in IE8, but we still need to loop back on the bubbling issue. |
@mmcc can you create a new issue for the bubbling? Sent from mobile |
This adds a new
inline
option toMenuButton
that allows you to use MenuButton as a drawer of sorts. Old functionality is unchanged, although the styles now reside under.vjs-menu-button-popup
.To use, simply pass
inline: true
in thevolumeMenuButton
options. This will also default to a horizontal slider for obvious reasons.There's an unrelated issue in IE8 where bubbling seems to be messed up. Everything works as far as this PR is concerned, but the bubbling issue is causing any click on the menu to count for a click on the mute button. We need to sort that out still, but I don't think this PR is the place for it.