Skip to content

Commit 890c185

Browse files
authored
fix(replay): hide animation ring if reduce motion is on (#101162)
This hides the animation ring so when `reduce-motion` is turned on, the LIVE indicator looks like this: before | after -- | -- ![before](https://github.com/user-attachments/assets/e75b4716-317f-4072-a708-957b0e211ca6)|![after](https://github.com/user-attachments/assets/3d9dff76-e008-456d-a353-2de9e91b0a96)
1 parent 7ac48c5 commit 890c185

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

static/app/views/replays/detail/header/replayDetailsUserBadge.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ const LiveIndicator = styled('div')`
194194
border-radius: 50%;
195195
margin-left: 6px;
196196
197+
@media (prefers-reduced-motion: reduce) {
198+
&:before {
199+
display: none;
200+
}
201+
}
202+
197203
&:before {
198204
content: '';
199205
animation: ${pulse} 3s ease-out infinite;

0 commit comments

Comments
 (0)