WordPress.org

Make WordPress Core

Changeset 47813


Ignore:
Timestamp:
05/16/2020 08:23:04 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Accessibility: Login and Registration: Respect the prefers-reduced-motion media query for "shake" CSS animation on login failure.

This shake should not occur when the user has opted to reduce motion, for example by selecting the "Reduce motion" option in macOS' preferences or unselecting "Show animations in Windows" in Windows' preferences.

Follow-up to [47226].

Props eddystile, johnbillion, sabernhardt, afercia, audrasjb.
Fixes #49723.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/login.css

    r47772 r47813  
    158158}
    159159
     160@media (prefers-reduced-motion: reduce) {
     161    .login form.shake {
     162        animation: none;
     163        transform: none;
     164    }
     165}
     166
    160167.login-action-confirm_admin_email #login {
    161168    width: 60vw;
Note: See TracChangeset for help on using the changeset viewer.