Update locale-provider.ftl

Made template dark mode ready
This commit is contained in:
CN 2024-01-04 10:55:42 +01:00 committed by GitHub
parent ae06320159
commit c981e12c25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
<#macro kw currentLocale="" locales=[]> <#macro kw currentLocale="" locales=[]>
<div class="relative" x-data="{ open: false }"> <div class="relative" x-data="{ open: false }">
<@link.kw @click="open = true" color="secondary" component="button" type="button"> <@link.kw @click="open = true" color="secondary-2" component="button" type="button">
<div class="flex items-center"> <div class="flex items-center">
<span class="mr-1 text-sm">${currentLocale}</span> <span class="mr-1 text-sm">${currentLocale}</span>
<@icon.kw /> <@icon.kw />
@ -11,14 +11,14 @@
</@link.kw> </@link.kw>
<div <div
@click.away="open = false" @click.away="open = false"
class="absolute bg-white bottom-0 -left-4 max-h-80 mb-6 overflow-y-scroll rounded-lg shadow-lg" class="absolute bg-white dark:bg-secondary-800 bottom-0 -left-4 max-h-80 mb-6 overflow-y-scroll rounded-lg shadow-lg"
x-cloak x-cloak
x-show="open" x-show="open"
> >
<#list locales as locale> <#list locales as locale>
<#if currentLocale != locale.label> <#if currentLocale != locale.label>
<div class="px-4 py-2"> <div class="px-4 py-2">
<@link.kw color="secondary" href=locale.url size="small"> <@link.kw color="secondary-3" href=locale.url size="small">
${locale.label} ${locale.label}
</@link.kw> </@link.kw>
</div> </div>