MalteMagnussen / CA2-FrontEnd

FrontEnd repo for Course Assignment 2. Hold Krykke.
https://holdkrykke.surge.sh
0 stars 2 forks source link

Tiny desing detail #54

Open MrHardcode opened 4 years ago

MrHardcode commented 4 years ago

When pressing HOME after pressing ENDPOINTS for example the ENDPOINT option in the nav-bar is still highlighted.

MalteMagnussen commented 4 years ago

How do you reproduce this? Works fine for me.

MrHardcode commented 4 years ago

navbarhighlighting I had worded it slightly wrong. The GIF should show what I mean. By HOME I meant the main { Hold Krykke } icon thing

MalteMagnussen commented 4 years ago

Ohh. Yeah, that { Hold Krykke } thing is different from the others, code-wise, and isn't included in the code that shifts the .active class around. image.png

image.png

It only gets all elements from navbarNav ID.

This behavior can be coded in a bunch of different ways. I used the w3schools way.