Skip to content

Commit 8336334

Browse files
koddssonlangermank
andauthored
Remove action list item animation (#2284)
* Remove action list item animation Co-authored-by: Katie Langerman <[email protected]> * Create strange-bags-protect.md Co-authored-by: Katie Langerman <[email protected]>
1 parent 6b1ff76 commit 8336334

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.changeset/strange-bags-protect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Remove action list item animation

src/actionlist/action-list-item.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@
5252
// stylelint-disable-next-line primer/box-shadow
5353
box-shadow: inset 0 0 0 $border-width var(--color-action-list-item-default-active-border);
5454
}
55-
56-
@media screen and (prefers-reduced-motion: no-preference) {
57-
animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
58-
}
59-
60-
@keyframes ActionList-item-active-bg {
61-
50% {
62-
// stylelint-disable-next-line primer/box-shadow
63-
box-shadow: inset 0 2px 12px 6px rgba(var(--color-canvas-default), 0.4);
64-
transform: scale(1);
65-
}
66-
67-
100% {
68-
transform: scale(0.97);
69-
}
70-
}
7155
}
7256

7357
// hide dividers

0 commit comments

Comments
 (0)