Skip to content

Commit

Permalink
fix wcag error:
Browse files Browse the repository at this point in the history
fjern aria-label fra bodyshort.
  • Loading branch information
kenglxn committed Dec 11, 2024
1 parent a0c163d commit ad9fb98
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Enheter/Hovedenhet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export const Hovedenhet = ({
<span>Org.nr. </span>
<span>{formatOrgNr(hovedenhet.orgnr)}</span>
</BodyShort>
<BodyShort
className={styles.hovedenhetBeskrivelse}
aria-label={`Hovedenheten har ${antallUnderenheter} ${antallUnderenheter === 1 ? "underenhet" : "underenheter"}`}
>
<BodyShort className={styles.hovedenhetBeskrivelse}>
{antallUnderenheter}{" "}
{antallUnderenheter === 1 ? "underenhet" : "underenheter"}
{valgt ? " - 1 valgt" : ""}
Expand Down

0 comments on commit ad9fb98

Please sign in to comment.