Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django Dashboard Material - sidebar navigtation active highlight #1

Closed
Algogator opened this issue Feb 26, 2020 · 2 comments
Closed
Assignees

Comments

@Algogator
Copy link
Contributor

When you navigate through the sidebar the highlight does not follow it. It's stuck on Dashboard.

@app-generator app-generator changed the title sidebar navigtation active highlight Django Dashboard Material - sidebar navigtation active highlight Feb 27, 2020
@app-generator
Copy link
Owner

Patch proposal:
In the controller: a new variable segment will be injected when the page is rendered
In the sidebar component: we need to check the current page (e.g. segment variable) and echo the active CSS class.
We will provide the patch asap.

app-generator pushed a commit that referenced this issue Feb 27, 2020
…hlight

The current page is now injected in the page context using variable segment .
Later in the view (sidebar.html) a simple if is used to detect the current page and echo the ACTIVE class.
@app-generator
Copy link
Owner

Patch in commit

I will close the issue.

@Algogator join the community on Discord - It's free :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants