Skip to content

Commit c9e88cb

Browse files
committed
fix: sidebar simple card link button icon size
LIIKUNTA-771. After HDS upgrade to v4, all buttons usually needs a size attribute.
1 parent c951ac2 commit c9e88cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/core/pageModules/CardsModule/SimpleCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
ButtonPresetTheme,
66
ButtonVariant,
77
IconAngleRight,
8+
IconSize,
89
} from 'hds-react';
910

1011
import styles from '../pageModules.module.scss';
@@ -101,7 +102,9 @@ export function SimpleCard({
101102
variant={ButtonVariant.Secondary}
102103
theme={ButtonPresetTheme.Black}
103104
onClick={handleClick}
104-
iconStart={<IconAngleRight />}
105+
iconStart={
106+
<IconAngleRight aria-hidden="true" size={IconSize.Small} />
107+
}
105108
>
106109
{linkTitle}
107110
</Button>

0 commit comments

Comments
 (0)