danawoodman / react-fontawesome

A React Font Awesome component.
https://www.npmjs.com/package/react-fontawesome
MIT License
667 stars 72 forks source link

Best way to handle color change on hover? #23

Closed acomito closed 8 years ago

acomito commented 8 years ago

I tried adding a class with css hover effects, but didn't seem to work. Is there another way?

danawoodman commented 8 years ago

@acomito what does the CSS look like? Something like this?:

.my-class:hover { color: red; }

Note to color Font Awesome you need to use color and that the hover should be directly applied to the class since it just returns a <span>

danawoodman commented 8 years ago

@acomito what did you do to get it to work for other people that may have the issue?

acomito commented 8 years ago

I'm using aphrodite for inline/js css and hover is working just as expected.