acoustep / ember-cli-foundation-6-sass

MIT License
64 stars 33 forks source link

Add appendTo option to zf-reveal. #92

Open GCheung55 opened 7 years ago

GCheung55 commented 7 years ago

The appendTo option provides a target for where to append the reveal and overlay.

This is helpful when testing. Reveal by default will append to the body element. Ember dispatches events to the application root element, which is not the body element in tests.

Using the appendTo option, we can configure the Reveal to append to the .ember-application element during testing so that the events can be properly dispatched.

I think appendTo should be configurable through config/environment level, and at the component level.