Skip to content

Commit

Permalink
fjern aria controls og aria owns
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Nov 25, 2024
1 parent 9fe93df commit 6b81137
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions lib/Enheter/EnheterMedUnderenheter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const EnhetMedUnderenheter = ({
onFocus(organisasjon);
}
}}
aria-owns={`underenheter-${organisasjon.orgnr}`}
style={{
backgroundColor: organisasjon.ekspandert
? "var(--a-surface-action-subtle"
Expand All @@ -51,10 +50,7 @@ export const EnhetMedUnderenheter = ({
/>
</Accordion.Header>
<Accordion.Content>
<div
className={styles.underenheter}
id={`underenheter-${organisasjon.orgnr}`}
>
<div className={styles.underenheter}>
{organisasjon.underenheter.map((underenhet) => (
<Underenhet
key={underenhet.orgnr}
Expand Down
1 change: 0 additions & 1 deletion lib/Virksomhetsvelger/Virksomhetsvelger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const Velger = ({ friKomponent }: { friKomponent?: boolean }) => {
variant="secondary"
ref={buttonRef}
aria-label={`Virksomhetsmeny. Valgt virksomhet er ${valgtOrganisasjon.navn} med virksomhetsnummer ${valgtOrganisasjon.orgnr}`}
aria-controls={dropdownId}
aria-haspopup={true}
aria-expanded={åpen}
>
Expand Down

0 comments on commit 6b81137

Please sign in to comment.