Review main Merged

76403[BUGFIX] Respect prefers-reduced-motion for notifications

Andreas Kienast CR +2 V +2 Easy +3 −2 updated 11/03/22, 18:58

Commit message

Most modern operating systems allow to disable animations, also known
as "reduced motion", which is a very important accessibility feature
for people suffering from motion sickness.

In CSS Level 5, a media query `prefers-reduced-motion` is available to
check for this specific setting, if the browser can get the
configuration from the operating system (looking at you, Chrome and
GNOME).

With Bootstrap 5, `prefers-reduced-motion` is already in place,
disabling all animations caused by CSS. However, the notification
component is partially animated via JavaScript and thus the media query
wasn't taken into consideration and notifications were still animated.

The media query is now checked on JavaScript side as well to avoid
animating notifications.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2