Comments (6)
@grapho You are totally right, we had a lot of updates to make to get this to the current Shepherd API! I just opened a PR to update all that. Mind trying it out?
from ember-shepherd.
@grapho I'm not sure I understand. Can you not change the target of the test helpers? You can pass document.body
as the context for the tests, rather than the default of the Ember testing container.
from ember-shepherd.
Also, why do you need to fork to expose modalContainer
? Can't you pass that option currently as part of your steps/tour config?
from ember-shepherd.
@rwwagner90 Thanks for the response!
I resolved the issue with the test helpers, so we can close this issue. I may have posted the issue in a moment of temporary frustration :p
However, I did take a look at the tour service in the addon repo... i do not see modalContainer
being passed to or set onto the tour instance, so I just did a quick fork to test that theory.
from ember-shepherd.
I resolved the issue with the test helpers, so we can close this issue. I may have posted the issue in a moment of temporary frustration :p
No problem! We have all been there 😃
However, I did take a look at the tour service in the addon repo... i do not see modalContainer being passed to or set onto the tour instance, so I just did a quick fork to test that theory.
There is not an explicit option in the service for it, but I think it can be passed as part of your vanilla Shepherd config perhaps? I could be wrong. Let me know what you find!
from ember-shepherd.
There is not an explicit option in the service for it, but I think it can be passed as part of your vanilla Shepherd config perhaps? I could be wrong. Let me know what you find!
Confirmed, setting defaultTourOptions.modalContainer
on the tour service does not do anything on its own.
I could attempt to set the property directly onto Shepherd object.. but as far as I can tell, Shepherd is not instantiated until addSteps is called which is too late (according to the api docs)
From reading the code it seems the Tour Service grabs its config setting that it has defined and passes them into Shepherd object when it gets initialized
from ember-shepherd.
Related Issues (20)
- Empty Changelog HOT 1
- feature request: allow to add custom content to buttons HOT 2
- lazily load shepherd dependency HOT 6
- Move disableScroll to Shepherd HOT 7
- Remove default CSS HOT 1
- Tour does not close on Route Transitions HOT 7
- 6.0.0 npm error: node_modules/ember-shepherd: Appears to be a git repo or submodule. HOT 6
- Explore Ember generators for tour setup HOT 2
- Documentation website seems not to work for ember-shepherd@<9 HOT 1
- AttachTo doesn't find elements in ember-wormhole HOT 11
- Clicking cancelIcon doesn't trigger "cancel" event. HOT 16
- Acceptance Testing Tour causes second test to fail HOT 5
- Link broken in docs HOT 1
- Suggestion: Option to disable inline styles HOT 2
- Loading Chunk n Failed (In Prod) HOT 11
- Why was modalContainer attribute removed since version 4? HOT 3
- Error: Loading chunk 0 failed HOT 6
- Is it really only compatible with ember 4+? HOT 1
- Docs Link is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-shepherd.