diff --git a/packages/components/src/components/RadioCard/RadioCard.tsx b/packages/components/src/components/RadioCard/RadioCard.tsx index d2e836a6fab..1e6a245cbb2 100644 --- a/packages/components/src/components/RadioCard/RadioCard.tsx +++ b/packages/components/src/components/RadioCard/RadioCard.tsx @@ -27,7 +27,7 @@ export type RadioCardProps = { onClick: () => void; } & AllowedFrameProps; -const Wrapper = styled.div<{ isActive: boolean } & TransientProps>` +const Wrapper = styled.div<{ $isActive: boolean } & TransientProps>` position: relative; width: 100%; border-radius: ${borders.radii.md}; @@ -42,8 +42,8 @@ const Wrapper = styled.div<{ isActive: boolean } & TransientProps theme.borderInputDefault}; } - ${({ isActive }) => - isActive && + ${({ $isActive }) => + $isActive && css` outline-width: ${borders.widths.large}; outline-color: ${({ theme }) => theme.borderSecondary} !important; @@ -63,7 +63,7 @@ export const RadioCard = ({ isActive, onClick, children, ...rest }: RadioCardPro const frameProps = pickAndPrepareFrameProps(rest, allowedRadioCardFrameProps); return ( - + {isActive && (