Skip to content
Snippets Groups Projects
Commit b5112092 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Stefan Bürk
Browse files

[BUGFIX] Respect prefers-reduced-motion for notifications

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.

Resolves: #98990
Releases: main, 11.5
Change-Id: Ic6ed35fb6ccf17b1fe7cd1970858e4abe2755f84
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76403


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarLina Wolf <112@linawolf.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarLina Wolf <112@linawolf.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 3fa59bdb
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment