Page MenuHomePhabricator

Regression: parameter list navigation can become invisible behind sticky search field
Closed, ResolvedPublic2 Estimated Story Points

Description

Initial scenario:

image.png (378×258 px, 17 KB)

Steps to reproduce:

  • Scroll down a long parameter list so that some of the parameters are behind the search field.

image.png (316×256 px, 14 KB)

  • Use keyboard navigation to shift-tab into the parameters list (from below).

What happens:
The first parameter is highlighted but it will be scrolled to underneath the template header or search field, and is thus invisible.

image.png (524×274 px, 25 KB)

What should have happened:
The parameter selection field should have been scrolled to show the top of the list below the search field.

image.png (427×269 px, 20 KB)

Event Timeline

From my first look at this:

  • It seems that this was not working for quite some time. At least before our sidebar removal ( tested on master~300 ).
  • When first I tab into the list, nothing happens.
  • When I use the arrow keys to move to the next item in the list, there's some scroll, but it's only scrolling to a certain height.
  • The latter seems to be related to the sticky header/search container size.

Change 812824 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Scroll parameter items into view when navigating with keyboard

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

Wondering if we should make this a scroll to top in the sidebar as well. Because the content pane is scrolled to top and it looks a little bit off, when the sidebar only scrolls into view and the element is at the bottom of the screen.

Peek 2022-07-12 12-11.gif (928×1 px, 1 MB)

Update: Thinking and talking about this, the issue seems that the content pane is scrolling to top. I created a bug report: T312850. Scrolling the sidebar to top might still be a good idea. Will add this as a question to the epic.

Change 812824 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Scroll parameter items into view when hidden behind sticky

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

WMDE-Fisch set the point value for this task to 3.Jul 12 2022, 12:05 PM
WMDE-Fisch changed the point value for this task from 3 to 2.
awight moved this task from Demo to Sprint Backlog on the WMDE-TechWish-Sprint-2022-07-06 board.
awight added a subscriber: WMDE-Fisch.

Works a bit better, but has two issues:

  • Keyboard navigate to the last parameter. Press the down arrow, wrapping around to the first parameter. This will be scrolled to beneath the sticky header.
  • When the number of parameters is fewer, we might not have a search field or the "hide unused" button. In this case the scrolling uses a fixed offset which is incorrect, and scrolled parameters appear lower than the sticky header.

This is fixed on master with the current changes to scroll to highlighted parameters while respecting the sticky header height.