Page MenuHomePhabricator

Apply MenuItem selected styles to Menu footer
Closed, ResolvedPublicBUG REPORT

Description

Background

When activated (on click), the custom footer added to the TypeaheadSearch menu does not display the same selected styles as the MenuItem component. In particular, the text color doesn't change to Accent50, like in the rest of the menu options.

Screenshot 2022-05-12 at 19.28.42.png (1×1 px, 317 KB)

Goal

We shouldn't make an exception but, instead, ensure that the menu footer's selected style matches that of MenuItems (designs available in this Figma frame).

AC

  • The footer's selected styles match those of the rest of the menu items

Event Timeline

SimoneThisDot changed the task status from Open to In Progress.Jun 14 2022, 2:40 PM
SimoneThisDot claimed this task.
SimoneThisDot moved this task from Inbox to Design-System-Sprint on the Design-System-Team board.

Change 805399 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[design/codex@main] Menu, Typeahead: Apply MenuItem selected styles to Menu footer

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

Change 805399 merged by jenkins-bot:

[design/codex@main] Menu, Typeahead: Apply MenuItem selected styles to Menu footer

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

Behavior and styles are correct in all last versions of Chrome, Firefox and Safari. I detected, though, that the footer's text keeps displaying the active blue color on mouseleave during mousedown. The correct behavior would be for the active styles to be fully removed in that case (see 803610 and T308170: MenuItems should lose highlighted and active states on mouseleave for reference). I'm not sure if this fix should be implemented as part of this same task, or if a separate ticket is needed. Would be happy to create it if so!

Can be signed off, given that the issue detected was fixed in a separate patch.

NBaca-WMF added subscribers: SimoneThisDot, NBaca-WMF.

Setting Owner to Ezekiel for QTE Sign-off

Sarai-WMDE added a subscriber: DAbad.

Part of Codex alpha 8 release

DAbad changed the subtype of this task from "Task" to "Bug Report".

Signing off.