Skip to content

Commit 3055d78

Browse files
committed
fix: theme and local switcher if accent color changed
1 parent 513986d commit 3055d78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ui/local-switcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ export const LocalSwitcher = (props: { iconOnly?: boolean }) => {
3939
>
4040
<CheckIcon
4141
className={cn(
42-
'mt-0.5 size-4 self-start',
42+
'mt-0.5 size-4 self-start text-current',
4343
i18n.language === language.key ? 'opacity-100' : 'opacity-0'
4444
)}
4545
/>
4646
<span className="flex flex-col">
4747
<span>{t(`common:languages.values.${language.key}`)}</span>
4848
{language.key !== i18n.language && (
49-
<span className="text-xs text-muted-foreground">
49+
<span className="text-xs opacity-60">
5050
{t(`common:languages.values.${language.key}`, {
5151
lng: language.key,
5252
})}

src/components/ui/theme-switcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const ThemeSwitcher = (props: { iconOnly?: boolean }) => {
6868
>
6969
<CheckIcon
7070
className={cn(
71-
'mt-0.5 size-4 self-start',
71+
'mt-0.5 size-4 self-start text-current',
7272
theme === item ? 'opacity-100' : 'opacity-0'
7373
)}
7474
/>

0 commit comments

Comments
 (0)