Skip to content

Commit

Permalink
Merge pull request #221 from sopt-makers/fix/chip
Browse files Browse the repository at this point in the history
fix(ui): Chip에 disabled 스타일 적용
  • Loading branch information
sohee-K authored Nov 28, 2024
2 parents 8878791 + dcb4ef7 commit b66fde0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-dolphins-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sopt-makers/ui': patch
---

Chip에 disabled 스타일 적용
24 changes: 14 additions & 10 deletions packages/ui/Chip/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@ const active = {
};

export const root = style({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
gap: 4,
boxShadow: `0 0 0 1px ${theme.colors.gray700} inset`,
borderRadius: 9999,
color: theme.colors.gray300,
backgroundColor: theme.colors.gray800,
cursor: 'pointer',
borderStyle: 'none',
'display': 'flex',
'justifyContent': 'center',
'alignItems': 'center',
'gap': 4,
'boxShadow': `0 0 0 1px ${theme.colors.gray700} inset`,
'borderRadius': 9999,
'color': theme.colors.gray300,
'backgroundColor': theme.colors.gray800,
'cursor': 'pointer',
'borderStyle': 'none',

':hover': {
color: theme.colors.white,
backgroundColor: theme.colors.gray700,
},

':active': active,

':disabled': {
pointerEvents: 'none',
},
});

export const activeStyle = style(active);
Expand Down

0 comments on commit b66fde0

Please sign in to comment.