0

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'

<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?

4

1 回答 1

1

聚会很晚了,但是当我在谷歌上搜索同样的东西时,我发现了你的帖子,我在 JSS 中找到了一个修改子元素的 SVG 解决方案。为后人发帖:

navIcon: {
   '& svg': {
    width: '24px',
    paddingRight: '10px',
   '& path': {
        fill: '#F7F7F7'
      }
    },
  }
于 2019-05-29T15:44:31.713 回答