diff --git a/apps/theme/components/Sidebar/Sidebar.module.css b/apps/theme/components/Sidebar/Sidebar.module.css index 7015e922f8..334a1a3dc0 100644 --- a/apps/theme/components/Sidebar/Sidebar.module.css +++ b/apps/theme/components/Sidebar/Sidebar.module.css @@ -94,3 +94,31 @@ right: 440px; } } + +.modal { + /* --dsc-dialog-spacing: var(--ds-size-2); */ + + min-height: 90vh; + flex-direction: column; + + & .modalBottom { + margin-top: auto; + padding: var(--ds-size-7); + } + + & .tabsWrapper { + display: flex; + flex-direction: column; + height: 80vh; + padding: 0; + } + + & .tabContent { + overflow-x: none; + overflow-y: none; + } + + /* & .tabPanel { + padding: var(--ds-size-4) 0; + } */ +} diff --git a/apps/theme/components/Sidebar/Sidebar.tsx b/apps/theme/components/Sidebar/Sidebar.tsx index 18fa0e71f4..dae7fa46e7 100644 --- a/apps/theme/components/Sidebar/Sidebar.tsx +++ b/apps/theme/components/Sidebar/Sidebar.tsx @@ -3,7 +3,12 @@ import { useEffect, useState } from 'react'; import { useThemeStore } from '../../store'; -import { Tabs } from '@digdir/designsystemet-react'; +import { + Dialog, + Heading, + Tabs, + useMediaQuery, +} from '@digdir/designsystemet-react'; import { CogIcon } from '@navikt/aksel-icons'; import { BorderRadiusInput } from '../BorderRadiusInput/BorderRadiusInput'; import { TokenModal } from '../TokenModal/TokenModal'; @@ -14,6 +19,9 @@ export const Sidebar = () => { const activePage = useThemeStore((state) => state.activePage); const setActivePage = useThemeStore((state) => state.setActivePage); + const isMobile = useMediaQuery('(max-width: 768px)'); + const [modalOpen, setModalOpen] = useState(false); + const [isSticky, setSticky] = useState(false); const [showSidebar, setShowSidebar] = useState(false); @@ -29,49 +37,91 @@ export const Sidebar = () => { }, []); return ( -