Coder Social home page Coder Social logo

Comments (4)

jacobwgillespie avatar jacobwgillespie commented on June 4, 2024 2

@KevinKra hey, thanks for opening the issue!

So the base icon styles are intended to be used how you are using them in your Stack Overflow post - if you reference StyledIconBase in a style, then those styles get applied to all icons that are children of that element. So if you had some CSS you wanted to apply to all icons in your application, you could add that CSS to a wrapper element that surrounded your whole app, etc.

It does appear that your code example works though - take a look at https://codesandbox.io/s/jolly-mendel-9q4c5?file=/src/BrandIcon.tsx.

As you can see there, the icon color is orange, since the wrapper style says the color should be orange, rather than the default of red. Let me know if that's not what you were expecting though.

from styled-icons.

KevinKra avatar KevinKra commented on June 4, 2024

Interesting, thank you for the feedback! I'll need to revisit this and mess around with it some more, for whatever reason in my implementation the color wasn't changing. Perhaps the issue lies elsewhere.

from styled-icons.

KevinKra avatar KevinKra commented on June 4, 2024

Yep, play around with it some more and it appears to be working now. Thank you again.

from styled-icons.

jacobwgillespie avatar jacobwgillespie commented on June 4, 2024

Perfect, glad to hear! 🎉

from styled-icons.

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.