(fix) nav: text color

This commit is contained in:
kakkokari-gtyih 2023-07-15 18:55:21 +09:00
parent 579ebc3fb6
commit 8e1d23a877

View File

@ -28,8 +28,8 @@
</ClientOnly> </ClientOnly>
</button> </button>
</li> </li>
<li :class="['relative group transition-colors', { 'text-white': (landing && scrollPos >= -40) }]"> <li class="relative group transition-colors">
<a class="hover:opacity-80" href="#"><I18nIcon class="h-5 w-5" /><span class="sr-only">{{ $t('_nav.switchLang') }}</span></a> <a class="hover:opacity-80" href="#"><I18nIcon :class="['h-5 w-5', { 'text-white': (landing && scrollPos >= -40) }]" /><span class="sr-only">{{ $t('_nav.switchLang') }}</span></a>
<div class="absolute top-6 right-0 hidden group-hover:block z-[9955]"> <div class="absolute top-6 right-0 hidden group-hover:block z-[9955]">
<ul class="px-4 py-2 bg-slate-50 dark:bg-slate-800 rounded-lg shadow-lg space-y-1"> <ul class="px-4 py-2 bg-slate-50 dark:bg-slate-800 rounded-lg shadow-lg space-y-1">
<li v-for="locale in locales"> <li v-for="locale in locales">