Skip to content

Commit

Permalink
LPS-190149 c-prefers-reduced-motion class should remove transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
pat270 authored and brianchandotcom committed Jul 26, 2023
1 parent 026ff83 commit f0ce643
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
@media (prefers-reduced-motion: reduce) {
transition: none;
}

.c-prefers-reduced-motion & {
transition: none;
}
}

@keyframes highlight-animation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ html#{$cadmin-selector} {
transition: none;
}

.c-prefers-reduced-motion & {
transition: none;
}

.portlet {
border: 2px dashed #ccc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
@media (prefers-reduced-motion: reduce) {
background-image: url(@theme_image_path@/states/empty_state_reduced_motion.gif);
}

.c-prefers-reduced-motion & {
background-image: url(@theme_image_path@/states/empty_state_reduced_motion.gif);
}
}

.taglib-empty-search-result-message-header {
Expand All @@ -41,6 +45,10 @@
@media (prefers-reduced-motion: reduce) {
background-image: url(@theme_image_path@/states/search_state_reduced_motion.gif);
}

.c-prefers-reduced-motion & {
background-image: url(@theme_image_path@/states/search_state_reduced_motion.gif);
}
}

.taglib-empty-state {
Expand All @@ -52,6 +60,10 @@
@media (prefers-reduced-motion: reduce) {
background-image: url(@theme_image_path@/states/empty_state_reduced_motion.gif);
}

.c-prefers-reduced-motion & {
background-image: url(@theme_image_path@/states/empty_state_reduced_motion.gif);
}
}

.taglib-success-state {
Expand All @@ -63,6 +75,10 @@
@media (prefers-reduced-motion: reduce) {
background-image: url(@theme_image_path@/states/success_state_reduced_motion.gif);
}

.c-prefers-reduced-motion & {
background-image: url(@theme_image_path@/states/success_state_reduced_motion.gif);
}
}

.taglib-search-state {
Expand All @@ -74,6 +90,10 @@
@media (prefers-reduced-motion: reduce) {
background-image: url(@theme_image_path@/states/search_state_reduced_motion.gif);
}

.c-prefers-reduced-motion & {
background-image: url(@theme_image_path@/states/search_state_reduced_motion.gif);
}
}

.taglib-empty-result-message-title {
Expand Down

0 comments on commit f0ce643

Please sign in to comment.