diff --git a/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.stories.tsx b/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.stories.tsx
index 7703843321..029ff990fe 100644
--- a/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.stories.tsx
+++ b/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.stories.tsx
@@ -3,6 +3,7 @@ import { StoryFn } from '@storybook/react'
import React from 'react'
import { LocaleMap } from '../../../types'
+import { Stack } from '../../Layout'
import { LanguageSwicher } from '.'
@@ -22,7 +23,43 @@ const localeMap: LocaleMap = {
}
export const All: StoryFn = () => (
-
-
-
+
+
+
normal
+
+
+
+
+
+
narrow
+
+
+
+
+
+
invert
+
+
+
+
+
+
narrow invert
+
+
+
+
+
)
diff --git a/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.tsx b/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.tsx
index 2762c466f4..a3f45149a2 100644
--- a/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.tsx
+++ b/packages/smarthr-ui/src/components/Header/LanguageSwitcher/LanguageSwitcher.tsx
@@ -8,6 +8,8 @@ import { FaCaretDownIcon, FaCheckIcon, FaGlobeIcon } from '../../Icon'
import type { DecoratorsType, LocaleMap } from '../../../types'
export type Props = {
+ narrow?: boolean
+ invert?: boolean
localeMap: LocaleMap
/** コンポーネント内の文言を変更するための関数を設定 */
decorators?: DecoratorsType<'triggerLabel'>
@@ -35,9 +37,18 @@ const appLauncher = tv({
'hover:shr-border-transparent',
],
},
+ variants: {
+ invert: {
+ true: {
+ switchButton: '[&&&]:shr-text-black',
+ },
+ },
+ },
})
export const LanguageSwicher: React.FC = ({
+ narrow,
+ invert,
decorators,
localeMap,
onLanguageSelect,
@@ -60,13 +71,25 @@ export const LanguageSwicher: React.FC = ({
onLanguageSelect(code)
}
+ const NarrowTrigger = (
+ } className={switchButton({ invert })}>
+
+
+ )
+
+ const Trigger = (
+ }
+ suffix={}
+ className={switchButton({ invert })}
+ >
+ {triggerLabel}
+
+ )
+
return (
-
- } suffix={} className={switchButton()}>
- {triggerLabel}
-
-
+ {narrow ? NarrowTrigger : Trigger}