Page MenuHomePhabricator

Horizontal gradient appearing on right side of text for RTL page previews
Closed, ResolvedPublic1 Estimated Story Points

Description

Testing notes

Scenario 1: Text truncation on an RTL page for an RTL page

  1. Visit http://reading-web-staging.wmflabs.org/wiki/T158858.
  2. Hover over the "Rtl popups" link and wait for a preview to appear.
  3. Observe that a horizontal gradient appears on the LHS of the preview text.

Scenario 2: Text truncation on an LTR page for an RTL page

  1. Visit http://reading-web-staging.wmflabs.org/wiki/Category:Popups_corpus.
  2. Hover over the "Rtl popups" link and wait for a preview to appear.
  3. Observe that a horizontal gradient appears on the LHS of the preview text.
  4. Visit http://reading-web-staging.wmflabs.org/wiki/Category:Popups_corpus.
  5. Hover over the "Paper" link and wait for a preview to appear.
  6. Observe that a horizontal appears on the RHS of the preview text.

Original bug report

Steps to recreate:

  1. Go to: the page for Ada Lovelace as a logged in user on Hebrew Wikipedia
  2. Hover over ืžืชืžื˜ื™ืงืื™ืช

Expected behavior - horizontal gradient appears on the left side of text
Observed behavior - horizontal gradient appears on the right side of text

Screen Shot 2017-02-23 at 3.48.04 PM.png (324ร—501 px, 168 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptFeb 23 2017, 2:49 PM

Change 339454 had a related patch set uploaded (by Phuedx):
Don't flip extract truncation mechanism

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

phuedx set the point value for this task to 1.Feb 23 2017, 6:15 PM

We'll need a page on the staging server that has a page content language that's RTL with a link to a page that has a page content language that's RTL, e.g. RTL popups links to RTL popups part deux.

Change 339940 had a related patch set uploaded (by Phuedx):
i18n: Fix popups fade on RTL

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

Change 339454 abandoned by Phuedx:
Don't flip extract truncation mechanism

Reason:
Duplicated by I0d50a8b5.

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

Change 339940 merged by jenkins-bot:
i18n: Fix popups fade on RTL

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

Change 340106 had a related patch set uploaded (by Phuedx):
truncation: Fix fade direction for RTL previews

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

rEPOP84a60c4db7f7: truncation: Fix fade direction for RTL previews fixes the direction of the gradient used to truncate the preview text. The UBN!-like part of this task, the position of the truncating element, has already been fixed and can be tested on the staging server.

Change 340106 merged by jenkins-bot:
truncation: Fix fade direction for RTL previews

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

Appearing as expected.