Page MenuHomePhabricator

Migrate ModeSelector to use Codex's MenuButton, now it exists
Closed, ResolvedPublic

Description

ModeSelector.vue currently manually combines a CdxButton and a CdxMenu. We should migrate to use a CdxMenuButton https://doc.wikimedia.org/codex/latest/components/demos/menu-button.html. This should help with overflow/screen-side issues, as well as reduce bespoke code at our end.

Event Timeline

Jdforrester-WMF moved this task from To Triage to Backlog on the Abstract Wikipedia team board.
Jdforrester-WMF renamed this task from Migrate ModeSelector to use Codex's MenuButton, once it exists to Migrate ModeSelector to use Codex's MenuButton, now it exists.Jun 14 2024, 3:19 PM

once we pick this ticket we should also test if the codex button solve the current issue with overflowing menus on smaller viewports

image.png (1×698 px, 150 KB)

Change #1053701 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] ModeSelector.vue: Migrate ModeSelector to use Codex's MenuButton, now it exists

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

once we pick this ticket we should also test if the codex button solve the current issue with overflowing menus on smaller viewports

image.png (1×698 px, 150 KB)

It does!

image.png (1×1 px, 402 KB)

once we pick this ticket we should also test if the codex button solve the current issue with overflowing menus on smaller viewports

image.png (1×698 px, 150 KB)

It does!

image.png (1×1 px, 402 KB)

\o/

Change #1053701 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ModeSelector.vue: Migrate ModeSelector to use Codex's MenuButton, now it exists

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