From 47c362c7029944cb52f666bc62b648489d245aca Mon Sep 17 00:00:00 2001 From: Sverre Blekastad Stensby Date: Tue, 7 Jan 2025 10:54:56 +0100 Subject: [PATCH] =?UTF-8?q?Fikset=20styling=20p=C3=A5=20statuscelle=20i=20?= =?UTF-8?q?accordion=20p=C3=A5=20plan.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/Pages/Virksomhet/Plan/InnholdsBlokk.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/Pages/Virksomhet/Plan/InnholdsBlokk.tsx b/client/src/Pages/Virksomhet/Plan/InnholdsBlokk.tsx index 5b8d1ac56..fb2252ed1 100644 --- a/client/src/Pages/Virksomhet/Plan/InnholdsBlokk.tsx +++ b/client/src/Pages/Virksomhet/Plan/InnholdsBlokk.tsx @@ -43,10 +43,16 @@ const StatusSelectContainer = styled.div` align-items: center; justify-content: center; --__ac-accordion-header-shadow: inset 2px 0 0 0 var(--a-transparent), inset -2px 0 0 0 var(--a-transparent), inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color); - box-shadow: var(--__ac-accordion-header-shadow), inset 0 -2px 0 0 var(--__ac-accordion-header-shadow-color); - + padding-right: var(--a-spacing-3); + .navds-accordion__item:not(:last-child) & { + box-shadow: var(--__ac-accordion-header-shadow); + } + + .navds-accordion__item:last-child & { + box-shadow: inset 0 -2px 0 0 var(--__ac-accordion-header-shadow-color), var(--__ac-accordion-header-shadow); + } .navds-accordion__item--open:last-child & { - box-shadow: inset 2px 0 0 0 var(--a-transparent), var(--__ac-accordion-header-shadow); + box-shadow: inset 0 -2px 0 0 var(--a-transparent), var(--__ac-accordion-header-shadow); } ${StyledAccordionItem}:has(${StyledAccordionHeader}:hover) & {