[wp-trac] [WordPress Trac] #50105: Remove infinite scrolling behavior from the Media grid

WordPress Trac noreply at wordpress.org
Sun Feb 7 20:51:46 UTC 2021


#50105: Remove infinite scrolling behavior from the Media grid
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  joedolson
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.7
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  ui, accessibility,
  screenshots needs-testing needs-   |  javascript
  testing-info                       |
-------------------------------------+-------------------------------------

Comment (by joedolson):

 Updated patch:

 1) Changes button style from hero to normal size
 2) Places buttons on a single line
 3) Makes 'jump to first new item' visible by default.

 This fixes a scrolling issue where navigating to the 'Jump' link could
 cause an unnecessary change in the view position, and makes the 'Jump'
 link available to sighted mouse users. Since the first added item is not
 obvious, this is useful for all users.

 4) Visual highlight on first newly added item, to make easier to see
 what's new.

 > What is the desired behavior?

 In my opinion, move focus to the 'Jump to first new item'; this is more
 predictable in my opinion.

 5) Moves focus to 'Jump to first new item' button when Load more button
 does not exist in final screen.

 6) Updates @since references to 5.7.0, optimistically

 > Update the number of total attachments.

 This will require some kind of adaptation to getTotalAttachments. Seems
 like the model doesn't refresh when items are added or removed, though the
 collection does.

 > 40 feels ok for now.

 Agreed. Possibly a filter now, then explore adding a UI enhancement to
 support changing it later?

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


More information about the wp-trac mailing list