Skip to content

Commit

Permalink
fix(app): fix alert stroke disalbed styling (#15623)
Browse files Browse the repository at this point in the history
* fix(app): fix alert stroke disalbed styling
  • Loading branch information
koji authored Jul 11, 2024
1 parent f4c38c2 commit 5565105
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/atoms/buttons/LargeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
focusVisibleOutlineColor: string
focusVisibleBackgroundColor: string
activeIconColor?: string
isInverse?: boolean
activeColor?: string
}
> = {
Expand Down Expand Up @@ -90,14 +89,13 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
},
alertStroke: {
defaultColor: COLORS.white,
disabledColor: COLORS.grey40,
disabledColor: COLORS.grey50,
activeColor: COLORS.red60,
defaultBackgroundColor: COLORS.transparent,
activeBackgroundColor: COLORS.red35,
disabledBackgroundColor: COLORS.transparent,
disabledBackgroundColor: COLORS.grey35,
iconColor: COLORS.white,
disabledIconColor: COLORS.grey40,
isInverse: true,
disabledIconColor: COLORS.grey50,
activeIconColor: COLORS.red60,
focusVisibleOutlineColor: COLORS.blue50,
focusVisibleBackgroundColor: COLORS.red40,
Expand Down Expand Up @@ -140,9 +138,9 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
line-height: ${TYPOGRAPHY.lineHeight20};
gap: ${SPACING.spacing60};
border: ${BORDERS.borderRadius4} solid
${!!LARGE_BUTTON_PROPS_BY_TYPE[buttonType].isInverse
${buttonType === 'alertStroke' && !disabled
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].defaultColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].defaultBackgroundColor};
: 'none'};
${TYPOGRAPHY.pSemiBold}
Expand Down

0 comments on commit 5565105

Please sign in to comment.