How to set a hover color on Icons?
See original GitHub issueDescribe the bug Thank you very much for this library. Trying it out for the first time for a project, and I like the simplicity. Just wondering what is the best way to set a hover color? I tried _hover but that did not work? A workaround is using the css-prop. But then the themes colours are not used.
import { css } from "@emotion/core"
<Icon
name="read"
color="red"
css={css`
&:hover {
color: white;
}
`}
/>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to Change Icon Colors and Background Colors on Hover
Using hover effects to change the icon and background color is a good way to indicate they are clickable. In this tutorial, we're...
Read more >Change color when hover a font awesome icon?
if you want to change only the colour of the flag on hover use this: http://jsfiddle.net/uvamhedx/ .fa-flag:hover { color: red; }
Read more >How to create icon hover effect using CSS ? - GeeksforGeeks
1: · a:hover { css declarations; } ; 2: ·.icon:hover { background-color: blue; } ; 3: · #target:hover { transform: scale(1.5); }.
Read more >Change icons color on hover - CodePen
Change icons color on hover ... <div class="icons-container">. 3. <img src="https://image.flaticon.com/icons/svg/733/733603.svg" alt="fb-logo" class="icon">.
Read more >how to change image color on hover using CSS - YouTube
How to change image icon change black to white using CSS || how to change icon image white to black using CSS by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@secretlifeof you can find in codebase. Try _hover props
_hover = { { transform: “scale(1.2)” } }