Page MenuHomePhabricator

Recommended reading exp: InterestSelector loses its left border when removing interests
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

While reviewing the patch for T435525 (adding the interest selector to the reading recommendations module), I noticed when I remove interests then the interest selector loses its left border.

Screenshot 2026-09-15 at 9.00.29 AM.png (1,826×1,662 px, 408 KB)

I think this is an issue with the InterestSelector rather than how we are integrating it in the reading module.


Requirements

Acceptance criteria for done

  • When removing an interest (chip), the interest selector component retains the border on all sides.

QA strategy

  • Risky change? Low risk
  • QA by: anyone
  • QA in: beta or any environment is okay
  • Test steps:

The fix would need to be reviewed together with the patch for adding the InterestSelector to the reading module:

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/1341317

Add interests via the developer console:

new mw.Api().saveOption(
  'growthexperiments-interest-articles-editing',
  JSON.stringify(['Jazz'])
);

Then view Special:Homepage and remove the interest (chip).

This task was created by Version 1.2.0 of the Reader Experience team task template using phabulous.

Event Timeline

aude renamed this task from Interest selector loses its left border when removing interests to InterestSelector loses its left border when removing interests.Sep 15 2026, 3:16 PM

This also happens to me on launching the dialog, not only on removing interests (in this recent patch https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/1341317), first thought was that it is caused by the scrollbar calculation as soon as the related articles drop in.
That's why I thought to expand the height on desktop in my first attempt last Friday, but that would have been a shortcut and not the real solution.

Volker_E renamed this task from InterestSelector loses its left border when removing interests to Recommended reading exp: InterestSelector loses its left border when removing interests.Sep 15 2026, 8:37 PM
Volker_E set the point value for this task to 2.

This seems to be caused by box-sizing missing on the input in the Codex ChipInput: .cdx-chip-input__input { box-sizing: border-box }. That fixes it for me.

I'll make a change to add this to the InterestSelector, but it would be great if someone could also upstream this as a bug-fix into Codex.

(This was figured out by Claude which I pointed to this task and asked to do so while I was in a meeting.)

Change #1342280 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] fix(InterestSelector): prevent horizontal scrolling

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

Change #1342280 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] fix(InterestSelector): prevent horizontal scrolling

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