No _hover for <Box />
See original GitHub issueHi!
I’m trying to add hover effect to the <Box />
component which is used as a <Link/>
component but it does not seem to be working.
<Box
as={Link}
cursor="pointer"
margin="0 10px"
to={link.route}
transition="all .2s"
_hover={{
bg: colors.orangeDark,
}}
>
{link.label}
</Box>
_hover
seems to work perfectly for <Button/>
component.
<Button
bg={colors.orange}
_hover={{
bg: colors.orangeDark,
}}
>
{buttonText}
</Button>
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to Remove the CSS :hover Behavior from an Element
On this page, learn how to remove the CSS hover behavior from a specific element. For that, you can use the CSS pointer-events...
Read more >How to disable Hover effect on CSS? - Stack Overflow
See the pic. want to disable this hover effect. When i chick the search field it appear a box shadow line around the...
Read more >hover - CSS: Cascading Style Sheets - MDN Web Docs
The :hover CSS pseudo-class matches when the user interacts with an element with a pointing device, but does not necessarily activate it.
Read more >Disable hover effect - CSS-Tricks
I am looking to disable the hover effect on my Petrowest logo that is on the top left hand ... To remove the...
Read more >Content Boxes: how to disable Hover effect - ThemeFusion
I'm using content boxes but I'd like to disable the hover effect on the Awesome Icon and the title. With custom CSS I...
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
try with
content: '""'
@santialbo Good catch! Wasn’t even paying attention 🙃