Skip to content

Commit

Permalink
Add Button Group color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Nov 1, 2023
1 parent f0be6bf commit bc7eed0
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/components/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,21 @@ const Button = styled.button<ButtonProps>`
background: ${({ theme }) => theme.click.button.group.color.background.hover};
}
&:disabled {
cursor: not-allowed;
background: ${({ theme, $active }) =>
theme.click.button.group.color.background[
$active ? "disabled-active" : "disabled"
]};
}
&:active,
&:focus {
background: ${({ theme }) => theme.click.button.group.color.background.active};
}
&:disabled {
cursor: not-allowed;
background: ${({ theme }) =>
theme.click.button.basic.color.primary.background.disabled};
&:disabled {
background: ${({ theme }) =>
theme.click.button.group.color.background["disabled-active"]};
}
}
border-radius: ${({ $position }: ButtonProps) =>
Expand Down

0 comments on commit bc7eed0

Please sign in to comment.