Add next and prev buttons

What does this MR do and why?

  • Added next and prev buttons
  • Changed the match background color to the one in specified in the designs
  • Added a purple(ish) background (taken from GitLab SVGs) to the current match
  • Pressing next when it is end of the list will take you back to position 0
  • Pressing prev when it is beginning of the list will take you back to last position

Screenshots or screen recordings

next-and-prev

How to set up and validate locally

  1. Enable feature flag: echo "Feature.enable(:find_and_replace)" | rails c
  2. Visit an issue
  3. Edit the content
  4. Make sure you are using Plain text editor (will not work for RTE)
  5. Hit CMD+F

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.

Related to #505695 (closed)

Edited by Alex Fracazo

Merge request reports

Loading