Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/underline-nav-reduced-motion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

UnderlineNav and TabNav: skip the loading-counter pulse when prefers-reduced-motion is reduce.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@
border-color: var(--borderColor-default);
/* stylelint-disable-next-line primer/borders */
border-radius: 20px;
animation: loadingCounterKeyFrames 1.2s ease-in-out infinite alternate;

@media (prefers-reduced-motion: no-preference) {
animation: loadingCounterKeyFrames 1.2s ease-in-out infinite alternate;
}
}

@keyframes loadingCounterKeyFrames {
Expand Down
Loading