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

Custom links appear always active #4159

Closed
AndreeaCristinaRadacina opened this issue Nov 27, 2023 · 2 comments
Closed

Custom links appear always active #4159

AndreeaCristinaRadacina opened this issue Nov 27, 2023 · 2 comments

Comments

@AndreeaCristinaRadacina

Hey there,

I created some custom links, and they inherit the color of the active menu items, even if they are not clicked.

You can see the live behavior here:
https://root.stefancoti.com/

I am not sure if it's a bug or we expect this and we use CSS to solve it.

@preda-bogdan
Copy link
Contributor

I think it is expected as they are on the same page and the active class that is added is added based on the page that is being viewed.

This is added from PHP before the page is rendered.
This can be fixed with a custom CSS to target those specific menu items to not show as active.

@AndreeaCristinaRadacina
Copy link
Author

Makes sense. Thank you, @preda-bogdan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants