Skip to content

[FEAT] Add support for prefers-reduced-motion in components to enhance accessibility #17

Description

@jannik-busch

Description
The prefers-reduced-motion CSS media feature detects if a user has enabled a device setting to minimize non-essential motion. This setting signals the browser that the user prefers an interface that reduces, removes, or replaces motion-based animations.

Motion-heavy animations, such as scaling or panning large objects, can cause discomfort for individuals with vestibular motion disorders, making this an important accessibility feature.

Proposal
In client components, detect if the user prefers reduced motion using CSS or JavaScript with a Media Query.

For example:

if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
  // Disable animations or provide alternative UI
}

Whenever animations are used, they should be disabled or replaced when the prefers-reduced-motion setting is detected.

Acceptance Criteria

  • Animations and movement-based interactions are disabled when the user has set their preference for reduced motion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions