Page MenuHomePhabricator

All FavoriteButtons have borders when hovering
Closed, ResolvedPublicBUG REPORT

Description

When hovering anywhere in the search results list, all favorite buttons get a border:

image.png (458×751 px, 47 KB)
image.png (578×1 px, 61 KB)

The border should only appear when hovering on a favourite button, and then it should only be on the button that's being hovered on.

Event Timeline

Samwilson renamed this task from Remove border from FavoriteButtons on hover to All FavoriteButtons have borders when hovering.Mar 26 2025, 3:38 AM
Nidhicodes subscribed.

Hi @Samwilson , I am very excited to be a part of the community and looking forward to contribute to the best of my abilities. I would like to begin by going ahead with this task. Can you please assign it to
me?

@Nidhicodes Welcome! Sure, very happy for you to take this on. You've already assigned it to yourself. :-)

Have you worked on MediaWiki before? This is a good starting point: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker

@Nidhicodes I'm going to assume you're busy with other things, and claim this task. The borders have been annoying me and I want to fix them! :-) Hope that's okay.

Change #1134395 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/TemplateData@master] Remove background and border from FavoriteButtons in search results

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

Change #1134395 merged by jenkins-bot:

[mediawiki/extensions/TemplateData@master] Remove background and border from FavoriteButtons in search results

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

@Samwilson I notice when the search menu first displays (or if you navigate away from the tab and then back) there is something like a border around the first favourite button. It goes away when you hover over the search menu. I don't know how much this matters.

sort_of_border.png (711×909 px, 53 KB)

EDIT: The border also appears when you navigate through the search menus with the keyboard, if you the cursor is not hovering over the menu.

There are some circumstances where you see a light border, but perhaps it does not matter. Resolving.