Skip to content

Commit

Permalink
feat: added reduce-motion query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Dec 30, 2024
1 parent a28455c commit 6ac79b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/block-library/src/social-links/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@
.wp-block-social-link {
display: block;
border-radius: 9999px; // This makes it pill-shaped instead of oval, in cases where the image fed is not perfectly sized.
transition: transform 0.1s ease;
@include reduce-motion("transition");
@media not ( prefers-reduced-motion ) {
transition: transform 0.1s ease;
}

// Dimensions.
height: auto;
Expand All @@ -80,7 +81,9 @@
align-items: center;
display: flex;
line-height: 0;
transition: transform 0.1s ease;
@media not ( prefers-reduced-motion ) {
transition: transform 0.1s ease;
}
}

&:hover {
Expand Down

0 comments on commit 6ac79b9

Please sign in to comment.