Skip to content

Commit

Permalink
Update LargeButton.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Feb 4, 2025
1 parent a25937e commit 5ff5837
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions components/src/atoms/buttons/LargeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:active {
background-color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType]
.activeBackgroundColor};
.activeBackgroundColor};
${activeColorFor(buttonType)};
}
&:active #btn-icon {
Expand All @@ -202,11 +202,11 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:hover {
color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType].hoverColor};
background-color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType]
.hoverBackgroundColor};
.hoverBackgroundColor};
border: ${buttonType === 'stroke'
? `2px solid ${COLORS.blue55}`
: buttonType === 'primary'
? `2px solid ${COLORS.blue55}`
: buttonType === 'primary'
? `4px solid ${COLORS.blue55}`
: computedBorderStyle()};
}
Expand All @@ -218,14 +218,14 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:disabled {
color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledColor};
background-color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType]
.disabledBackgroundColor};
.disabledBackgroundColor};
border: 4px solid ${COLORS.grey35};
}
&[aria-disabled='true'] {
color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledColor};
background-color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType]
.disabledBackgroundColor};
.disabledBackgroundColor};
border: 4px solid ${COLORS.grey35};
}
Expand All @@ -241,13 +241,13 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:active {
background-color: ${computedDisabled
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].activeBackgroundColor};
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].activeBackgroundColor};
${!computedDisabled && activeColorFor(buttonType)};
outline: 4px solid
${computedDisabled
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].activeBackgroundColor};
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].activeBackgroundColor};
}
&:active #btn-icon {
Expand All @@ -256,14 +256,14 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:focus-visible {
background-color: ${computedDisabled
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].focusVisibleBackgroundColor};
? LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledBackgroundColor
: LARGE_BUTTON_PROPS_BY_TYPE[buttonType].focusVisibleBackgroundColor};
${!computedDisabled && activeColorFor(buttonType)};
padding: calc(${SPACING.spacing24} + ${SPACING.spacing2});
border: ${computedBorderStyle()};
outline: ${computedDisabled
? 'none'
: `3px solid
? 'none'
: `3px solid
${LARGE_BUTTON_PROPS_BY_TYPE[buttonType].focusVisibleOutlineColor}`};
background-clip: padding-box;
box-shadow: none;
Expand All @@ -272,7 +272,7 @@ export function LargeButton(props: LargeButtonProps): JSX.Element {
&:disabled {
color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType].disabledColor};
background-color: ${LARGE_BUTTON_PROPS_BY_TYPE[buttonType]
.disabledBackgroundColor};
.disabledBackgroundColor};
}
}
`
Expand Down

0 comments on commit 5ff5837

Please sign in to comment.