The highlighting of the search query is breaking the displayed results text when looking up mentees by name. See example: https://imgur.com/a/jWLbnzG
Steps to reproduce:
- Navigate to https://en.wikipedia.beta.wmflabs.org/wiki/Special:MentorDashboard
- Use the lookup for mentees introducing a query that matches a mentee username except for the initial capital letter
The displayed names have stripped parts and are not legible
What should happen?
The displayed names should be legible regardless of if the search query matched part is highlighted or not.
In the example above the API returns 2 matching names: "ScrollTest" and "ScrollTest2".