Skip to content

Better markup for sidebar menu items #1170

Description

@trusktr

Feature request

The markup in the sidebar has uls, lis, ps, and as, but without any semantic classes.

I'd like to be able to more easily style the menu levels.

For example, to achieve something like this:

sidebar

What problem does this feature solve?

Currently, to do this, we have to write CSS like this:

ul>li>p {
/* style first level */
}
ul>li>ul>lip {
/* style second level */
}
/* etc */

What does the proposed API look like?

It may be cleaner to have classes, like

.menu-level1{/* style first level */}.menu-level2{/* style second level */}

or similar. Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions