-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix: enable utilities on video component #835
Conversation
⚡ PR built on Travis and deployed a now preview here:
|
⚡ Sauce Labs Test for chrome Passed!Test Details
|
⚡ Sauce Labs Test for internet explorer Passed!Test Details
|
⚡ Sauce Labs Test for chrome Passed!Test Details
|
⚡ Sauce Labs Test for internet explorer Passed!Test Details
|
A subtle change, but this improves performance (only run the class-sorting code for ratio if necessary) and I think readability (by making it more clear that the class sorting is only necessary if ratio is being used).
(BDS-336) - Replaces arrays and merges attributes objects and addClass/removeClass methods. - Most notably, allows other attributes besides class to be passed to _video-tag when using ratio.
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.
I discovered that these updates removed the ability to pass other attributes through to the video when using the ratio object (which is included by default).
I created a "sub-feature" PR at #836. @mikemai2awesome, please review that PR and merge it into this one if everything checks out. After that, this should be ready to merge.
…x-attributes-support Subfeature/bds 336 fix attributes support
⚡ PR built on Travis and deployed a now preview here:
|
⚡ Sauce Labs Test for chrome Passed!Test Details
|
⚡ Sauce Labs Test for internet explorer Passed!Test Details
|
⚡ Sauce Labs Test for chrome Passed!Test Details
|
⚡ Sauce Labs Test for internet explorer Passed!Test Details
|
Jira
http://vjira2:8080/browse/BDS-336
Summary
All utility classes are enabled for the video component.
Details
The video component sometimes has a ratio object wrapping the video tag, this causes certain utility classes to not work. The updates addresses that scenario. Utility classes will now go on the ratio object while the video classes are still passed to the video tag.
How to test
Pull down the branch and test the following code on any page.
Double check that the utility classes are passed to the ratio object and video classes are passed to the video tag.