question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No _hover for <Box />

See original GitHub issue

Hi!

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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
santialbocommented, Jul 15, 2020

try with content: '""'

1reaction
with-heartcommented, Jul 13, 2020

@santialbo Good catch! Wasn’t even paying attention 🙃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found