Merged in fix/SW-2753-icon-header (pull request #2546)
fix(SW-2753): update icon in top navigation * fix(SW-2753): update icon in top navigation Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
import FocusLock from "react-focus-lock"
|
import FocusLock from "react-focus-lock"
|
||||||
|
|
||||||
import Caption from "@scandic-hotels/design-system/Caption"
|
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import Subtitle from "@scandic-hotels/design-system/Subtitle"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import useDropdownStore from "@/stores/main-menu"
|
import useDropdownStore from "@/stores/main-menu"
|
||||||
|
|
||||||
@@ -45,13 +44,13 @@ export default function MegaMenu({
|
|||||||
onClick={() => toggleMegaMenu(false)}
|
onClick={() => toggleMegaMenu(false)}
|
||||||
>
|
>
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
icon="chevron_left"
|
icon="arrow_back_ios"
|
||||||
size={20}
|
size={20}
|
||||||
color="Icon/Interactive/Accent"
|
color="Icon/Interactive/Accent"
|
||||||
/>
|
/>
|
||||||
<Subtitle type="one" color="burgundy" asChild>
|
<Typography variant="Title/Subtitle/lg" className={styles.text}>
|
||||||
<span>{title}</span>
|
<span>{title}</span>
|
||||||
</Subtitle>
|
</Typography>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
@@ -72,14 +71,9 @@ export default function MegaMenu({
|
|||||||
<ul className={styles.submenus}>
|
<ul className={styles.submenus}>
|
||||||
{submenu.map((item) => (
|
{submenu.map((item) => (
|
||||||
<li key={item.title} className={styles.submenusItem}>
|
<li key={item.title} className={styles.submenusItem}>
|
||||||
<Caption
|
<Typography variant="Title/Overline/sm">
|
||||||
type="label"
|
|
||||||
color="uiTextPlaceholder"
|
|
||||||
textTransform="uppercase"
|
|
||||||
asChild
|
|
||||||
>
|
|
||||||
<span className={styles.submenuTitle}>{item.title}</span>
|
<span className={styles.submenuTitle}>{item.title}</span>
|
||||||
</Caption>
|
</Typography>
|
||||||
<ul className={styles.submenu}>
|
<ul className={styles.submenu}>
|
||||||
{item.links.map(({ title, link }) =>
|
{item.links.map(({ title, link }) =>
|
||||||
link ? (
|
link ? (
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
.submenuTitle {
|
.submenuTitle {
|
||||||
padding-left: var(--Spacing-x1);
|
padding-left: var(--Spacing-x1);
|
||||||
|
color: var(--Text-Tertiary);
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submenu {
|
.submenu {
|
||||||
@@ -53,6 +55,10 @@
|
|||||||
padding: var(--Spacing-x2);
|
padding: var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
color: var(--Text-Interactive-Default);
|
||||||
|
}
|
||||||
|
|
||||||
.backButton {
|
.backButton {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -269,7 +269,7 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: block;
|
font-display: block;
|
||||||
src: url(/_static/fonts/material-symbols/rounded-5e7427aa.woff2)
|
src: url(/_static/fonts/material-symbols/rounded-e6bd32d5.woff2)
|
||||||
format('woff2');
|
format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -28,6 +28,7 @@ const icons = [
|
|||||||
'apartment',
|
'apartment',
|
||||||
'apparel',
|
'apparel',
|
||||||
'arrow_back',
|
'arrow_back',
|
||||||
|
'arrow_back_ios',
|
||||||
'arrow_forward_ios',
|
'arrow_forward_ios',
|
||||||
'arrow_forward',
|
'arrow_forward',
|
||||||
'arrow_right',
|
'arrow_right',
|
||||||
|
|||||||
Reference in New Issue
Block a user