Skip to content

Commit

Permalink
Merge pull request #1005 from peer-42seoul/fix/typo-contained-button
Browse files Browse the repository at this point in the history
[1.0.3 / style] contained button 내부 텍스트 색상 수정
  • Loading branch information
HiHoi authored Feb 14, 2024
2 parents 38e53f2 + eeaf434 commit 4e39421
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/my-page/message/@list/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const NewMessageButton = ({ openModal }: { openModal: () => void }) => {
variant={'contained'}
startIcon={<PlusIcon width={'1.25rem'} height={'1.25rem'} />}
style={style.pcSendButton}
TypographyProps={{ color: '#ffffff' }}
/>
</Stack>
)
Expand Down
2 changes: 1 addition & 1 deletion src/app/panel/main-page/FloatEditButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const FloatEditButton = () => {
>
<WriteIcon
sx={{
color: 'text.normal',
color: '#ffffff',
}}
/>
</Stack>
Expand Down
7 changes: 6 additions & 1 deletion src/components/CuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ const CuButton = ({
disabled={disabled}
form={form}
>
<Typography {...TypographyProps}>{message}</Typography>
<Typography
{...TypographyProps}
color={variant === 'contained' ? '#ffffff' : ''}
>
{message}
</Typography>
</Button>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CuModal.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ export const containedButton = {

export const containedButtonTypo = {
...modalButtonTypoBase,
color: (theme: Theme) => theme.palette.text.normal,
color: "#ffffff",
}

0 comments on commit 4e39421

Please sign in to comment.