Skip to content

Commit 68fe575

Browse files
committed
BodyShort -> BodyLong sidenavigasjon og tittel på kort
1 parent 0f7e6aa commit 68fe575

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

src/components/_common/card/LargeCardV2/LargeCardV2.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ export const LargeCardV2 = (props: Props) => {
4242
)}
4343
<div>
4444
<LenkeBase className={style.link} href={link.url} {...analyticsProps}>
45-
<BodyShort className={style.linkText} size="large">
45+
<BodyLong as="span" className={style.linkText}>
4646
{link.text}
47-
</BodyShort>
47+
</BodyLong>
4848
</LenkeBase>
4949
<BodyLong className={style.description}>{description}</BodyLong>
50-
<BodyShort className={style.tagline} size="medium">
51-
{tagline}
52-
</BodyShort>
50+
<BodyShort className={style.tagline}>{tagline}</BodyShort>
5351
</div>
5452
</div>
5553
);

src/components/_common/card/MiniCardV2/MiniCardV2.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { ArrowRightIcon } from '@navikt/aksel-icons';
3-
import { BodyShort } from '@navikt/ds-react';
3+
import { BodyLong, BodyShort } from '@navikt/ds-react';
44
import { LenkeBase } from 'components/_common/lenke/lenkeBase/LenkeBase';
55
import { LinkProps } from 'types/link-props';
66
import { useCard } from 'components/_common/card/useCard';
@@ -30,11 +30,11 @@ export const MiniCardV2 = ({ link, type, tagline, className }: MiniCardProps) =>
3030
{...analyticsProps}
3131
>
3232
<div className={style.textContainer}>
33-
<BodyShort className={style.linkText} size="medium">
33+
<BodyLong as="span" className={style.linkText}>
3434
{link.text}
35-
</BodyShort>
35+
</BodyLong>
3636
{tagline && (
37-
<BodyShort className={style.tagline} size="medium">
37+
<BodyShort as="span" className={style.tagline}>
3838
{tagline}
3939
</BodyShort>
4040
)}

src/components/_common/pageNavigationMenu/PageNavigationMenu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useId } from 'react';
22
import { ArrowDownRightIcon } from '@navikt/aksel-icons';
3-
import { BodyShort, Heading } from '@navikt/ds-react';
3+
import { BodyLong, Heading } from '@navikt/ds-react';
44
import { AnchorLink } from 'components/parts/page-navigation-menu/PageNavigationMenuPart';
55
import { LenkeBase } from 'components/_common/lenke/lenkeBase/LenkeBase';
66
import { classNames } from 'utils/classnames';
@@ -64,7 +64,7 @@ export const PageNavigationMenu = ({
6464
className={style.link}
6565
>
6666
<ArrowDownRightIcon aria-hidden className={style.icon} />
67-
<BodyShort as="span">{anchorLink.linkText}</BodyShort>
67+
<BodyLong as="span">{anchorLink.linkText}</BodyLong>
6868
</LenkeBase>
6969
</li>
7070
))}

0 commit comments

Comments
 (0)