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
Before_-_current after - current

Feature.enable(:hide_unpinned_sidebar_items)

Before After
before - flag after - flag

How to set up and validate locally

  1. Visit a project, for example http://gdk.test:3000/gitlab-org/gitlab-test.

  2. In the sidebar, expand a collapsible section such as Plan. The labels slide in as before.

  3. Collapse the same section. The labels stay in place while it closes, instead of jumping into their icons.

  4. 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.

Edited by Austin Regnery

Merge request reports

Loading
Loading