Skip to content

Commit

Permalink
fix(my-pages): REVERT "feat(my-pages): Navigation - new mobile menu +…
Browse files Browse the repository at this point in the history
… tweaks (#17242)" (#17483)

This reverts commit 87e2c7b.
  • Loading branch information
disaerna authored Jan 13, 2025
1 parent 361088a commit 5145f63
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 927 deletions.
3 changes: 1 addition & 2 deletions apps/portals/my-pages/src/components/Header/Header.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { theme, themeUtils } from '@island.is/island-ui/theme'

export const header = style({
position: 'relative',
position: 'fixed',
zIndex: zIndex.header,
display: 'flex',
alignItems: 'center',
Expand All @@ -18,7 +18,6 @@ export const header = style({
'@media': {
[`screen and (min-width: ${theme.breakpoints.lg}px)`]: {
height: SERVICE_PORTAL_HEADER_HEIGHT_LG,
position: 'fixed',
},
},
transition: 'all 250ms ease-in-out',
Expand Down
6 changes: 0 additions & 6 deletions apps/portals/my-pages/src/components/Layout/Layout.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ export const lock = style({

export const btn = style({})

export const mobileNav = style({
position: 'sticky',
top: 0,
zIndex: 99,
})

globalStyle(`${btn} > span`, {
boxShadow: 'none',
})
Expand Down
15 changes: 10 additions & 5 deletions apps/portals/my-pages/src/components/Layout/NarrowLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ReactNode } from 'react'
import { Box, NavigationItem, Icon } from '@island.is/island-ui/core'
import {
Box,
Navigation,
NavigationItem,
Icon,
} from '@island.is/island-ui/core'
import ContentBreadcrumbs from '../../components/ContentBreadcrumbs/ContentBreadcrumbs'
import {
m,
ServicePortalNavigationItem,
ModuleAlertBannerSection,
GoBack,
Navigation,
} from '@island.is/portals/my-pages/core'
import { useLocale } from '@island.is/localization'
import { useWindowSize } from 'react-use'
Expand Down Expand Up @@ -97,10 +101,11 @@ export const NarrowLayout = ({
)
}}
asSpan
baseId="service-portal-navigation"
baseId={'service-portal-navigation'}
title={formatMessage(activeParent?.name ?? m.tableOfContents)}
items={subNavItems ?? []}
expand
expandOnActivation
titleIcon={activeParent?.icon}
/>
</Box>
Expand All @@ -117,7 +122,7 @@ export const NarrowLayout = ({
>
<ContentBreadcrumbs />
{isMobile && subNavItems && subNavItems.length > 0 && (
<Box paddingBottom={3} width="full" className={styles.mobileNav}>
<Box paddingBottom={3} width="full">
<Navigation
renderLink={(link, item) => {
return item?.href ? (
Expand All @@ -127,7 +132,7 @@ export const NarrowLayout = ({
)
}}
asSpan
baseId="service-portal-mobile-navigation"
baseId={'service-portal-mobile-navigation'}
title={
activeParent?.name
? formatMessage(activeParent?.name)
Expand Down
215 changes: 0 additions & 215 deletions libs/portals/my-pages/core/src/components/Navigation/Navigation.css.ts

This file was deleted.

Loading

0 comments on commit 5145f63

Please sign in to comment.