Page MenuHomePhabricator

Vector 2022 empty TOC panel causes text selection errors when highlighting title
Closed, DuplicatePublicBUG REPORT

Description

Initial report and more infomation at: https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Select_text_bug_in_new_skin

What happens?:
When in or logged out:
Can't properly select any text that is on the left side of category pages since the text appears under the empty <nav id="mw-panel-toc" ... > tag.

Screenshot 2023-02-08 at 15.12.21.png (511×698 px, 149 KB)

Gif with TOC box colored red

chrome_u7H2pHRSlX.gif (277×906 px, 80 KB)

Event Timeline

Terasail renamed this task from Vector 2022 #content display property different when logged in or out which causes text selection errors to Vector 2022 different content properties when logged in or out which causes text selection errors.Feb 8 2023, 1:11 PM
Terasail renamed this task from Vector 2022 different content properties when logged in or out which causes text selection errors to Vector 2022 empty TOC panel causes text selection errors.Feb 8 2023, 1:23 PM
Terasail updated the task description. (Show Details)

This is also replicable on article pages where there are not enough headers to generate a TOC, such as https://en.wikipedia.org/wiki/Star_Trek_Star_Fleet_Technical_Manual

When I am logged in, this custom CSS seems to prevent the problem (I needed to insert this because the background color I assigned to the TOC sidebar was overwriting the title):

.vector-toc-pinned #mw-panel-toc {
    contain: none;
}

One more note: I added this custom CSS after a MediaWiki CSS update on 2 Feb 2023 caused my left sidebar background to overwrite the page title on pages with no TOC. That might help track down the code change that caused this problem.

This is also replicable on article pages where there are not enough headers to generate a TOC, such as https://en.wikipedia.org/wiki/Star_Trek_Star_Fleet_Technical_Manual

If you disable limited width mode (The text has to be hard up against the left edge)

Jdlrobson renamed this task from Vector 2022 empty TOC panel causes text selection errors to Vector 2022 empty TOC panel causes text selection errors when highlighting title.Feb 9 2023, 12:23 AM
Jdlrobson added a subscriber: Theklan.