0

I have a component that references an external SVG file:

<div className='logo-wrapper'>
  <object 
    type="image/svg+xml" 
    className='logo' 
    data="/images/logo.svg" 
  >
  </object>
</div>

Inside the SVG file, I have declared styles:

<style>
  .cls-1{
    fill: red;
  }
</style>

I need to be able to edit the styles from the parent component, say, change .cls-1 to a green fill instead of red.

I have attempted to add classes to the parent component, however these don't seem to talk.

How does one do this?

dthree
  • 19,847
  • 14
  • 77
  • 106
  • framed documents (be it through ` – Kaiido Aug 11 '17 at 03:52
  • 1
    * **can't** access their content either – Paul LeBeau Aug 11 '17 at 04:47

0 Answers0