Page MenuHomePhabricator

Move the LTR/RTL selector
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

When we refactored the site architecture and updated VitePress, we temporarily hid the direction switcher in the header because we didn't have time to make it work on all viewport widths. We plan on moving it from the header to individual demos.

Implementation

Design

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

Considerations

The design covers configurable demos. For components that do not yet have a configurable demo, we can add the direction switcher to the first demo on the page.

Codex

  • Update LTR/RTL selection in Codex with the solution proposed in the Figma prototype

Event Timeline

bmartinezcalvo renamed this task from Update the LTR/RTL selector to Improve the LTR/RTL selector.May 31 2022, 8:58 AM
AnneT renamed this task from Improve the LTR/RTL selector to Move the LTR/RTL selector.Oct 26 2022, 4:32 PM
AnneT removed a project: Epic.
AnneT updated the task description. (Show Details)
ldelench_wmf set the point value for this task to 1.
AnneT changed the task status from Open to In Progress.Nov 9 2022, 4:03 PM
AnneT claimed this task.

Change 856689 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Add dir to controls, and apply to every component page

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

Change 856690 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Fix direction control for configurable Dialog demo

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

Change 856689 merged by jenkins-bot:

[design/codex@main] docs: Add dir to controls, and apply to every component page

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

Change 856690 merged by jenkins-bot:

[design/codex@main] docs: Fix direction control for configurable Dialog demo

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

@bmartinezcalvo I ended up adding a control to the configurable demo system for direction, so you can toggle between LTR and RTL there! For components that don't yet have a configurable demo, I added only the direction control to the first demo on the page. You can test this all on the live site. Let me know if you have any suggestions for improvements!

@bmartinezcalvo I ended up adding a control to the configurable demo system for direction, so you can toggle between LTR and RTL there! For components that don't yet have a configurable demo, I added only the direction control to the first demo on the page. You can test this all on the live site. Let me know if you have any suggestions for improvements!

@AnneT thank you! This looks great to me.

Captura de Pantalla 2022-11-21 a las 15.25.50.png (1×1 px, 426 KB)

Regarding the property name, I'm wondering if we should name this section "bi-directionality" or "mirroring" instead since the RTL design is better known with these names. What do you think?

Apart from this all looks perfect so we could move this task to QTE sign-off.

Change 859597 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update Codex from v0.2.2 to v0.3.0

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

Change 859597 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.2.2 to v0.3.0

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

Change 859644 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Spell out directions and improve radio controls

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

Based on a conversation between @bmartinezcalvo and I, the patch above makes the following changes:

  • Changes the label from "direction" to "reading direction"
  • Spells out the abbreviations (e.g. Left to right (LTR))

Based on a conversation between @bmartinezcalvo and I, the patch above makes the following changes:

  • Changes the label from "direction" to "reading direction"
  • Spells out the abbreviations (e.g. Left to right (LTR))

Thank you @AnneT, it looks perfect to me so moving the task to QTE sign-off.

{F35815435}

Change 859644 merged by jenkins-bot:

[design/codex@main] docs: Spell out directions and improve radio controls

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

Thanks for this, @AnneT and @bmartinezcalvo .

I tested this out with Button and TextInput and it looks good to me on Chrome v106, Safari v16 and Firefox v107.

Change 865151 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/core@master] Update Codex from v0.3.0 to v0.4.0

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

Change 865151 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.3.0 to v0.4.0

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