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

changed blog link in nav to not always be highlighted, instead highli… #436

Merged
merged 3 commits into from
Aug 12, 2018

Conversation

Rob-Rychs
Copy link
Contributor

This should solve #431

Hard to test if the :active works because of how live-server handles the links...

Maybe try deploying it to a test-server and if the issue isn't fixed just ignore this PR

Changed blog link in nav to not always be highlighted, instead highlight on link a:hover and a:target

@Rob-Rychs
Copy link
Contributor Author

Deployed my branch to netlify to test the a:target https://suspicious-raman-a5c987.netlify.com/

looks like the menu link isn't staying highlighted

This PR only half solves the issue...

@Rob-Rychs
Copy link
Contributor Author

because clicking the link navigates to the link which re-renders the whole page...duh

One way I guess to solve is to get the pathname with JS, parse it to remove the root domain and then match it to the $(a.link).value() and add the .dwyl-mint class to it...

Copy link
Member

@nelsonic nelsonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rob-Rychs thank you for taking the time to make these visual improvements. 🎉

Meta: merging this PR as it "LGTM". If undesired, can easily be reverted. 👍

@nelsonic nelsonic merged commit fd8ede6 into dwyl:master Aug 12, 2018
@Rob-Rychs
Copy link
Contributor Author

@nelsonic thanks buddy 🙏

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

Successfully merging this pull request may close these issues.

2 participants