ironmansoftware / universal-dashboard

Build beautiful websites with PowerShell.
https://universaldashboard.io
GNU Lesser General Public License v3.0
449 stars 83 forks source link

Menu - Highlight Current Page #975

Open daver107 opened 5 years ago

daver107 commented 5 years ago

As a future enhancement it would be nice to easily see what page you're on in the sidebar menu. I imagine something such as a darker background behind the link to the current page.

psDevUK commented 5 years ago

I didn't know until not that long ago...but there is a -title parameter in the new-udpage which puts in big text on the navbar. I now use this for every page so the user knows by looking at the navbar which page they are on....although I will look into if this is possible in css.

psDevUK commented 5 years ago

I spent time looking at this last night using the a:visited a:active in CSS and although I could get the link to change colour when I clicked on it in the sidenav it would not remember to keep that colour. Maybe have to edit another file associated with the sidenav?