Comments (6)
@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.
I think with the example and knowing how to apply it to portal will be perfect
from clay.
Related to: #5477
from clay.
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.
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.
This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-187558
from clay.
Related Issues (20)
- Update BG color for the Beta Button and Beta Badge
- Improvements for the ClayPanel component HOT 6
- TreeView: Actions do not open by Enter key with JAWS HOT 2
- @clayui/css: Cadmin VerticalBar resizer is too narrow HOT 1
- @clayui/css: Cadmin focus-visible Clay Range doesn't show outline on tab HOT 2
- @clayui/empty-state: Append _reduced_motion to the imgSrc url by default HOT 6
- @clayui/css Cadmin modal doesn't have overflow-y: auto HOT 2
- @clayui/modal Enable modal-dialog-scrollable HOT 11
- JSP Sample Code Not Correct
- @clayui/drop-down ClayUIDropdownWithItems: RadioGroup with radio Items not getting checked HOT 1
- xlinkHref icons display error when using CDN HOT 1
- Additional notes in the getting started section HOT 2
- Add Flag of Canada HOT 1
- Can we rename ClayDatepicker property `timezone` to `timeZone`? HOT 1
- Migrating to Clay Picker HOT 1
- Unable to select pages from the ellipsis dropdown in Clay Pagination HOT 2
- Onclick not happening on Pagination ellispsis drop-down HOT 2
- Clay Navigation Bar position not correct HOT 1
- ClayTooltipProvider isn't working HOT 1
- Error with React version 18 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clay.