Skip to content

Commit 831d23b

Browse files
Merged main
2 parents 1dc55f3 + d970740 commit 831d23b

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
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" size="large" 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.module.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
color: var(--default-action-color);
3030
}
3131

32-
.linkText {
32+
.linkText.linkText {
3333
font-weight: 600;
34+
margin-bottom: 0;
3435
}
3536

3637
.tagline {

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.module.scss

+4
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@
4242
text-decoration-line: underline;
4343
}
4444
}
45+
46+
.linkText {
47+
margin-bottom: 0;
48+
}
4549
}

src/components/_common/pageNavigationMenu/PageNavigationMenu.tsx

+4-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,9 @@ 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" className={style.linkText}>
68+
{anchorLink.linkText}
69+
</BodyLong>
6870
</LenkeBase>
6971
</li>
7072
))}

src/global-override-styles.scss

+4-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
--text-fluid-32-36: clamp(2rem, 1.9167rem + 0.4167vi, 2.25rem);
3030
--text-fluid-36-48: clamp(2.25rem, 2rem + 1.25vi, 3rem);
3131
--default-action-color: var(--a-blue-600);
32-
3332
--brand-purple-deep: #99185e;
3433
--brand-purple-light: #e6c7d8;
3534
--brand-beige: #fef5ef;
@@ -64,39 +63,36 @@
6463
.navds-body-short--large {
6564
font-size: var(--text-fluid-20-22);
6665
}
67-
6866
.navds-body-long--small,
6967
.navds-body-long--medium,
7068
.navds-body-long--large {
71-
line-height: 1.75;
69+
line-height: 1.65;
7270
margin-bottom: var(--a-spacing-9);
7371
}
7472

73+
.navds-heading {
74+
line-height: 1.3;
75+
}
7576
.navds-heading--xsmall,
7677
.navds-heading--small,
7778
.navds-heading--medium {
7879
margin-bottom: var(--a-spacing-2);
7980
}
80-
8181
.navds-heading--xsmall {
8282
font-size: var(--text-fluid-18-20);
8383
}
84-
8584
.navds-heading--small {
8685
font-size: var(--text-fluid-18-20);
8786
font-weight: 650;
8887
}
89-
9088
.navds-heading--medium {
9189
font-size: var(--text-fluid-22-24);
9290
font-weight: 650;
9391
}
94-
9592
.navds-heading--large {
9693
font-size: var(--text-fluid-32-36);
9794
font-weight: 650;
9895
}
99-
10096
.navds-heading--xlarge {
10197
font-size: var(--text-fluid-36-48);
10298
font-weight: 650;

0 commit comments

Comments
 (0)