Fix text color of rich text suggestion added line text

What does this MR do and why?

Currently when using the rich text editor to add a suggestion, the text color for added lines is inherited, which makes them very difficult to read on the dark green background.

This is because the wrong one of the two versions of the diff text was styled; the one the user edits directly should be transparent and the one formatted for display should be shown, but the transparent text class was applied to the wrong one.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Check out this branch
  2. Visit an MR that has code changes in the GDK
  3. Compose a comment to a line in the MR diff
  4. Ensure you are in rich text editing mode
  5. add a suggestion to your comment

You will see that the added line text is white, not dark gray.

Merge request reports

Loading