mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
feat(theme-classic): add stable class for DocSidebarContainer (#6466)
This commit is contained in:
parent
d73b4f8674
commit
d0fc31c8ae
|
|
@ -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…
Reference in New Issue