From bf1da2d705ff37bb13923153f5c0ebfb7de839a0 Mon Sep 17 00:00:00 2001 From: Dan Piazza <220388267+DanPiazza-Netwrix@users.noreply.github.com> Date: Fri, 15 May 2026 18:41:58 -0400 Subject: [PATCH] fix: cap sidebar collapse animation to 200ms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docusaurus computes collapse transition duration proportional to content height. The API Reference section has 112 tag groups (~4340px), causing the default formula to produce ~778ms — nearly a second of animation when collapsing the category. One CSS rule capping transition-duration to 200ms (matching --ifm-transition-fast) eliminates the delay site-wide without affecting any other behavior. !important is required to override the inline style set by Docusaurus's useCollapsible hook. Generated with AI Co-Authored-By: Claude Code --- src/css/custom.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index 4c6c9447b9..b17b99e088 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -530,6 +530,17 @@ html { background: var(--docsearch-primary-color); } +/* ============================================================ + API Reference — sidebar collapse animation + Docusaurus calculates collapse transition duration proportional to + content height. With 112 tag groups (~4340px), the default formula + produces ~800ms — noticeably slow. Cap it to match --ifm-transition-fast. + !important is required to override the inline style set by useCollapsible. + ============================================================ */ +.theme-doc-sidebar-menu .menu__list { + transition-duration: 200ms !important; +} + /* ============================================================ API Reference — HTTP method badges in sidebar Classes (e.g. "api-method get") come from docusaurus-plugin-openapi-docs