Skip to content

Commit 9ee1ecb

Browse files
committed
fix(scraps): Keep the radio animation local
1 parent 042404b commit 9ee1ecb

3 files changed

Lines changed: 12 additions & 24 deletions

File tree

‎static/app/styles/animations.tsx‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
import {keyframes} from '@emotion/react';
22

3-
export const growIn = keyframes`
4-
0% {
5-
opacity: 0;
6-
transform: scale(0.75);
7-
}
8-
100% {
9-
opacity: 1;
10-
transform: scale(1);
11-
}
12-
`;
13-
143
export const fadeIn = keyframes`
154
0% {
165
opacity: 0;

‎static/packages/scraps/src/animations.tsx‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎static/packages/scraps/src/radio/radio.tsx‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
import type * as React from 'react';
22
import isPropValid from '@emotion/is-prop-valid';
3+
import {keyframes} from '@emotion/react';
34
import styled from '@emotion/styled';
45

5-
import {growIn} from '@sentry/scraps/animations';
66
import type {StrictCSSObject, Theme} from '@sentry/scraps/theme';
77

8+
const growIn = keyframes`
9+
0% {
10+
opacity: 0;
11+
transform: scale(0.75);
12+
}
13+
100% {
14+
opacity: 1;
15+
transform: scale(1);
16+
}
17+
`;
18+
819
interface RadioProps extends Omit<
920
React.InputHTMLAttributes<HTMLInputElement>,
1021
'type' | 'size'

0 commit comments

Comments
 (0)