[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

[ToC] Create an indicator that the ToC is scrollable
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

Since we are removing the default scrollbar in cases where the ToC is longer than the available space, we would like to visually indicate the ToC is scrollable in another way

Acceptance criteria

  • Add indicator that the ToC is scrollable
  • Indicator should only appear when the ToC is scrollable

QA steps

Screen Shot 2022-03-17 at 4.57.03 PM.png (1×2 px, 1 MB)

QA Results - Beta

ACStatusDetails
1T302076#7818378
2T302076#7818378
3T302076#7818378

QA Results - Beta

ACStatusDetails
1T302076#7849932
2T302076#7849932
3T302076#7849932

QA Results - Prod

ACStatusDetails
1T302076#7859443
2T302076#7859443
3T302076#7859443

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
cjming subscribed.

Change 771681 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Add fade to indicate scrollability in TOC

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

cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.

I think we might also be able to apply a negative margin to the ul element to avoid the extra padding on the bottom.

I wasn't able to get this to work -- is there another way you can think of to avoid this extra padding at the bottom?

Test wiki created on Patch demo by CMing (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/e440050eb8/w/

cjming assigned this task to bwang.
cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.

Change 771681 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add fade to indicate scrollability in TOC

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

Test Result - Beta

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

Test Artifact(s):

QA Steps

Navigate to a page with a long TOC in modern vector using the feature flag to see sticky TOC
patchdemo link: https://patchdemo.wmflabs.org/wikis/e440050eb8/wiki/Barack_Obama?useskin=vector-2022&tableofcontents=1
beta cluster link: TK
Open some header links in TOC to make TOC content longer than viewport height and scroll down a little ways
✅ AC1: Note transparent fade at bottom and no scrollbar
✅ AC2: Note TOC still scrollable
✅ AC3: Resize windows to see fade at bottom
Tested in Chrome, Firefox, Safari, Edge

ChromeFirefoxSafariEdge
Screen Recording 2022-03-30 at 6.32.54 AM.mov.gif (1×946 px, 1 MB)
Screen Recording 2022-03-30 at 6.35.33 AM.mov.gif (1×946 px, 2 MB)
Screen Recording 2022-03-30 at 6.38.50 AM.mov.gif (1×946 px, 1 MB)
Screen Recording 2022-03-30 at 6.42.27 AM.mov.gif (1×946 px, 1 MB)

@cjming looks good for the most part. I'm seeing a 1px gap between the bottom of the fade and the bottom of the ToC:

Screen Shot 2022-04-05 at 9.25.10 AM.png (988×2 px, 325 KB)

Screen Shot 2022-04-05 at 9.25.21 AM.png (1×2 px, 448 KB)

hi @alexhollender_WMF - I'm not able to duplicate this -- where/how are you seeing this?

On beta cluster, I see bottom for .sidebar-toc:after as zero - confirmed this on Chrome, FF, Safari, Edge for this url https://en.wikipedia.beta.wmflabs.org/wiki/Barack_Obama:

Screen Shot 2022-04-05 at 9.38.19 AM.png (1×5 px, 2 MB)

@cjming I'm also seeing bottom: 0 in the CSS, however that seems to be resulting in the gap for some reason (which is why I was showing bottom: -1px...maybe not the approach we want to take, but it demonstrates how the fade should ultimately be positioned).

the gap is quite subtle so you might not notice it unless you zoom in:

also I've just realized that the fade doesn't cover the toggle arrows, but it should:

currentcorrect
image.png (1×1 px, 225 KB)
image.png (1×1 px, 223 KB)

Change 777437 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Add fixes for sticky TOC fade out

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

cjming removed cjming as the assignee of this task.Apr 5 2022, 7:55 PM
cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.

Change 777437 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add fixes for sticky TOC fade out

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

hi @alexhollender_WMF latest fix should be on beta cluster soon (within 30 mins?) since it was just merged - hopefully addresses your feedback - lmk if not.

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

[mediawiki/skins/Vector@master] Table of contents should be hidden at low resolution

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

Change 777859 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] Table of contents should be hidden at low resolution

Reason:

IT seems the container is meant for layout. To be continued..

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

Change 777883 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Fix TOC fadeout proper

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

cjming assigned this task to nray.
cjming moved this task from QA to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming added a subscriber: nray.

Change 777883 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix TOC fadeout proper

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

Thanks all for the quick turnaround time here!

Unsure if this is related, but we're seeing a shorter than expected ToC on https://en.wikipedia.beta.wmflabs.org/wiki/Acinonyx

Screen Shot 2022-04-07 at 10.32.22 AM.png (1×1 px, 488 KB)

Change 778326 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Remove TOC margin to not always show fade out

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

cjming removed cjming as the assignee of this task.Apr 7 2022, 8:48 PM
cjming assigned this task to bwang.
cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.

Change 778326 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Remove TOC margin to not always show fade out

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

Test Result - Beta

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

Test Artifact(s):

QA Steps

Navigate to a page with a long TOC in modern vector using the feature flag to see sticky TOC
beta cluster link: https://en.wikipedia.beta.wmflabs.org/wiki/George_Washington
Open some header links in TOC to make TOC content longer than viewport height and scroll down a little ways
✅ AC1: Note transparent fade at bottom and no scrollbar
✅ AC2: Note TOC still scrollable
✅ AC3: Resize windows to see fade at bottom
Tested in Chrome, Firefox, Safari, Edge

ChromeFirefoxSafariEdge
Screen Recording 2022-04-12 at 3.43.54 PM.mov.gif (862×608 px, 1 MB)
Screen Recording 2022-04-12 at 3.45.11 PM.mov.gif (862×608 px, 1 MB)
Screen Recording 2022-04-12 at 3.46.20 PM.mov.gif (862×608 px, 1 MB)
Screen Recording 2022-04-12 at 3.47.25 PM.mov.gif (862×608 px, 1 MB)

Test Result - Prod

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

Test Artifact(s):

QA Steps

Navigate to a page with a long TOC in modern vector using the feature flag to see sticky TOC
beta cluster link: https://en.wikipedia.org/wiki/Dog
Open some header links in TOC to make TOC content longer than viewport height and scroll down a little ways
✅ AC1: Note transparent fade at bottom and no scrollbar
✅ AC2: Note TOC still scrollable
✅ AC3: Resize windows to see fade at bottom
Tested in Chrome, Firefox, Safari, Edge

ChromeFirefoxSafariEdge
Screen Recording 2022-04-16 at 2.16.28 PM.mov.gif (1×1 px, 1 MB)
Screen Recording 2022-04-16 at 2.17.49 PM.mov.gif (1×1 px, 1 MB)
Screen Recording 2022-04-16 at 2.19.18 PM.mov.gif (1×1 px, 2 MB)
Screen Recording 2022-04-16 at 2.21.37 PM.mov.gif (1×1 px, 1 MB)

Test wiki on Patch demo by CMing (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/e440050eb8/w/