[wp-trac] [WordPress Trac] #39389: Customize: Make sure selective refreshed partial placement is scrolled into view

WordPress Trac noreply at wordpress.org
Sun Nov 22 17:04:35 UTC 2020


#39389: Customize: Make sure selective refreshed partial placement is scrolled into
view
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Customize                            |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-ux-feedback needs-patch good-    |     Focuses:  ui
  first-bug                                      |
-------------------------------------------------+-------------------------
Changes (by celloexpressions):

 * keywords:  has-ux-feedback needs-patch => has-ux-feedback needs-patch
     good-first-bug
 * version:   => 4.5


Comment:

 This needs a patch that implements the javascript
 `Element.scrollIntoView({behavior: "smooth"})` behavior. The end of the
 selective refresh partial `refresh` method in `wp-includes/js/customize-
 selective-refresh.js` should trigger visibility of a button to initiate
 this behavior.

 This has native support in most browsers and could be considered a
 progressive enhancement. Alternatively we could reuse the jQuery
 implementation from Twenty Seventeen (linked above) for improved browser
 compatibility.

 Alternatively, a patch that implements the smooth scrolling without a
 button is worth exploring and testing given the smooth scrolling behavior
 and its use in Twenty Seventeen.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39389#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list