Skip to content

Fix user reference styles in content editor

Himanshu Kapoor requested to merge himkp-ce-gfm into master

What does this MR do and why?

Fix styling of user references and when the user is current user in content editor.

See: #379045 (comment 1331283748)

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Access content editor. Content editor (rich text editor) is available in wikis globally, and in issue/MR comments behind a feature flag :content_editor_on_issues. Click "Viewing markdown" at bottom right and select "Rich text" from the menu to switch to content editor.
  2. Press @ to make the user suggestions dropdown show and select a user.
  3. Notice that the styling of users is exactly like markdown preview now. (i.e. current users are highlighted in yellow, and all other users are highlighted in blue.)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Himanshu Kapoor

Merge request reports