Skip to content

Commit 3747b61

Browse files
committed
fix(@clayui/card): revert markup cleanup, SF
1 parent d7fb177 commit 3747b61

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/clay-card/src/Card.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ const ClayCard: React.FunctionComponent<IProps> & {
6969
{...otherProps}
7070
className={classNames(className, {
7171
card: !selectable && (!horizontal || interactive),
72-
'card-interactive card-interactive-primary card-type-template':
73-
interactive,
72+
'card-interactive card-interactive-primary card-type-template': interactive,
7473
'card-type-asset':
7574
isCardType.file || isCardType.image || isCardType.user,
7675
'card-type-directory form-check form-check-card form-check-middle-left':
@@ -85,7 +84,7 @@ const ClayCard: React.FunctionComponent<IProps> & {
8584
'template-card': interactive && !horizontal,
8685
'template-card-horizontal': horizontal && interactive,
8786
'user-card': isCardType.user,
88-
}) || undefined}
87+
})}
8988
href={interactive ? href : undefined}
9089
onClick={onClick}
9190
role={onClick ? 'button' : undefined}

packages/clay-card/src/__tests__/__snapshots__/index.tsx.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
exports[`ClayCard renders a ClayCard as a directory 1`] = `
44
<div>
5-
<div>
5+
<div
6+
class=""
7+
>
68
<div
79
class="card card-horizontal"
810
>
@@ -1392,7 +1394,9 @@ exports[`ClayCardWithHorizontal renders as disabled 1`] = `
13921394

13931395
exports[`ClayCardWithHorizontal renders as not selectable 1`] = `
13941396
<div>
1395-
<div>
1397+
<div
1398+
class=""
1399+
>
13961400
<div
13971401
class="card card-horizontal"
13981402
>

0 commit comments

Comments
 (0)