feat(SW-272) link style changes
This commit is contained in:
@@ -11,7 +11,7 @@ import { useTrapFocus } from "@/hooks/useTrapFocus"
|
||||
|
||||
import styles from "./megaMenu.module.css"
|
||||
|
||||
import { MegaMenuProps } from "@/types/components/header/megaMenu"
|
||||
import type { MegaMenuProps } from "@/types/components/header/megaMenu"
|
||||
|
||||
export default function MegaMenu({
|
||||
isMobile,
|
||||
@@ -60,7 +60,7 @@ export default function MegaMenu({
|
||||
{submenu.map((item) => (
|
||||
<li key={item.title} className={styles.submenusItem}>
|
||||
<Caption textTransform="uppercase" asChild>
|
||||
<span>{item.title}</span>
|
||||
<span className={styles.submenuTitle}>{item.title}</span>
|
||||
</Caption>
|
||||
<ul className={styles.submenu}>
|
||||
{item.links.map(({ title, link }) =>
|
||||
@@ -68,11 +68,15 @@ export default function MegaMenu({
|
||||
<li key={title} className={styles.submenuItem}>
|
||||
<Link
|
||||
href={link.url}
|
||||
color="burgundy"
|
||||
variant="menu"
|
||||
className={styles.link}
|
||||
onClick={closeMegaMenu}
|
||||
>
|
||||
{title}
|
||||
<ArrowRightIcon
|
||||
color="burgundy"
|
||||
className={styles.arrow}
|
||||
/>
|
||||
</Link>
|
||||
</li>
|
||||
) : null
|
||||
|
||||
@@ -13,8 +13,10 @@
|
||||
.submenus {
|
||||
list-style: none;
|
||||
display: grid;
|
||||
gap: var(--Spacing-x3);
|
||||
padding: var(--Spacing-x2) var(--Spacing-x4);
|
||||
}
|
||||
|
||||
.submenuTitle {
|
||||
padding-left: var(--Spacing-x1);
|
||||
}
|
||||
|
||||
.submenu {
|
||||
@@ -31,10 +33,16 @@
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.link {
|
||||
padding: var(--Spacing-x1) 0;
|
||||
font-weight: var(--typography-Body-Bold-fontWeight);
|
||||
width: 100%;
|
||||
.linkIcon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.link:not(:hover) .arrow {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.backWrapper {
|
||||
@@ -68,10 +76,17 @@
|
||||
grid-template-rows: max-content 1fr max-content;
|
||||
}
|
||||
|
||||
.submenus {
|
||||
padding: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.submenusItem:first-child {
|
||||
padding-bottom: var(--Spacing-x2);
|
||||
border-bottom: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
|
||||
}
|
||||
.submenusItem:last-child {
|
||||
padding-top: var(--Spacing-x3);
|
||||
}
|
||||
|
||||
.cardWrapper {
|
||||
background-color: var(--Base-Surface-Secondary-light-Normal);
|
||||
@@ -104,11 +119,16 @@
|
||||
.submenus {
|
||||
grid-area: submenus;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
padding: var(--Spacing-x2) var(--Spacing-x3);
|
||||
}
|
||||
|
||||
.submenusItem:first-child {
|
||||
padding-right: var(--Spacing-x5);
|
||||
border-right: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
|
||||
}
|
||||
.submenusItem:last-child {
|
||||
padding-left: var(--Spacing-x5);
|
||||
}
|
||||
|
||||
.cardWrapper {
|
||||
grid-area: card;
|
||||
|
||||
Reference in New Issue
Block a user