[wp-trac] [WordPress Trac] #48551: Twenty Twenty: Replace JS-based smooth scroll with CSS
WordPress Trac
noreply at wordpress.org
Sat Dec 7 11:06:18 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:
---------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"46825" 46825]:
{{{
#!CommitTicketReference repository="" revision="46825"
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.
Merges [46824] to the 5.3 branch.
Fixes #48763, #48551, #48866.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48551#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list