Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
♿ sidebar p er nå span
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Sep 29, 2022
1 parent a1cdf08 commit ae4dd12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions website/components/layout/menu/DsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ const Dropdown = ({
className="group z-10 flex min-h-8 w-full cursor-pointer items-center justify-between pr-2 text-text-muted hover:text-deepblue-800 focus:outline-none"
aria-expanded={open}
>
<Detail className="mt-6 flex w-full items-center justify-between rounded-sm pl-2 font-semibold first:mt-0 group-hover:bg-[rgba(0,0,0,0.06)] group-focus:shadow-focus group-active:bg-[rgba(0,0,0,0.10)]">
<Detail
as="span"
className="mt-6 flex w-full items-center justify-between rounded-sm pl-2 font-semibold first:mt-0 group-hover:bg-[rgba(0,0,0,0.06)] group-focus:shadow-focus group-active:bg-[rgba(0,0,0,0.10)]"
>
{heading.title}
<span className="flex h-6 w-6 items-center justify-center rounded">
<Expand
className={cl("text-base", { "rotate-180": open })}
aria-hidden
aria-label={
!open ? `åpne ${heading.title}` : `lukk ${heading.title}`
}
title={!open ? `åpne ${heading.title}` : `lukk ${heading.title}`}
/>
</span>
</Detail>
Expand Down

0 comments on commit ae4dd12

Please sign in to comment.