[wp-trac] [WordPress Trac] #48551: Twenty Twenty: Replace JS-based smooth scroll with CSS

WordPress Trac noreply at wordpress.org
Sat Dec 7 11:03:21 UTC 2019


#48551: Twenty Twenty: Replace JS-based smooth scroll with CSS
---------------------------+-----------------------------
 Reporter:  williampatton  |       Owner:  SergeyBiryukov
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  needs-patch    |     Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46824" 46824]:
 {{{
 #!CommitTicketReference repository="" revision="46824"
 Twenty Twenty: Replace Smooth Scroll JS implementation with `scroll-
 behavior` CSS property.

 The JS implementation had multiple issues and did not work as expected.

 This change includes an accessibility enhancement by using `prefers-
 reduced-motion: reduce` media query property for users that don't want
 motion effects. For further explanation on this media query, see MDN
 documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-
 behavior#Accessibility_concerns

 Props audrasjb, melchoyce, joostdevalk, Anlino, mauteri, sergiomdgomes,
 littlebigthing, williampatton, netweb, andraganescu, joyously, acosmin,
 mukesh27, hareesh-pillai.
 Fixes #48763, #48551, #48866.
 }}}

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


More information about the wp-trac mailing list