Comments (2)
So a couple things, text
supports HTML https://github.com/shipshapecode/shepherd/blob/3dee64d023e9545f61d508b36d030a331b5e0049/src/js/step.js#L129
You can add that svg code in the text if you would like or use the font awesome font, rather than the svgs.
Also, you can definitely change the fill and stroke of svgs on hover, I do it for my icons all the time. Something like this:
svg {
path {
fill: $gold;
transition-duration: 0.25s;
transition-property: fill;
}
&:hover {
path {
fill: $grey-transparent;
}
}
}
Hopefully one of those methods works for you!
from ember-shepherd.
@rwwagner90 Ah, thank you. I wasn't aware that text would also support html. That makes things a lot easier.
Regarding the fill color, it does not seem to be possible to change it when the svg data is embedded within the content
property. When adding them as actual elements, like you said, that works perfectly.
from ember-shepherd.
Related Issues (20)
- Empty Changelog HOT 1
- 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
- Tours are not testable HOT 6
- 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.