Open ItsNehaOjha opened 5 months ago
Thank you for the detailed issue! ❤️
However, solutions likely lie further up the chain of changes in Vocabulary itself.
I'm setting this as blocked, until such time as an appropriate direction is found upstream within Vocabulary
.
Problem
The current navbar links do not visually indicate which page the user is on, which can lead to a confusing user experience.
Description
To enhance the user experience, I propose adding an active state style to the navbar links. This will visually indicate the current page the user is on. For example, adding a dark black color and bold text or underline for the active link can make it stand out:
Proposed Solution
To improve the user experience, I suggest adding an active state style to the navbar links. This will help users easily identify the current page they are on.
Request for Guidance
I am keen to implement this feature and would appreciate guidance on validating these changes and the steps required to implement them. If this proposal is approved, I am ready to start working on it immediately.
Implementation
The proposed changes include:
Vue Component Changes:
Modify the Navbar component to include a reactive activeLink property. Add a setActive method to update the activeLink property and navigate to the clicked link.
Styling Changes:
Update the styles in the Navbar component to highlight the active link. The active link will be indicated with a black color and bold text or an underline.
Example Code
Here is an example of how the changes can be implemented: