Add id or class to list elements

Minor feature request: could you add an ID or class to the li element so we can style this a bit easier?

Edit: I found my way around it:

.category-navigation a[href$="max_posts=1"] {
	background-color: var(--blend-primary-secondary-5);
}

4 Likes

I’ve got a PR in the queue to add a class name to all of the nav items:

so once this is merged, .nav-item_unanswered should work!

6 Likes

Excellent, thanks! And to be clear: this is a change to Discourse itself, not the TC, correct?

2 Likes

Oh yes, I should have mentioned that. This applies to core, and works for the theme component, which extends the core nav.

4 Likes