Skip to content

Commit

Permalink
DropZoneComponent: Standardize reduced motion handling using media qu…
Browse files Browse the repository at this point in the history
…eries
  • Loading branch information
SainathPoojary committed Jan 2, 2025
1 parent bdb3f8d commit 90804a2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/components/src/drop-zone/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,19 @@
.components-drop-zone__content {
opacity: 1;

transition: opacity 0.2s ease-in-out;
@media (prefers-reduced-motion) {
transition: none;
@media not (prefers-reduced-motion) {
transition: opacity 0.2s ease-in-out;
}
}

.components-drop-zone__content-inner {
opacity: 1;
transform: scale(1);

transition:
opacity 0.1s ease-in-out 0.1s,
transform 0.1s ease-in-out 0.1s;

@media (prefers-reduced-motion) {
transition: none;
@media not (prefers-reduced-motion) {
transition:
opacity 0.1s ease-in-out 0.1s,
transform 0.1s ease-in-out 0.1s;
}
}
}
Expand Down

0 comments on commit 90804a2

Please sign in to comment.