[go: up one dir, main page]

Page MenuHomePhabricator

[WtC-M3] [QB] Replace WiKit ToggleButton component by Codex's
Open, Needs TriagePublic

Description

Problem

The Query Builder's user interface was composed using a combination of Vue 2 custom components and WiKit elements, such as Button. The WiKit design system is now on its deprecation path, as it has been superseded by Codex, the official Wikimedia design system. The utilization of WiKit components is not recommended, and they should be replaced in order to reduce maintenance costs and ensure consistency.

Solution

We have to replace the WiKit ToggleButton by the Codex equivalent: the single value version of the CdxToggleButtonGroup (See demo). This will take us a step closer to switching to the new design system and deprecating the old.

Acceptance criteria
  • All WiKit ToggleButton elements used in Query Builder are replaced by their Codex equivalent

Event Timeline

Arian_Bozorg renamed this task from [SW] [WtC-M3] [QB] Replace WiKit ToggleButton component by Codex's to [WtC-M3] [QB] Replace WiKit ToggleButton component by Codex's.Jun 5 2024, 11:18 AM

This task will require design verification. Please ping Charlie Kritschmar whenever the ticket is ready to be reviewed. Thank you!

Change #1077026 had a related patch set uploaded (by Hasan Akgün (WMDE); author: Hasan Akgün (WMDE)):

[wikidata/query-builder@master] Replace WiKit ToggleButton component by Codex's

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

hey @HasanAkgun_WMDE thanks for the ping. Everything looks great except for one little thing I noticed.

In voice over, the second button is being called a button not a toggle button like the first one. I checked in the codex demo, and it seems like each of the buttons in a togglebuttongroup should be presented as a toggle button by the voiceover.

Let me know if you need a better description of the problem.

hey @HasanAkgun_WMDE thanks for the ping. Everything looks great except for one little thing I noticed.

In voice over, the second button is being called a button not a toggle button like the first one. I checked in the codex demo, and it seems like each of the buttons in a togglebuttongroup should be presented as a toggle button by the voiceover.

Let me know if you need a better description of the problem.

Thank you so much for the feedback @Charlie_WMDE ! I was able to reproduce the issue, and it's because of migration build of Vue we use, it doesn't render aria attributes correctly but it will work properly when we migrate to Vue 3. What do you think we should do?

Change #1077026 merged by jenkins-bot:

[wikidata/query-builder@master] Replace WiKit ToggleButton component by Codex's

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