Message highlight when nav to from message link
When clicking on a message link for an earlier post/another channel, the highlight is now very pale and quick to dissipate.
Can some setting be provided so this highlight could be brightened along with a longer timeframe?
As a person with not the greatest eyesight, I usually find that by the time the message has loaded, the highlight animation has finished before I can focus after the UI shift, so I don't know what I should be looking at.
-
To highlight the anchor( from the list item) ,we are going to simply add class "active" to it and its background will be blue and the text will turn white.
Now to add the "active" class to the specific navigation item we will write this jquery code.
$(document).ready(function(){
$('nav a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
});
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar