Skip to content

Commit aecf992

Browse files
authored
Merge pull request #451 from belltalion/fix-button-keyframe
Fix button keyframe
2 parents 1f64687 + 4dde835 commit aecf992

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.changeset/wicked-sloths-agree.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@devup-ui/components': patch
3+
---
4+
5+
Hotfix button keyframe

packages/components/src/components/Button/IconSpinner.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
import { Box, keyframes } from '@devup-ui/react'
22
import { SVGProps } from 'react'
33

4-
const spin = keyframes({
5-
'0%': {
6-
transform: 'rotateZ(0deg)',
7-
},
8-
'100%': {
9-
transform: 'rotateZ(360deg)',
10-
},
11-
})
12-
134
interface IconSpinnerProps extends SVGProps<SVGSVGElement> {
145
type?: 'whole' | 'partial'
156
}
167

178
export function IconSpinner({ type = 'whole', ...props }: IconSpinnerProps) {
9+
/**
10+
* TODO: After fixing the keyframes issue, keyframe must be moved to outside function
11+
*/
12+
const spin = keyframes({
13+
'0%': {
14+
transform: 'rotateZ(0deg)',
15+
},
16+
'100%': {
17+
transform: 'rotateZ(360deg)',
18+
},
19+
})
20+
1821
if (type === 'partial') {
1922
return (
2023
<Box

0 commit comments

Comments
 (0)