diff --git a/packages/eds-core-react/src/components/Card/Card.tsx b/packages/eds-core-react/src/components/Card/Card.tsx index 48d781c9e9..ddce285413 100644 --- a/packages/eds-core-react/src/components/Card/Card.tsx +++ b/packages/eds-core-react/src/components/Card/Card.tsx @@ -11,7 +11,6 @@ type AvailableElevations = keyof Pick type StyledCardProps = { background: string - cursor: string } & HTMLAttributes export type CardProps = { @@ -29,16 +28,13 @@ const StyledCard = styled(Paper)` display: flex; flex-direction: column; grid-gap: 16px; - cursor: ${({ cursor }) => cursor}; ${bordersTemplate(primary.border)}; ` export const Card = forwardRef(function Card( - { children, variant = 'default', elevation = 'none', onClick, ...rest }, + { children, variant = 'default', elevation = 'none', ...rest }, ref, ) { - const cursor = onClick ? 'pointer' : 'default' - const cardVariant = variant === 'default' ? 'primary' : variant const token = tokens[cardVariant] @@ -46,12 +42,11 @@ export const Card = forwardRef(function Card( const props = { ref, background: token.background, - cursor, ...rest, } return ( - + {children} ) diff --git a/packages/eds-core-react/src/components/Card/__snapshots__/Card.test.tsx.snap b/packages/eds-core-react/src/components/Card/__snapshots__/Card.test.tsx.snap index 8f26924a37..66c566ab79 100644 --- a/packages/eds-core-react/src/components/Card/__snapshots__/Card.test.tsx.snap +++ b/packages/eds-core-react/src/components/Card/__snapshots__/Card.test.tsx.snap @@ -44,7 +44,6 @@ exports[`Card Matches snapshot 1`] = ` -ms-flex-direction: column; flex-direction: column; grid-gap: 16px; - cursor: default; border-radius: 4px; } @@ -109,7 +108,6 @@ exports[`Card Matches snapshot 1`] = `