Stop CSS transition on the Rapid Diffs file toggle button
What does this MR do and why?
This MR removes secondary transition when toggling files in Rapid Diffs. The secondary transition is caused by the fact that there are two buttons: one for collapse, one for expand. Each time a button is clicked it is immediately hidden and another button is shown and focused. That focus activation triggers another transition, which should not be there.
Screenshots or screen recordings
| Before | After |
|---|---|
| Screen_Recording_2025-04-30_at_00.50.41 | Screen_Recording_2025-04-30_at_00.48.15 |
How to set up and validate locally
- Enable
rapid_diffsandrapid_diffs_on_mr_showfeature flags - Go to any merge request
- Select 'Changes' tab
- Add
?rapid_diffs=trueto the URL, follow it - Toggle any file
- Observe no additional transitions after first click