Merged in fix/icon-color (pull request #1672)

fix: change to correct icon color

* fix: change to correct icon color


Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
This commit is contained in:
Matilda Landström
2025-03-31 07:29:18 +00:00
parent 8e86bbb4b9
commit b86b9db22b
5 changed files with 20 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ import FocusLock from "react-focus-lock"
import { useIntl } from "react-intl"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { languages } from "@/constants/languages"
import { trpc } from "@/lib/trpc/client"
@@ -16,7 +17,6 @@ import { useHandleKeyUp } from "@/hooks/useHandleKeyUp"
import useLang from "@/hooks/useLang"
import SkeletonShimmer from "../SkeletonShimmer"
import Caption from "../TempDesignSystem/Text/Caption"
import LanguageSwitcherContainer from "./LanguageSwitcherContainer"
import LanguageSwitcherContent from "./LanguageSwitcherContent"
import { languageSwitcherVariants } from "./variants"
@@ -106,14 +106,18 @@ export default function LanguageSwitcher({ type }: LanguageSwitcherProps) {
aria-label={isLanguageSwitcherOpen ? closeMsg : openMsg}
onClick={handleClick}
>
<MaterialIcon icon="globe" size={globeIconSize} />
<Caption className={styles.buttonText} type="regular" asChild>
<MaterialIcon icon="globe" size={globeIconSize} color="CurrentColor" />
<Typography
variant="Body/Supporting text (caption)/smRegular"
className={styles.buttonText}
>
<span>{languages[currentLanguage]}</span>
</Caption>
</Typography>
<MaterialIcon
icon="keyboard_arrow_down"
className={`${styles.chevron} ${isLanguageSwitcherOpen ? styles.isExpanded : ""}`}
size={20}
color="CurrentColor"
/>
</button>