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

[BUG] Combined layout: id "navbar-menu" twice #808

Closed
aleksblendwerk opened this issue Feb 21, 2021 · 4 comments
Closed

[BUG] Combined layout: id "navbar-menu" twice #808

aleksblendwerk opened this issue Feb 21, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@aleksblendwerk
Copy link

I am just about to get started with Tabler (downloaded the 1.0.0-beta release archive) and decided to start with the layout-combo.html template.

I am confused because I am seeing the ID navbar-menu twice in the demo markup. Also the whole "avatar" and user-related markup is in there twice, once in the aside and once in the header. Is that how it should be, does it really need to be included twice?

(First time user here, so apologies in advance if this has been brought up already or I just did something wrong.)

@aleksblendwerk aleksblendwerk added the bug Something isn't working label Feb 21, 2021
@brylocode
Copy link
Contributor

@aleksblendwerk Yes, the fact is twice, but is it the id that prevents you from doing something?

@aleksblendwerk
Copy link
Author

@brylocode I didn't run into problems like this yet. Mainly I was just confused because the same id was used twice on the same page when I was customizing the given layout. And I was doubting if this is really the 'best practice'. My frontend skills are limited though, so you might as well just consider this a question instead of a bug report.

@nerdoc
Copy link

nerdoc commented Oct 25, 2022

This is not best practice, in fact this is a violation of the HTML specs. an id must only exist once in a HTML document.
Another thing: the Interface link has a href="#navbar-base" which is non-existent. This IMHO should be "#" as it's just a dropdown.

Can't the #navbar-menu that appears in the vertical sidebar be renamed to e.g. #navbar_secondary?
This bug is now nearly 2 years old, and could be fixed easily - If that's ok for everyone I can mane a PR with just renaming it?

@codecalm codecalm reopened this Oct 28, 2022
@codecalm
Copy link
Member

fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants