Skip to content

sidebar_class_name not applied for index pages #6232

@lebalz

Description

@lebalz

Have you read the Contributing Guidelines on issues?

Description

When using a category index page (e.g. docs/how-to/index.md) and providing front-matter meta data

---
sidebar_class_name: green
---

i would expect, that this is applied to the category's <li class="green"> element, but it is not.

Current workaround: _category_.json with

// _category_.json
{
  "className": "green"
}

Self-service

  • I'd be willing to address this documentation request myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionclosed: duplicateThis issue or pull request already exists in another issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions