Fix z-index for diff file with active dropdown in Rapid Diffs
What does this MR do and why?
This MR fixes a regression after !191782 (merged).
It changed the root element of the file header with position: sticky from .rd-diff-file-header to .rd-diff-file-header-sticky.
But z-index wasn't moved to the new element, which caused for this bug to reappear.
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Enable
rapid_diffsandrapid_diffs_on_mr_showfeature flags - Open any merge request with at least 2 files
- Select 'Changes' tab
- Add
?rapid_diffs=trueto the URL, follow it - Collapse the first file
- Open menu on the collapsed file
- Observe dropdown being on top of another file, not covered by anything

