Page MenuHomePhabricator

[Zebra] Fix ToC alignment and subsection toggle buttons being cut off
Closed, ResolvedPublic2 Estimated Story Points

Description

Steps to recreate

  1. Go to https://fr.wikipedia.org/wiki/Conf%C3%A9rence_de_Moguilev
  2. Open the main menu and pin it to the sidebar
  3. Click the subsection toggle button

Expected

  • ToC and Main menu are aligned
  • The toggle button icon should be fully visible

Observed

Screenshot 2023-11-21 at 10.07.10 AM.png (1×562 px, 122 KB)

QA steps

Ensure the negative margins didn't affect the TOC in any of its myriad states.

  • The TOC in the sidebar is aligned with the main menu
  • The TOC arrows are fully visible (not clipped) in:
    • Sticky header
    • At low resolutions (in the floating button in the corner)
    • Beside the page title
  • The TOC text is not clipped when it spans multiple lines
    1. Developer notes
  • The cutting off of the toggle buttons is due to 'contains:paint' styles, which is inconsistently applied. It should be applied to the sticky elements

QA Results - Beta

QA Results - Production

Event Timeline

ovasileva created this task.

Change 976233 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/Vector@master] [Zebra] Align sidebar TOC with main menu

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

When looking at the alignment, the underline for the TOC extends beyond the text, but that's addressed in T340481

Screenshot 2023-11-21 at 9.32.04 AM.png (719×324 px, 48 KB)

Change 976233 merged by jenkins-bot:

[mediawiki/skins/Vector@master] [Zebra] Align sidebar TOC with main menu

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

Jdlrobson renamed this task from New Zebra styling offsets ToC to [unplanned] New Zebra styling offsets ToC .Nov 22 2023, 6:25 PM

Change 978114 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/Vector@master] [Zebra] Update to 483c6bb Align sidebar TOC with main menu

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

bwang added a subscriber: Edtadros.
Jdlrobson renamed this task from [unplanned] New Zebra styling offsets ToC to New Zebra styling offsets ToC .Nov 30 2023, 6:09 PM
ovasileva set the point value for this task to 2.Nov 30 2023, 6:18 PM

Check with @ovasileva before merging to see if there's any issues in non-Zebra version.

bwang renamed this task from New Zebra styling offsets ToC to [Zebra] Fix ToC alignment and subsection toggle buttons being cut off.Nov 30 2023, 6:48 PM
bwang updated the task description. (Show Details)

Test Result - Prod

Status: ❌ FAIL
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

❌ AC1: The TOC in the sidebar is aligned with the main menu
This looks the same as the observed, if it's the center of the toggle arrows then this is a pass, but I don't believe that is the alignment that is correct

screenshot 323.png (1×1 px, 448 KB)
screenshot 327.png (1×776 px, 323 KB)

The TOC arrows are fully visible (not clipped) in:
✅ AC2: Sticky header

screenshot 324.png (527×730 px, 112 KB)
screenshot 329.png (640×431 px, 110 KB)

✅ AC3: At low resolutions (in the floating button in the corner)

screenshot 325.png (605×548 px, 123 KB)
screenshot 329.png (640×431 px, 110 KB)

✅ AC4: Beside the page title

screenshot 326.png (723×767 px, 125 KB)
screenshot 330.png (617×408 px, 76 KB)

✅ AC5: The TOC text is not clipped when it spans multiple lines
See AC1

Change 978114 merged by jenkins-bot:

[mediawiki/skins/Vector@master] [Zebra] Update to 483c6bb Align sidebar TOC with main menu

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

Edward to repeat the test here now a fix has been merged.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: The TOC in the sidebar is aligned with the main menu

screenshot 372.png (971×859 px, 282 KB)

The TOC arrows are fully visible (not clipped) in:
✅ AC2: Sticky header

screenshot 373.png (574×523 px, 103 KB)

✅ AC3: At low resolutions (in the floating button in the corner)
screenshot 374.png (963×624 px, 213 KB)

✅ AC4: Beside the page title
screenshot 375.png (764×872 px, 200 KB)

✅ AC5: The TOC text is not clipped when it spans multiple lines
screenshot 376.png (970×694 px, 267 KB)

ovasileva claimed this task.

Looks good in beta, resolving.

Test Result - Production

Status: ✅ PASS
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: The TOC in the sidebar is aligned with the main menu

Screenshot 2024-01-04 at 12.43.54 PM.png (686×268 px, 51 KB)

The TOC arrows are fully visible (not clipped) in:
✅ AC2: Sticky header

Screenshot 2024-01-04 at 12.44.29 PM.png (472×939 px, 145 KB)

✅ AC3: At low resolutions (in the floating button in the corner)
Screenshot 2024-01-04 at 12.44.57 PM.png (510×434 px, 90 KB)

✅ AC4: Beside the page title
Screenshot 2024-01-04 at 12.45.33 PM.png (475×340 px, 51 KB)

✅ AC5: The TOC text is not clipped when it spans multiple lines
Screenshot 2024-01-04 at 12.47.50 PM.png (509×582 px, 114 KB)