Skip to content

bug: prefers-reduced-motion shouldn't stop Loading component animation #4599

Description

@marklbarlow

Reproduction URL (Required)

https://daisyui.com/components/loading/

What version of daisyUI are you using?

5.6.0+

Which browsers are you seeing the problem on?

All browsers

Describe your issue

#4299 was recently merged and released as part of v5.6.

With reduced motion selected this now completely disables animation and make the app look like it is non-responsive. This exact scenario was commented on by @saadeghi in the PR but it still seems to have been merged without further changes.

I believe this PR should be reverted. Whereas menu flyouts etc are eye-candy, the whole purpose of a loading animation is to show that something is happening. Without the animation it looks like the app is unresponsive.

If a user wants to honour this, they should handle the preference in their own code and provide an alternative "Loading..." text etc to display instead.

If it's considered essential to keep this as part of Daisy, the framework should provide this feature and / or show the loading indicator with reduced motion, rather than no motion at all. As it stands, the component is now unusable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions