Skip to content

Commit

Permalink
fix: 호버시 하단 border 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Mar 22, 2024
1 parent 0eeccd5 commit 95646ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
8 changes: 4 additions & 4 deletions pages/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ const ProfilePage = () => {
/>
<div className={styles.textButtonWrapper}>
<button
className={styles.textButton}
className={styles.textButtonTextWrapper}
onClick={() => {
localStorage.removeItem(STORAGE_KEY.ACCESS_TOKEN);
Cookies.remove(STORAGE_KEY.REFRESH_TOKEN);
router.push(ROUTES.LANDING);
}}
>
로그아웃
<span className={styles.textButton}>로그아웃</span>
</button>
<button
className={styles.textButton}
className={styles.textButtonTextWrapper}
onClick={exitModalProps.handleOpen}
>
회원탈퇴
<span className={styles.textButton}>회원탈퇴</span>
</button>
</div>
</div>
Expand Down
22 changes: 16 additions & 6 deletions src/domain/계정설정/index.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { style } from '@vanilla-extract/css';

import { sprinkles } from '@styles/sprinkles.css';
import { COLORS } from '@styles/tokens';

export const container = style({
Expand Down Expand Up @@ -56,11 +57,20 @@ export const textButtonWrapper = style({
justifyContent: 'flex-end',
});

export const textButton = style({
export const textButtonTextWrapper = style({
padding: '16px 24px',
color: COLORS['Grey/500'],
fontSize: '17px',
fontWeight: '500',
lineHeight: '27px',
letterSpacing: '-0.3px',
});

export const textButton = style([
sprinkles({
typography: '17/Body/Medium',
}),
{
color: COLORS['Grey/500'],

':hover': {
color: COLORS['Grey/700'],
borderBottom: `1.5px solid ${COLORS['Grey/700']}`,
},
},
]);

0 comments on commit 95646ad

Please sign in to comment.