mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 18:58:36 +02:00
feat(theme-classic): add stable class for DocSidebarContainer (#6466)
This commit is contained in:
parent
d73b4f8674
commit
d0fc31c8ae
2 changed files with 8 additions and 3 deletions
|
@ -70,9 +70,13 @@ function DocPageContent({
|
|||
|
||||
{sidebar && (
|
||||
<aside
|
||||
className={clsx(styles.docSidebarContainer, {
|
||||
[styles.docSidebarContainerHidden]: hiddenSidebarContainer,
|
||||
})}
|
||||
className={clsx(
|
||||
ThemeClassNames.docs.docSidebarContainer,
|
||||
styles.docSidebarContainer,
|
||||
{
|
||||
[styles.docSidebarContainerHidden]: hiddenSidebarContainer,
|
||||
},
|
||||
)}
|
||||
onTransitionEnd={(e) => {
|
||||
if (
|
||||
!e.currentTarget.classList.contains(styles.docSidebarContainer)
|
||||
|
|
|
@ -48,6 +48,7 @@ export const ThemeClassNames = {
|
|||
docFooter: 'theme-doc-footer',
|
||||
docFooterTagsRow: 'theme-doc-footer-tags-row',
|
||||
docFooterEditMetaRow: 'theme-doc-footer-edit-meta-row',
|
||||
docSidebarContainer: 'theme-doc-sidebar-container',
|
||||
docSidebarMenu: 'theme-doc-sidebar-menu',
|
||||
docSidebarItemCategory: 'theme-doc-sidebar-item-category',
|
||||
docSidebarItemLink: 'theme-doc-sidebar-item-link',
|
||||
|
|
Loading…
Add table
Reference in a new issue