0

In react app i have working font awesome icons. For some reason font-awesome started to translate icons to svg. I am using css aproach.

svg translation

But fontawesome translates all icons that I have into svg as can be seen in screenshot above. I want to turn it off somehow.

I have gone through docs and found there is config to use. https://fontawesome.com/how-to-use/javascript-api/setup/configuration

Can it can be turned off (with config) in main app launcher like this?

import fontawesome from '@fortawesome/fontawesome'

const App = () => {

fontawesome.config = { autoReplaceSvg: false }
...
return (
<>
 <ThemeProvider theme={Theme}>
....
</ThemeProvider>
</>
)
...
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
palyxk
  • 341
  • 2
  • 4
  • 17
  • I don't understand what you are trying to do. Can you provide us with more detail? – Jakov Gl. Apr 09 '21 at 08:28
  • You can find out your answer from here. [https://stackoverflow.com/a/50301152](https://stackoverflow.com/a/50301152) – Koder9 Apr 10 '21 at 07:30

1 Answers1

0

Looks like the problem can be solved by using css version instead of js.

palyxk
  • 341
  • 2
  • 4
  • 17