diff --git a/aksel.nav.no/website/components/layout/sidebar/Sidebar.module.css b/aksel.nav.no/website/components/layout/sidebar/Sidebar.module.css
new file mode 100644
index 0000000000..94eaeedcdd
--- /dev/null
+++ b/aksel.nav.no/website/components/layout/sidebar/Sidebar.module.css
@@ -0,0 +1,8 @@
+.menuSection {
+ padding: var(--a-spacing-2);
+ border-radius: var(--a-border-radius-medium);
+}
+
+.menuSection[data-type="darkside"] {
+ background-color: var(--ax-bg-brand-magenta-moderate);
+}
diff --git a/aksel.nav.no/website/components/layout/sidebar/Sidebar.tsx b/aksel.nav.no/website/components/layout/sidebar/Sidebar.tsx
index f4c32ea2c4..10c261db78 100644
--- a/aksel.nav.no/website/components/layout/sidebar/Sidebar.tsx
+++ b/aksel.nav.no/website/components/layout/sidebar/Sidebar.tsx
@@ -3,6 +3,7 @@ import { Box, Show } from "@navikt/ds-react";
import { SidebarT } from "@/types";
import { StatusTag } from "@/web/StatusTag";
import { Menu, MenuHeading, MenuLi, MenuLink, MenuUl } from "@/web/menu/Menu";
+import styles from "./Sidebar.module.css";
const Sidebar = ({
kategori,
@@ -21,7 +22,7 @@ const Sidebar = ({
className="w-sidebar shrink-0 self-start"
>
+
{links.map((section) => (
))}
@@ -38,8 +39,12 @@ function Section({ section }: { section: SidebarT[number] }) {
const isActive = (slug: string) => {
return asPath.split("#")[0] === `/${slug}`;
};
+
return (
- -
+
-
{section.title}
{section.pages.map((page) => (
diff --git a/aksel.nav.no/website/components/website-modules/menu/Menu.module.css b/aksel.nav.no/website/components/website-modules/menu/Menu.module.css
index 233aedc59e..a1dc95a0ac 100644
--- a/aksel.nav.no/website/components/website-modules/menu/Menu.module.css
+++ b/aksel.nav.no/website/components/website-modules/menu/Menu.module.css
@@ -5,3 +5,39 @@
.menuList .menuList .menuListItem {
padding-inline-start: var(--a-spacing-5);
}
+
+.menuListItem[data-type="action"][data-current="true"] {
+ color: var(--a-deepblue-700);
+}
+
+.menuListItem[data-type="action"][data-current="true"] > span {
+ background-color: var(--a-surface-selected);
+}
+
+.menuListItem[data-type="action"][data-current="true"]::before {
+ background-color: var(--a-deepblue-700);
+}
+
+.menuListItem[data-type="neutral"][data-current="true"] {
+ color: var(--a-text-default);
+}
+
+.menuListItem[data-type="neutral"][data-current="true"] > span {
+ background-color: var(--a-surface-neutral-subtle);
+}
+
+.menuListItem[data-type="neutral"][data-current="true"]::before {
+ background-color: var(--a-gray-700);
+}
+
+.menuListItem[data-type="darkside"][data-current="true"] {
+ color: var(--ax-text-brand-magenta);
+}
+
+.menuListItem[data-type="darkside"][data-current="true"]::before {
+ background-color: var(--ax-bg-brand-magenta-strong-pressed);
+}
+
+.menuListItem[data-type="darkside"][data-current="true"] > span {
+ background-color: var(--ax-bg-brand-magenta-moderate-pressedA);
+}
diff --git a/aksel.nav.no/website/components/website-modules/menu/Menu.tsx b/aksel.nav.no/website/components/website-modules/menu/Menu.tsx
index 7c6e7562ea..19a010cfec 100644
--- a/aksel.nav.no/website/components/website-modules/menu/Menu.tsx
+++ b/aksel.nav.no/website/components/website-modules/menu/Menu.tsx
@@ -1,6 +1,6 @@
import cl from "clsx";
import Link from "next/link";
-import { createContext, useContext } from "react";
+import { HTMLAttributes, createContext, useContext } from "react";
import { BodyShort, Label } from "@navikt/ds-react";
import { amplitudeLogNavigation } from "@/logging";
import styles from "./Menu.module.css";
@@ -52,10 +52,10 @@ export function MenuUl({ children, id, className }: MenuListProps) {
type MenuLiProps = {
children: React.ReactNode;
-};
+} & HTMLAttributes;
-export function MenuLi({ children }: MenuLiProps) {
- return
- {children}
;
+export function MenuLi(props: MenuLiProps) {
+ return ;
}
type MenuLinkProps = {
@@ -79,10 +79,13 @@ export function MenuLink({
throw new Error("MenuListItem must be used inside a Menu component");
}
+ const isDarksideOverride = href.includes("/darkside/");
+
return (
-
+
{children}
diff --git a/aksel.nav.no/website/pages/_app.tsx b/aksel.nav.no/website/pages/_app.tsx
index be920bf0ec..a86c4589ca 100644
--- a/aksel.nav.no/website/pages/_app.tsx
+++ b/aksel.nav.no/website/pages/_app.tsx
@@ -1,5 +1,6 @@
import { AppProps } from "next/app";
import { useEffect } from "react";
+import "@navikt/ds-tokens/darkside-css";
import { useCheckAuth } from "@/hooks/useCheckAuth";
import { useHashScroll } from "@/hooks/useHashScroll";
import { SanityDataContext } from "@/hooks/useSanityData";
diff --git a/aksel.nav.no/website/sanity/config.ts b/aksel.nav.no/website/sanity/config.ts
index 2b055e4061..23e9415d6f 100644
--- a/aksel.nav.no/website/sanity/config.ts
+++ b/aksel.nav.no/website/sanity/config.ts
@@ -53,6 +53,7 @@ export const grunnleggendeKategorier = [
{ title: "Introduksjon", value: "introduksjon" },
{ title: "Brand", value: "brand" },
{ title: "Styling", value: "styling" },
+ { title: "Darkside", value: "darkside" },
{ title: "Guider", value: "guider" },
{ title: "Kode", value: "kode" },
];