Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54174


Ignore:
Timestamp:
09/23/2021 10:36:47 PM (3 years ago)
Author:
sabernhardt
Comment:

Welcome and thanks for the report!

There are only 4 unique transition properties in the theme's compiled stylesheets. Instead of removing all transitions, these specific styles could be wrapped in @media (prefers-reduced-motion: no-preference) { }

Google developers article

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54174

    • Property Version changed from trunk to 5.6
    • Property Component changed from Themes to Bundled Theme
  • Ticket #54174 – Description

    initial v1  
    11As a fix it could be good to register it as a separate script than in the main style.css
    22Like that it could be deregistered via wp_deregister_script or wp_dequeue_script function
    3 I have for exemple a plugin (Gallery Lightbox Lite) that is not working with gutenberg gallery and Twenty Twenty-One when the os or browser has the flag prefers-reduced-motion:reduced active.
     3I have for example a plugin (Gallery Lightbox Lite) that is not working with gutenberg gallery and Twenty Twenty-One when the OS or browser has the flag `prefers-reduced-motion:reduced` active.
    44
    55Or do you have a solution in order to remove the
     6{{{
    67@media (prefers-reduced-motion) {
    78        * {
     
    1011        }
    1112}
     13}}}
     14
    1215Some animations are vital to some blocks or plugins and it could be good to can disable this limitation in some child theme without having to recompile and replace all Twenty Twenty-One scss
    1316