Ensure that super sidebar becomes visible on resize
What does this MR do and why?
This fixes a change that caused the sidebar to remain invisible when loading a page with a viewport narrow-enough for it to start collapsed, then expanded the window until the super sidebar attempted to slide in.
Also refactors the related spec to remove some logic from the test-case, which should make the scenarios easier to grasp.
Screenshots or screen recordings
Before | After |
---|---|
ghost | noghost |
How to set up and validate locally
- Enable the new nav:
- If you have previously collapsed the sidebar manually, make sure to expand it once.
- Reduce the window until the sidebar automatically slides out.
- Reload the page.
- Expand the window until the sidebar slides in.
- The sidebar should be fully visible.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #404903 (closed)