Add header-sticky to the What's new drawer

What does this MR do and why?

Adds the header-sticky prop to the main "What's new" drawer's <gl-drawer> in app/assets/javascripts/whats_new/components/app.vue, and adds a Jest assertion in spec/frontend/whats_new/components/app_spec.js confirming the prop is set.

Screenshots or screen recordings

Captured from actual running code, scrolled to the bottom of the article list. In Before the title and close button are gone; in After they stay pinned.

Before After
whatsnew_before whatsnew_after

Screen recordings of the same drawer scrolled down and back up:

Before After

How to set up and validate locally

  1. Open any GitLab page.
  2. Open the Help menu in the sidebar.
  3. Select "What's new".
  4. Scroll the drawer down past a few release items.
  5. Observe that the "What's new at GitLab" title and close button stay pinned at the top while the article list scrolls underneath.

Note: the drawer needs several release items present for the list to be scrollable.

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 Marco Tomasi

Merge request reports

Loading
Loading