Page MenuHomePhabricator

Language button is not clickable in sticky headers when preference to disable compact language list is enabled
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

This bug seems to be similar to T287191.

List of steps to reproduce (step by step, including full links if applicable):

sticky-header-languages.jpg (385×1 px, 88 KB)

What happens?:

  • No scollable language list appears. A list is shown only if you visit incognito the article.

What should have happened instead?:

  • Button should not appear / Button should do something

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

  • Firefox 95.0

QA steps

Visit preferences and uncheck this box:

Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
Expected: There is no language button in the sticky header.

  1. Visit preferences and check this box:
    Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
Expected: There is a language button in the sticky header and clicking language button should open a dialog in place without scrolling the page

QA Results - Beta

ACStatusDetails
1T297579#7635072
2T297579#7635072

QA Results - Prod

ACStatusDetails
1T297579#7635075
2T297579#7635075

Event Timeline

If that's disabled we should probably also disable the language button in the sticky header. Thanks for reporting.

Jdlrobson renamed this task from Language button is not clickable in sticky headers to Language button is not clickable in sticky headers when preference to disable compact language list is enabled.Dec 20 2021, 4:22 PM
ovasileva updated the task description. (Show Details)

Change 749212 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Language button clickable in sticky header with preference disabled

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

Change 751521 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/UniversalLanguageSelector@master] Hide sticky header language button with preference disabled

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

Change 749212 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] Language button clickable in sticky header with preference disabled

Reason:

Thinking about this some more I think this is a better solution: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UniversalLanguageSelector/+/751521

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

Change 749212 restored by Jdlrobson:

[mediawiki/skins/Vector@master] Language button clickable in sticky header with preference disabled

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

Change 751521 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Hide sticky header language button with preference disabled

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

cjming removed cjming as the assignee of this task.Jan 6 2022, 5:34 PM
cjming subscribed.
cjming moved this task from QA to Doing on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming added a subscriber: Edtadros.
bwang removed bwang as the assignee of this task.Jan 7 2022, 8:43 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
bwang subscribed.

Change 749212 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] If no ULS, hide language button in sticky header

Reason:

Being done in https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/752003

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

Change 752003 had a related patch set uploaded (by Jdlrobson; author: Bernard Wang):

[mediawiki/skins/Vector@master] Ensure sticky header language button only shows when there are multiple languages and when ULS is enabled

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

Change 752003 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Ensure sticky header language button only shows when there are multiple languages and when ULS is enabled

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

Change 752003 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Ensure sticky header language button only shows when there are multiple languages and when ULS is enabled

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

Needs more work. There seems to be a problem in the implementation here. I see the class on the body that says the feature is disabled but the skinStyle is not applying for some reason because the module is not in the page...

Change 752754 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Hide language button in sticky header if compact links disabled

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

Change 752758 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/UniversalLanguageSelector@master] Drop ineffective rule

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

Change 752758 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Drop ineffective rule

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

Change 752754 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Hide language button in sticky header if compact links disabled

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps
  1. Visit preferences and uncheck this box:
    Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
✅ AC1: Expected: There is no language button in the sticky header.

Screen Recording 2022-01-19 at 3.09.49 PM.mov.gif (290×800 px, 477 KB)

  1. Visit preferences and check this box:
    Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
✅ AC2: Expected: There is a language button in the sticky header and clicking language button should open a dialog in place without scrolling the page

Screen Recording 2022-01-19 at 3.10.58 PM.mov.gif (290×800 px, 550 KB)

Test Result - Prod

Status: ✅ PASS
Environment: cawiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps
  1. Visit preferences and uncheck this box:
    Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
✅ AC1: Expected: There is no language button in the sticky header.

Screen Recording 2022-01-19 at 3.14.26 PM.mov.gif (290×800 px, 247 KB)

  1. Visit preferences and check this box:
    Screen Shot 2021-12-21 at 8.16.35 AM.png (156×954 px, 24 KB)

Go to a page and get the sticky header to appear.
✅ AC2: Expected: There is a language button in the sticky header and clicking language button should open a dialog in place without scrolling the page

Screen Recording 2022-01-19 at 3.14.58 PM.mov.gif (290×800 px, 411 KB)