Empty <li> in Discourse navigation

Hello, this isn’t a super big deal but I noticed that there’s always an empty <li> tag at the end of every Discourse navigation bar; I was wondering if this was intentional on the developers’ behalf? I wanted to style the navigation list items based on :first-child and :last-child for a theme, and currently I’m using :nth-last-child(2) as a workaround.

7 Likes

There’s an old outlet that can be used to add a navigation item there… that’s creating the empty tag.

It appears to be unused, and we have one of our more standard plugin outlets immediately after it (which doesn’t create an empty tag)… so I’ve submitted a PR to remove it. If you update Discourse sometime next week it should go away. Thanks for mentioning it.

11 Likes