All I want is a fill color. The source file is #000, therefore no fill is specified in the svg code.
Here's the JSX:
import dashboardIcon from '../../images/icons/Dashboard-Icon.svg' <_Stack Overflow中文网
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import dashboardIcon from '../../images/icons/Dashboard-Icon.svg' <
import dashboardIcon from '../../images/icons/Dashboard-Icon.svg' <object className={classes.navIcon} type="image/svg+xml" data={dashboardIcon} alt='' />
And the JSS:
navIcon: { width: '24px', paddingRight: '10px', fill: '#F7F7F7' }
Thank you so much!
I'm trying to get some of the servers and desktops upgraded to powershell 5. I've tried using powershell to install framework 5 but after a few hours of it failing I found an article that says MS does not support this. Do you know of a way to install PS 5 without SCCM or without going machine to machine?
聚会很晚了,但是当我在谷歌上搜索同样的东西时,我发现了你的帖子,我在 JSS 中找到了一个修改子元素的 SVG 解决方案。为后人发帖:
navIcon: { '& svg': { width: '24px', paddingRight: '10px', '& path': { fill: '#F7F7F7' } }, }