Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix active style matching inside navlink usage #848

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

dottorblaster
Copy link
Contributor

Description

The NavLink component inside react-router-dom has its own logic when it comes to determining wether or not the element is active that needs to be a little bit instructed. Basically the dashboard, which route is / always matches because of subroutes including / at the beginning, while we only need it to be matched in a special way.

Before:

image

After:
image

Did you add the right label?

Aye

How was this tested?

Manually 😇

@dottorblaster dottorblaster added the bug Something isn't working label Sep 28, 2022
@dottorblaster dottorblaster self-assigned this Sep 28, 2022
@dottorblaster dottorblaster merged commit a78a710 into main Sep 28, 2022
@dottorblaster dottorblaster deleted the fix-active-styling-matching branch September 28, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants