Comments (4)
@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.
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.
Yep, play around with it some more and it appears to be working now. Thank you again.
from styled-icons.
Perfect, glad to hear! 🎉
from styled-icons.
Related Issues (20)
- Support for `style` prop without `styled-components`? HOT 2
- Fluent UI Icons HOT 4
- Error during of import during rendering HOT 3
- Documentation fix HOT 3
- Server-side icon rendering? HOT 6
- remix-line icon pack does not contain the hashtag icon HOT 2
- StyledComponents logo error HOT 2
- website down? HOT 3
- Is it possible to use styled-icons in a pseudo :before or :after element? HOT 1
- More compact website? HOT 3
- @styled-icons/styled-icon dependencies causing duplication due to older versions of @emotion/is-prop-valid HOT 2
- ```yarn add styled-icons --network-timeout 100000```
- fa-solid 10.46 looks broken HOT 2
- Folder name case sensitivity issue HOT 1
- Hero Icons thumb icon renamed HOT 3
- Reporting a vulnerability HOT 1
- styled-icons.dev seems to be down HOT 2
- Update to style-components v6
- Styled-Icons failing with styled-components dependencies HOT 3
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 styled-icons.