Git Product home page Git Product logo

Comments (6)

pat270 avatar pat270 commented on July 18, 2024 1

@marcoscv-work in that example, the empty state image has the class c-prefers-reduced-motion on c-empty-state. This is Clay's manual override to force reduced motion even if the system setting prefers motion. The system setting shouldn't affect this. If you remove the class c-prefers-reduced-motion, it should display the animated image and when you toggle reduced motion it should show the unanimated image. Let me know if I'm not interpreting this correctly.

Edit: We can add an example in the docs without the c-prefers-reduced-motion class.

from clay.

marcoscv-work avatar marcoscv-work commented on July 18, 2024 1

I think with the example and knowing how to apply it to portal will be perfect

from clay.

marcoscv-work avatar marcoscv-work commented on July 18, 2024

Related to: #5477

from clay.

ethib137 avatar ethib137 commented on July 18, 2024

Hey guys, can we update the example to add the c-prefers-reduced-motion class to container, since it would normally be applied by adding this class to the body, not directly to specific elements? Also it looks like we are missing the https://clayui.com/images/success_state_reduced_motion.gif image. Can we fix that?

Additionally, is there any work that will be needed to apply this to DXP or will it only require releasing a new version of Clay?

from clay.

marcoscv-work avatar marcoscv-work commented on July 18, 2024

The image in Liferay repo:
https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-theme/frontend-theme-unstyled/src/main/resources/META-INF/resources/_unstyled/images/states/success_state_reduced_motion.gif

I think the easiest way to apply this would be if we don't need to update anything in DXP, just make it work directly.
There are a lot of empty states and it would be difficult to update them all, and of course, if we don't currently provide an static alternative image, it's okay if we don't display the image.

from clay.

github-actions avatar github-actions commented on July 18, 2024

This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-187558

from clay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.