Skip to content

Commit

Permalink
Fjerne aria-label på hovedenhet
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslysne committed Dec 12, 2024
1 parent b1a7ab8 commit 8d25347
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/bedriftsmeny/velger/JuridiskEnhet.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ForwardedRef, forwardRef } from 'react';
import { Office2, Success } from '@navikt/ds-icons';
import { Success } from '@navikt/ds-icons';
import { Accordion, BodyShort, Button } from '@navikt/ds-react';
import { Organisasjon } from '../organisasjon';
import { OrganisasjonMedState } from './useTastaturNavigasjon';
Expand Down Expand Up @@ -134,12 +134,7 @@ const Hovedenhet = ({ hovedenhet, valgt, antallUnderenheter }: HovedenhetProps)
<span>Org.nr. </span>
<span>{hovedenhet.OrganizationNumber.replace(/\B(?=(\d{3})+(?!\d))/g, ' ')}</span>
</BodyShort>
<BodyShort
className="navbm-virksomhetsvelger__enhet-beskrivelse"
aria-label={`Hovedenheten har ${antallUnderenheter} ${
antallUnderenheter === 1 ? 'underenhet' : 'underenheter'
}`}
>
<BodyShort className="navbm-virksomhetsvelger__enhet-beskrivelse">
{antallUnderenheter} {antallUnderenheter === 1 ? 'underenhet' : 'underenheter'}
{valgt ? ' - 1 valgt' : ''}
</BodyShort>
Expand Down

0 comments on commit 8d25347

Please sign in to comment.