Skip to content

Commit c198750

Browse files
authored
fix: only add clickable class to card if exceptions available (#1626)
1 parent 6a9d7fa commit c198750

File tree

1 file changed

+4
-1
lines changed
  • application/CohortManager/src/Web/app/components

1 file changed

+4
-1
lines changed

application/CohortManager/src/Web/app/components/card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export default function Card({
1414
url,
1515
}: Readonly<CardProps>) {
1616
return (
17-
<div className="nhsuk-card nhsuk-card--clickable" data-testid="card">
17+
<div
18+
className={`nhsuk-card${value > 0 ? " nhsuk-card--clickable" : ""}`}
19+
data-testid="card"
20+
>
1821
<div className="nhsuk-card__content">
1922
<p
2023
className="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1"

0 commit comments

Comments
 (0)