Skip to content

Commit

Permalink
fix: DOM error in styled-components due to mssing $
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson committed Feb 4, 2025
1 parent 119e3b2 commit 51d9ff8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/components/src/components/RadioCard/RadioCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type RadioCardProps = {
onClick: () => void;
} & AllowedFrameProps;

const Wrapper = styled.div<{ isActive: boolean } & TransientProps<AllowedFrameProps>>`
const Wrapper = styled.div<{ $isActive: boolean } & TransientProps<AllowedFrameProps>>`
position: relative;
width: 100%;
border-radius: ${borders.radii.md};
Expand All @@ -42,8 +42,8 @@ const Wrapper = styled.div<{ isActive: boolean } & TransientProps<AllowedFramePr
outline-color: ${({ theme }) => theme.borderInputDefault};
}
${({ isActive }) =>
isActive &&
${({ $isActive }) =>
$isActive &&
css`
outline-width: ${borders.widths.large};
outline-color: ${({ theme }) => theme.borderSecondary} !important;
Expand All @@ -63,7 +63,7 @@ export const RadioCard = ({ isActive, onClick, children, ...rest }: RadioCardPro
const frameProps = pickAndPrepareFrameProps(rest, allowedRadioCardFrameProps);

return (
<Wrapper isActive={isActive} onClick={onClick} {...frameProps}>
<Wrapper $isActive={isActive} onClick={onClick} {...frameProps}>
{isActive && (
<Box position={{ type: 'absolute', top: '-3px', right: '-3px' }}>
<IconWrapper>
Expand Down

0 comments on commit 51d9ff8

Please sign in to comment.