Skip to content

Commit

Permalink
test uten role=menu, ser ut til å ødelegge for search
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Dec 18, 2023
1 parent 1ff9402 commit 70496a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/bedriftsmeny",
"version": "6.13.0-rc2",
"version": "6.13.0-rc3",
"description": "Bedriftsvelger og -meny for innlogget arbeidsgiver. Laget av TAG (Tjenester for Arbeidsgivere).",
"author": "NAVIKT",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion src/bedriftsmeny/velger/JuridiskEnhet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const Underenhet = forwardRef<HTMLButtonElement, UnderenhetProps>(({valgt, onCli
<Button
ref={ref}
tabIndex={valgt ? 0 : -1}
role='menuitemradio'
aria-checked={valgt}
variant='tertiary'
onClick={() => onClick(underenhet)}
Expand Down
6 changes: 2 additions & 4 deletions src/bedriftsmeny/velger/Virksomhetsvelger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ const Velger = ({friKomponent} : {friKomponent: boolean} ) => {
>
<div
className="navbm-virksomhetsvelger__popup"
role="menu"
>
<div className="navbm-virksomhetsvelger__popup-header">
<Search
Expand All @@ -141,13 +140,12 @@ const Velger = ({friKomponent} : {friKomponent: boolean} ) => {
/>
<CloseButton onClick={() => setÅpen(false)} />
</div>
<Detail role="status" id="sokestatus">
<Detail role="status">
{søketekst.length > 0 && (<>
{antallTreff === 0 ? `Ingen treff på "${søketekst}"` : `${antallTreff} treff på "${søketekst}".`}
</>)}
</Detail>
<Accordion style={{display: "flex", overflow: "auto"}}
id="virksomhetsvelger__resultatliste">
<Accordion style={{display: "flex", overflow: "auto"}}>
<ul
className="navbm-virksomhetsvelger__juridiske-enheter"
onKeyDown={onKeyDown}
Expand Down

0 comments on commit 70496a8

Please sign in to comment.