Git Product home page Git Product logo

Comments (2)

RobbieTheWagner avatar RobbieTheWagner commented on July 29, 2024 1

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.

st-h avatar st-h commented on July 29, 2024 1

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.