Page MenuHomePhabricator

Placeholder is on wrong side when using different interface direction to content
Closed, ResolvedPublic

Description

  1. Visit https://meta.wikimedia.org/wiki/Talk:Wikimedia_Foundation_Community_Affairs_Committee?uselang=ar
  2. Observe that the reply tool interface is RTL, but the reply tool input box is supposed to be LTR, however the placeholder is right-aligned as if the input box is RTL:
placehodertext
image.png (385×787 px, 52 KB)
image.png (356×709 px, 49 KB)

Expected:
The placeholder is always left-aligned like the content on an LTR wiki, regardless of interface language.

Event Timeline

Change 779893 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Set dir/lang props on placeholder element

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

matmarex renamed this task from Placeholder is on wrong size when using different interface direction to content to Placeholder is on wrong side when using different interface direction to content.Apr 13 2022, 9:39 PM

Change 779893 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Set dir/lang props on placeholder element

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

Change 779957 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (038522816)

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

Change 779957 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (038522816)

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

placeholder:

Screenshot 2022-04-19 at 11.57.31.png (898×2 px, 168 KB)

text:

Screenshot 2022-04-19 at 12.02.02.png (872×1 px, 160 KB)

Further observations to confirm the above:

placeholder:

Screenshot 2022-04-19 at 12.07.09.png (892×1 px, 136 KB)

text:

Screenshot 2022-04-19 at 12.10.28.png (876×1 px, 129 KB)

placeholder:

Screenshot 2022-04-19 at 12.15.51.png (890×1 px, 127 KB)

text:

Screenshot 2022-04-19 at 12.17.14.png (950×1 px, 131 KB)

As shown above, arwiki has the placeholder and text right-aligned since we are in the context of a RTL wiki. This behaviour is fixed irrespective of the interface language.

ppelberg claimed this task.