Skip to content

Commit

Permalink
Remove action list item animation (#2284)
Browse files Browse the repository at this point in the history
* Remove action list item animation

Co-authored-by: Katie Langerman <langermank@github.com>

* Create strange-bags-protect.md

Co-authored-by: Katie Langerman <langermank@github.com>
  • Loading branch information
koddsson and langermank authored Oct 19, 2022
1 parent 6b1ff76 commit 8336334
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-bags-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Remove action list item animation
16 changes: 0 additions & 16 deletions src/actionlist/action-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@
// stylelint-disable-next-line primer/box-shadow
box-shadow: inset 0 0 0 $border-width var(--color-action-list-item-default-active-border);
}

@media screen and (prefers-reduced-motion: no-preference) {
animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes ActionList-item-active-bg {
50% {
// stylelint-disable-next-line primer/box-shadow
box-shadow: inset 0 2px 12px 6px rgba(var(--color-canvas-default), 0.4);
transform: scale(1);
}

100% {
transform: scale(0.97);
}
}
}

// hide dividers
Expand Down

0 comments on commit 8336334

Please sign in to comment.