Page MenuHomePhabricator

Voting success message close button on wrong side in RTL
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
dom_walden
Oct 16 2025, 7:41 AM
Referenced Files
F70992658: 2025-12-10_15-15-05.webm
Dec 10 2025, 11:18 PM
F70838996: 2025-12-03_08-49-36.webm
Dec 3 2025, 4:52 PM
F70255760: 2025-11-17_09-40-19.png
Nov 17 2025, 5:49 PM
F70255757: 2025-11-17_09-40-10.png
Nov 17 2025, 5:49 PM
F70255753: 2025-11-17_09-38-55.png
Nov 17 2025, 5:49 PM
F70255739: 2025-11-17_09-37-12.webm
Nov 17 2025, 5:49 PM
F70255623: 2025-11-12_09-49-00.mp4
Nov 17 2025, 5:49 PM
F70255621: 2025-11-12_09-48-25.mp4
Nov 17 2025, 5:49 PM

Description

What is the problem?

After voting on a wish written in an RTL language, the green success message you see has the close button on the right. This overlaps the content of the success message.

If your content language direction matches the language of the wish, this bug does not happen.

Steps to reproduce problem
  1. Login to https://meta.wikimedia.beta.wmcloud.org
  2. Go to https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20
  3. Click "Support wish", "Edit comment" or "Remove support" and submit
Environment

Browser: Firefox 140
Wiki(s): https://meta.wikimedia.beta.wmcloud.org CommunityRequests – (20369cc) 03:05, 16 October 2025.

Screenshots

voting_success_message.png (417Γ—995 px, 43 KB)


Derived Requirements

The voting success message must correctly mirror its layout in RTL languages.
When a user votes on a wish written in an RTL language, the green success message must display the close button on the left, ensuring it does not overlap the text content.
The layout must respect the content language direction, regardless of the UI language direction.

Test Steps

Preconditions

  • User is logged into https://meta.wikimedia.beta.wmcloud.org.
  • The wish being tested is written in an RTL language (e.g., Hebrew, Arabic).
  • UI is in a language that *does not* match the wish language direction to trigger the scenario (e.g., UI in English, wish in Hebrew).
  • Using Minerva skin unless specified otherwise.

Test Case 1: Verify Close Button Position in RTL Success Message

  1. Navigate to https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20.
  2. Select a wish written in an RTL language.
  3. Click Support wish, Edit comment, or Remove support, then submit.
  4. Observe the green voting success message.
  5. Review the layout of the close button.
  6. πŸŸ©β“βŒβ¬œ AC1: Confirm the close button appears on the left side in RTL contexts.
  1. πŸŸ©β“βŒβ¬œ AC2: Confirm the close button does not overlap any of the success message text.

Test Case 2: Verify Correct Behavior When UI Direction Matches Wish Language Direction

  1. Change your content language to match the wish language direction (e.g., switch UI language to Hebrew).
  2. Navigate again to the RTL wish page.
  3. Trigger a voting action (Support, Edit comment, or Remove support).
  4. Observe the green success message.
  5. πŸŸ©β“βŒβ¬œ AC3: Confirm that in this matching-direction scenario, the close button appears in the correct mirrored position for the language.

QA Results - Meta Beta

ACStatusDetails
1βœ…T407469#11380298
2βœ…T407469#11380298
3βœ…T407469#11449669

Event Timeline

Restricted Application added a subscriber: Aklapper. Β· View Herald Transcript
HMonroy changed the task status from Open to In Progress.Nov 4 2025, 9:00 PM
HMonroy claimed this task.

Change #1203579 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Use content lang dir to display voting success message

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

Change #1203579 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Use content lang dir to display voting success message

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

HMonroy changed the task status from In Progress to Open.Nov 12 2025, 5:05 PM
HMonroy moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.
Restricted Application added a subscriber: alaa. Β· View Herald TranscriptNov 14 2025, 11:45 PM

@HMonroy Please review AC3, regarding mobile EN RTL, since the close button still overlaps, as seen in the video.

Test Result - Meta Beta

Status: βœ… PASS / ❌ FAIL
Environment: Meta Beta
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20

Preconditions

  • User is logged into https://meta.wikimedia.beta.wmcloud.org.
  • The wish being tested is written in an RTL language (e.g., Hebrew, Arabic).
  • UI is in a language that *does not* match the wish language direction to trigger the scenario (e.g., UI in English, wish in Hebrew).
  • Using Minerva skin unless specified otherwise.

Test Case 1: Verify Close Button Position in RTL Success Message

  1. Navigate to https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20.
  2. Select a wish written in an RTL language.
  3. Click Support wish, Edit comment, or Remove support, then submit.
  4. Observe the green voting success message.
  5. Review the layout of the close button.
  6. 🟩 AC1: Confirm the close button appears on the left side in RTL contexts.
Hebrew
  1. 🟩 AC2: Confirm the close button does not overlap any of the success message text.
En-RTL: SubmitEn-RTL: EditEn-RTL: Remove

Test Case 2: Verify Correct Behavior When UI Direction Matches Wish Language Direction

  1. Change your content language to match the wish language direction (e.g., switch UI language to Hebrew).
  2. Navigate again to the RTL wish page.
  3. Trigger a voting action (Support, Edit comment, or Remove support).
  4. Observe the green success message.
  5. ❌ AC3: Confirm that in this matching-direction scenario, the close button appears in the correct mirrored position for the language.

🟩See AC2

❌Mobile

❌ Mobile: En-RTL🟩 Mobile: Hebrew-RTL Submit🟩 Mobile: Hebrew-RTL Edit🟩 Mobile: Hebrew-RTL Remove
2025-11-17_09-38-55.png (1Γ—828 px, 125 KB)
2025-11-17_09-40-10.png (1Γ—760 px, 118 KB)
2025-11-17_09-40-19.png (1Γ—823 px, 115 KB)
GMikesell-WMF changed the task status from Open to In Progress.Nov 17 2025, 5:51 PM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Sea Lion Squad) board.

Test Case 2: Verify Correct Behavior When UI Direction Matches Wish Language Direction

  1. Change your content language to match the wish language direction (e.g., switch UI language to Hebrew).
  2. Navigate again to the RTL wish page.
  3. Trigger a voting action (Support, Edit comment, or Remove support).
  4. Observe the green success message.
  5. ❌ AC3: Confirm that in this matching-direction scenario, the close button appears in the correct mirrored position for the language.

🟩See AC2

@HMonroy issue still looks different, as seen in the video below.

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20?useformat=mobile&uselang=en-rtl

❌ Mobile: En-RTL
GMikesell-WMF changed the task status from Open to In Progress.Dec 3 2025, 4:53 PM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Sea Lion Squad) board.
HMonroy changed the task status from In Progress to Open.Dec 10 2025, 5:28 PM
HMonroy moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.

Test Case 2: Verify Correct Behavior When UI Direction Matches Wish Language Direction

  1. Change your content language to match the wish language direction (e.g., switch UI language to Hebrew).
  2. Navigate again to the RTL wish page.
  3. Trigger a voting action (Support, Edit comment, or Remove support).
  4. Observe the green success message.
  5. ❌ AC3: Confirm that in this matching-direction scenario, the close button appears in the correct mirrored position for the language.

🟩See AC2

@HMonroy issue still looks different, as seen in the video below.

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W20?useformat=mobile&uselang=en-rtl

❌ Mobile: En-RTL

@HMonroy "X" is no longer crossing with the words anymore. I will mark this now as Resolved. Thanks for all your work!

βœ… Mobile: En-RTL
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.