Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 5773201

Browse files
committed
fix: remove "transition: all"
Fixes #8
1 parent bea331a commit 5773201

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/theme/defaultTheme.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,18 @@ export const zIndexModal = 1050
164164
export const zIndexModalBackdrop = 1071
165165

166166
// Transitions
167-
168-
export const transitionBase = 'all .2s ease-in-out'
167+
const safeTransitionProperties = [
168+
'color',
169+
'border-style',
170+
'visibility',
171+
'background',
172+
'background-color',
173+
'text-decoration',
174+
'box-shadow',
175+
]
176+
export const transitionBase = safeTransitionProperties
177+
.map(prop => `${prop} .2s ease-in-out`)
178+
.join(',')
169179

170180
// Breakpoints
171181

0 commit comments

Comments
 (0)