Skip to content

Commit 79ded26

Browse files
Merge pull request #1689 from navikt/fikse-avstand-ved-tom-underseksjon
Fikser ekstra avstand til ankerlenke
2 parents a18f481 + 4635f44 commit 79ded26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/layouts/section-with-header/section-navigation/SectionNavigation.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export const SectionNavigation = ({
4747

4848
const getLabels = translator('sectionNavigation', language);
4949

50+
if (allAnchors.length === 0) {
51+
return null;
52+
}
53+
5054
return (
5155
<ul
5256
aria-label={getLabels('navigationLabel')}

0 commit comments

Comments
 (0)