Page MenuHomePhabricator

Scroll to selected field when changing the address or payment type
Closed, ResolvedPublic

Description

Description:
When I want to donate as a “Firma” on my mobile device, the form fields do not appear in the current viewport but above it. So I need to scroll up again. (The same applies for the option “Anonym”).

This also occurs when changing the payment type. In this case, it only really affects the usability when switching from direct debit to something else.

Browser: Chrome 62
Browser window width: 980
Browser window height: 1644
Viewport width: 393
Viewport height: 786
Screenshot: F10957266

Event Timeline

kai.nissen renamed this task from When I want to donate as a “Firma” on my mobile device, the text fields do not appear in my current viewport but above it to Scroll to selected field when changing the address or payment type.Nov 23 2017, 2:37 PM
kai.nissen removed Pablo-WMDE as the assignee of this task.
kai.nissen updated the task description. (Show Details)
kai.nissen updated the task description. (Show Details)
// SuboptionDisplayHandler
if ( field.is( ':focus' ) ) {
   scrollTo( infoText );
}
gabriel-wmde moved this task from Doing to Review on the WMDE-Fundraising-Funban-2 board.

Looks good in general. Two issues, though:

  • This should also be applied to the payment type options.
  • When changing the address type to 'company' on wide screens, the view (of course) also scrolls to the option field. The company name field is not visible in these cases, which feels confusing.

The second one of my comments above has been fixed, but the first regarding the payment type options is not.