Skip to content

Commit

Permalink
[Fix/BAR-282] Switcher Tab active 애니메이션 수정 (#101)
Browse files Browse the repository at this point in the history
* chore: codeowners 제거

* fix: Switcher Tab active 애니메이션 수정
  • Loading branch information
dmswl98 authored Apr 1, 2024
1 parent d2daefc commit d44bcb0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

4 changes: 1 addition & 3 deletions src/components/Tabs/components/TabsTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ const TabsTrigger = ({
{isActiveFilterTab && (
<motion.div className={styles.underline} layoutId="underline" />
)}
{isActiveSwitcherTab && (
<motion.div className={styles.handle} layoutId="handle" />
)}
{isActiveSwitcherTab && <div className={styles.handle} />}
</li>
);
};
Expand Down
9 changes: 8 additions & 1 deletion src/components/Tabs/style.css.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { style } from '@vanilla-extract/css';
import { keyframes, style } from '@vanilla-extract/css';
import { recipe } from '@vanilla-extract/recipes';

import { COLORS } from '@styles/tokens';
import * as utils from '@styles/utils.css';

const fadeIn = keyframes({
'0%': { opacity: 0 },
'100%': { opacity: 1 },
});

export const tab = style({
width: '100%',
});
Expand All @@ -15,6 +20,7 @@ export const tabsList = recipe({
variants: {
type: {
switcher: {
width: 'fit-content',
justifyContent: 'center',
borderRadius: '100px',
backgroundColor: COLORS['Grey/200'],
Expand Down Expand Up @@ -111,4 +117,5 @@ export const handle = style({
borderRadius: '100px',
backgroundColor: COLORS['Grey/White'],
border: `1.5px solid ${COLORS['Blue/Default']}`,
animation: `${fadeIn} 450ms cubic-bezier(0.4, 0, 0.6, 1)`,
});

0 comments on commit d44bcb0

Please sign in to comment.