Skip to content

Commit

Permalink
fix: disabled 호버 스타일 및 active 스타일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Aug 21, 2024
1 parent f804000 commit fdfda22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
12 changes: 0 additions & 12 deletions apps/web/app/test/page.tsx

This file was deleted.

15 changes: 11 additions & 4 deletions packages/core/sds/src/components/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,20 @@ export const buttonCss = css({

cursor: 'pointer',

'&:hover': {
backgroundColor: `var(${buttonHoverColorVar})`,
},

'&:disabled': {
cursor: 'not-allowed',
},

'@media (hover: none) and (pointer: coarse)': {
'&:not(:disabled):active': {
backgroundColor: `var(${buttonHoverColorVar})`,
},
},
'@media (hover: hover) and (pointer: fine)': {
'&:not(:disabled):hover': {
backgroundColor: `var(${buttonHoverColorVar})`,
},
},
});

export const leftDecorCss = css({
Expand Down

0 comments on commit fdfda22

Please sign in to comment.