Page MenuHomePhabricator

Improve grade C version of Vector 2022: collapse table of contents
Closed, DeclinedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open the Vector skin in IE11 or other browser without CSS grid.

What happens?:

  • There is no table of contents

What should have happened instead?:

Tthe table of contents narrow screen mode work here

QA steps

  • Using a grade C browser without CSS grid (e.g. IE11) make sure the table of contents is accessible on the page.

Developer notes

  • We can use @support { display: grid } for the other tweaks

Event Timeline

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

[mediawiki/skins/Vector@master] IE11: Tweak display

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

Jdlrobson moved this task from Incoming to Not ready to estimate on the Web-Team-Backlog board.
Jdlrobson added a subscriber: ovasileva.

@ovasileva with a small bit of effort we could somewhat improve the IE11 display.

Change 813937 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] IE11: Tweak display

Reason:

Not working on this for now.

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

ovasileva raised the priority of this task from Low to Medium.Mar 15 2023, 4:59 PM
ovasileva moved this task from Current Fiscal Year to Current Quarter on the Web-Team-Backlog board.
  • The user menu when opened introduces a horizontal scroll like so:

{F35317203}

This screenshot has not been attached

Looked at IE11 today and the situation is much improved. The table of contents is still not accessible, but Since we are dropping support for IE11 in T178356 it might be worth waiting until then.

Jdlrobson renamed this task from Improve grade C version of Vector 2022 to Improve grade C version of Vector 2022: collapse table of contents.EditedApr 5 2023, 5:26 PM
Jdlrobson updated the task description. (Show Details)

So the issue here is CSS grid support not grade C. We should make the table of contents work when CSS grid is not available.

T178356 hasn't fixed this and potentially has made this worse.

Jdlrobson raised the priority of this task from Medium to High.Apr 5 2023, 5:34 PM
LGoto set the point value for this task to 3.Apr 6 2023, 5:34 PM
ovasileva lowered the priority of this task from High to Medium.Apr 10 2023, 5:29 PM

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

[mediawiki/skins/Vector@master] Remove non grid support handling, just show the TOC

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

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

Currently browsers that dont support grid just hide the TOC, which isnt ideal because the TOC is considered content. For this task, I chose to just avoid hiding the TOC when grid isnt supported, resulting in this:
https://jmp.sh/J4dilGgl
https://jmp.sh/SrU2Cx3d

I looked into styling the TOC as a dropdown when grid support isnt there, but its seems very complicated. It might be possible if we could use "not supports(:grid)", but thats not recommended due to browser support of "supports()". IMO this is the simplest solution, and the design can be revisited perhaps with T340571

bwang removed bwang as the assignee of this task.Jun 27 2023, 7:17 PM
bwang subscribed.

Change 933599 abandoned by Bernard Wang:

[mediawiki/skins/Vector@master] Remove non grid support handling, just show the TOC

Reason:

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

After talking to @Jdlrobson, we decided that unhiding the TOC on browsers that dont support grid create an experience that looks more broken than the status quo. Instead of handling the TOC separately, we will continue to hide all pinned elements (main menu, page tools, toc) on browsers that dont support grid on all viewports

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

https://patchdemo.wmflabs.org/wikis/7098023a31/w/