Page MenuHomePhabricator

Decouple util.highlightSubstring RL module from client and repo
Closed, ResolvedPublic

Description

The method is outlined in the parent ticket.

Event Timeline

Change 610329 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/Wikibase@master] Decouple util.highlightSubstring RL module from client and repo

https://gerrit.wikimedia.org/r/610329

Change 610329 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Decouple util.highlightSubstring RL module from client and repo

https://gerrit.wikimedia.org/r/610329

The change works, in that matching substrings are still marked as highlights in the HTML:

<li class="ui-ooMenu-item" dir="auto"><a tabindex="-1"><span class="highlight">En</span>glish (<span class="highlight">en</span>wiki)</a></li>

That said, Wikibase does not define any special styles for the highlight class, and hasn’t done so for quite some time, so the highlighting isn’t visible by default. (In fact I couldn’t find any trace of the class ever being styled in the Git history, but I’m sure it used to be in some submodule or library that I missed. T68433 is an old task for it.) On Wikidata, exactly two users style the class in their common.css (search): User:Kiailandi and User:Hjfocs. I hope they’re happy that we’re still keeping this feature working ^^