Skip to content

Commit

Permalink
style: button 공통컴포넌트에 quaternaryDisabled 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
simeunseo committed Nov 7, 2023
1 parent 4c509b4 commit b2cf2d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/atomComponents/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ const buttonCSS = {
background-color: transparent;
color: ${({ theme }) => theme.colors.grey6};
`,
quaternaryDisabled: css`
${buttonDefaultCSS.basicCss};
background: ${({ theme }) => theme.colors.grey7};
color: ${({ theme }) => theme.colors.grey2};
`,
};

const ButtonWrapper = styled.button<{ $type: string }>`
Expand Down Expand Up @@ -126,6 +131,8 @@ const ButtonWrapper = styled.button<{ $type: string }>`
return buttonCSS.tertiaryDisabled;
case 'halfPrimaryDisabled':
return buttonCSS.halfPrimaryDisabled;
case 'quaternaryDisabled':
return buttonCSS.quaternaryDisabled;
default:
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SteppingStone/components/SteppingBtnSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function SteppingBtnSection({ steppingType }: SteppingProps) {
<Text font={'button2'}>링크 복사하기</Text>
</Button>
</CopyToClipboard>
<Button typeState={'primaryDisabled'} onClick={()=>setIsModalOpen(false)}>
<Button typeState={'quaternaryDisabled'} onClick={()=>setIsModalOpen(false)}>
<Text font={'button2'}>나중에 공유하기</Text>
</Button>
</BottomSheetModal>
Expand Down

0 comments on commit b2cf2d2

Please sign in to comment.