Stop sidebar labels replaying their entrance on collapse
What does this MR do and why?
Collapsing a section in the super sidebar makes its item labels jitter: each label jumps left into its icon, fades, then slides back while the section closes causing a visual jitter effect on collapse.
Vue 3 ignores its Vue 2 leaveClass="collapse show" prop, so Bootstrap's .collapse:not(.show) { display: none } applies until the leave hook sets display: block again. Coming back from display: none replays the entrance on every label.
References
N/A
Screenshots or screen recordings
Current
| Before | After |
|---|---|
![]() |
![]() |
Feature.enable(:hide_unpinned_sidebar_items)
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
-
Visit a project, for example
http://gdk.test:3000/gitlab-org/gitlab-test. -
In the sidebar, expand a collapsible section such as Plan. The labels slide in as before.
-
Collapse the same section. The labels stay in place while it closes, instead of jumping into their icons.
-
Optional: enable the feature flag and repeat with a pinned category group, after pinning 3 or more items from one category.
Feature.enable(:hide_unpinned_sidebar_items)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.



