You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the reason that this bug has arisen is in Sapper, you can use a variable called segment to get the name of the current page's path. In SvelteKit, this variable has been removed (which is why our feature suddenly stopped working; segment was just always undefined).
Finally, you can update the conditional statement that determines whether or not the aria-current HTML attribute is activated, which in turn activates the color. On line 40, update the conditional such that aria-current is true if $pages.path is equal to the path of the menuItem.
What happened?
The active page’s navigation tab does not stay active since the SvelteKit migration.
Original: #148
The text was updated successfully, but these errors were encountered: