Skip to content

Commit b7ee4ed

Browse files
VIA-608 AJ Fix extra margin when combined with HR component
1 parent ba7a354 commit b7ee4ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/_components/eligibility/EligibilityActions.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ const EligibilityActions = ({ actions }: EligibilityActionProps): (JSX.Element |
5757
case ActionDisplayType.actionLinkWithInfo: {
5858
const info = action.content && <InfoText content={action.content} delineator={false} />;
5959
const link = action.button && (
60-
<ActionLink asElement="a" href={action.button.url.href} rel="noopener" target="_blank">
60+
<ActionLink
61+
className={action.delineator ? "nhsuk-u-margin-bottom-0" : undefined}
62+
asElement="a"
63+
href={action.button.url.href}
64+
rel="noopener"
65+
target="_blank"
66+
>
6167
{action.button.label}
6268
</ActionLink>
6369
);

0 commit comments

Comments
 (0)