FortAwesome / react-fontawesome

Font Awesome React component
https://fontawesome.com
MIT License
3.67k stars 262 forks source link

Compatibility with shadow DOM #540

Open rbhalla opened 1 year ago

rbhalla commented 1 year ago

Describe the bug CSS gets injected in the light DOM meaning that font awesome components in a shadow DOM element don't inherit the css correctly.

Expected behavior Unclear what the best way to deal with this is. Either the components have styling inline, or the library offers a way to provide an override where css should be injected.