Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Link and NavLink react-router-dom components :hover not working #907

Open
@austincondiff

Description

@austincondiff

The hover does not work on react router components.

<li key="contactInfoPage" style={{display: 'inline-block'}}>
    <NavLink to="/contact-info" style={{
        display: 'inline-block',
        padding: '20px 16px 0 16px',
        textDecoration: 'none',
        color: '#36495a',
        textTransform: 'uppercase',
        fontSize: 12,
        fontWeight: 'bold',
        transition: '.2s',
        //the :hover below does not work
        ':hover': {
            color: '#0078d2'
        }
    }}>Contact Info</NavLink>
</li>

Sure I could simply style a span inside but where's the fun in that?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions