Skip to content

Commit

Permalink
Remove accordion keyframe and animation config extension (#588)
Browse files Browse the repository at this point in the history
* Remove accordion keyframe and animation config extension

* update customTwMerge
  • Loading branch information
simonswiss authored Jan 7, 2024
1 parent 68ebb04 commit 635e419
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
14 changes: 0 additions & 14 deletions app/utils/extended-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,4 @@ export const extendedTheme = {
/** 12px size / 16px high / bold */
button: ['0.75rem', { lineHeight: '1rem', fontWeight: '700' }],
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
} satisfies Config['theme']
5 changes: 0 additions & 5 deletions app/utils/misc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ const customTwMerge = extendTailwindMerge<string, string>({
text: Object.keys(extendedTheme.fontSize),
},
],
animate: [
{
animate: Object.keys(extendedTheme.animation),
},
],
},
},
})
Expand Down

0 comments on commit 635e419

Please sign in to comment.