Steps to reproduce
- Go to https://fa.wikipedia.org/wiki/%DA%AF%D8%A7%D9%87%E2%80%8C%D8%B4%D9%85%D8%A7%D8%B1%DB%8C_%D9%87%D8%AC%D8%B1%DB%8C_%D8%AE%D9%88%D8%B1%D8%B4%DB%8C%D8%AF%DB%8C?vectorstickyheader=1
- Scroll down until sticky header appears
- Select user menu
Observed
Username appears aligned incorrectly. Icon is on the wrong side
Expected
Username should be right aligned and the icon should appear on the right
Developer notes
Remove the dir=auto on the #pt-userpage a element which is set here:
https://gerrit.wikimedia.org/g/mediawiki/core/+/826b6f6dacbc1834ef4aa6bf972852f9a03b4d98/includes/skins/SkinTemplate.php#1038
Inside Vector modern (only)
You'll need to use one of the existing hooks to do this.
QA steps
- Navigate to a page locally as a logged-in user in modern Vector in a rtl language i.e. he (updating this config var in local settings will render page in rtl $wgLanguageCode = "he";)
- Hover over the user menu and narrow the view port until the username is injected into the user menu dropdown
- Note that the user name is right-aligned
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T297953#7830341 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T297953#7847013 |