sorry for the spam y'all. This time, all the tests pass, and have made a custom fixture for custom container and appendTo. The tests were incorrectly passing previously because those custom pieces were using defaults instead.
also, I was incorrectly using .push for a Jquery array instead of .add
How to Test
in pikabu/examples/assets/js/main, add some custom options such as:
container: '.m-pikabu-container', appendTo: '.m-pikabu-viewport',
to the pikabu declarations (make sure to do this to all 4, or else it will look for the default elements which we will remove)
in pikabu/examples/index.html change line 18 <div class="pikabu"> remove "pikabu" and add custom class name: ".m-pikabu-viewport"
also in pikabu/examples/index.html change line 25 <div class="pikabu__container"> remove "pikabu_container" and replace with custom class "m-pikabu-container"
Status: Ready for Review Owner: @ericawright Reviewers: @mikenikles @marlowpayne @jansepar @fractaltheory @stewartyu
Changes
Issues:
https://github.com/mobify/pikabu/issues/60
Todos:
Notes:
How to Test
pikabu/examples/assets/js/main
, add some custom options such as:container: '.m-pikabu-container', appendTo: '.m-pikabu-viewport',
to the pikabu declarations (make sure to do this to all 4, or else it will look for the default elements which we will remove)pikabu/examples/index.html
change line 18<div class="pikabu">
remove "pikabu" and add custom class name: ".m-pikabu-viewport"pikabu/examples/index.html
change line 25<div class="pikabu__container">
remove "pikabu_container" and replace with custom class "m-pikabu-container"grunt serve