fix(BOOK-249): Added Typography around the back button inside the mobile menu to give the icon the correct color
Approved-by: Matilda Landström Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -38,20 +38,20 @@ export default function MegaMenu({
|
|||||||
<nav className={`${styles.megaMenu} ${isOpen ? styles.active : ""}`}>
|
<nav className={`${styles.megaMenu} ${isOpen ? styles.active : ""}`}>
|
||||||
{isMobile ? (
|
{isMobile ? (
|
||||||
<div className={styles.backWrapper}>
|
<div className={styles.backWrapper}>
|
||||||
<button
|
<Typography variant="Title/Subtitle/lg" className={styles.text}>
|
||||||
type="button"
|
<button
|
||||||
className={styles.backButton}
|
type="button"
|
||||||
onClick={() => toggleMegaMenu(false)}
|
className={styles.backButton}
|
||||||
>
|
onClick={() => toggleMegaMenu(false)}
|
||||||
<MaterialIcon
|
>
|
||||||
icon="arrow_back_ios"
|
<MaterialIcon
|
||||||
size={20}
|
icon="arrow_back_ios"
|
||||||
color="CurrentColor"
|
size={20}
|
||||||
/>
|
color="CurrentColor"
|
||||||
<Typography variant="Title/Subtitle/lg" className={styles.text}>
|
/>
|
||||||
<span>{title}</span>
|
<span>{title}</span>
|
||||||
</Typography>
|
</button>
|
||||||
</button>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className={styles.megaMenuContent}>
|
<div className={styles.megaMenuContent}>
|
||||||
|
|||||||
Reference in New Issue
Block a user