mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 02:42:41 +02:00
feat(theme-classic, plugin-docs): sidebar item level-specific className + allow customization (#5642)
* Initial work * Complete function * Avoid duplication * More dedupe * Make everything constants * Change casing & docs
This commit is contained in:
parent
f6ec757aa0
commit
eaacb0e98a
14 changed files with 79 additions and 11 deletions
|
@ -50,9 +50,13 @@ export const ThemeClassNames = {
|
|||
docSidebarMenu: 'theme-doc-sidebar-menu',
|
||||
docSidebarItemCategory: 'theme-doc-sidebar-item-category',
|
||||
docSidebarItemLink: 'theme-doc-sidebar-item-link',
|
||||
docSidebarItemCategoryLevel: (level: number) =>
|
||||
`theme-doc-sidebar-item-category-level-${level}` as const,
|
||||
docSidebarItemLinkLevel: (level: number) =>
|
||||
`theme-doc-sidebar-item-link-level-${level}` as const,
|
||||
// TODO add other stable classNames here
|
||||
},
|
||||
blog: {
|
||||
// TODO add other stable classNames here
|
||||
},
|
||||
};
|
||||
} as const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue