fix: make native date/time picker icons visible in dark mode (#27275)

This commit is contained in:
Jiwon Lee authored and GitHub committed 2026-07-23 22:23:46 -04:00
1 parent 021c4c7a2e
commit 9d020edf0f
5 files changed
+13 -13

No files matched your search

@@ -251,14 +251,14 @@
type="date" type="date"
bind:value={customStart} bind:value={customStart}
max={customEnd || undefined} max={customEnd || undefined}
class="w-fit rounded-sm px-2 text-xs bg-transparent outline-none" class="w-fit rounded-sm px-2 text-xs bg-transparent outline-none dark:scheme-dark"
/> />
<span class="text-xs text-gray-400">–</span> <span class="text-xs text-gray-400">–</span>
<input <input
type="date" type="date"
bind:value={customEnd} bind:value={customEnd}
min={customStart || undefined} min={customStart || undefined}
class="w-fit rounded-sm px-2 text-xs bg-transparent outline-none" class="w-fit rounded-sm px-2 text-xs bg-transparent outline-none dark:scheme-dark"
/> />
{/if} {/if}
<select <select
@@ -230,7 +230,7 @@
type="date" type="date"
bind:value={onceDate} bind:value={onceDate}
min={new Date().toISOString().split('T')[0]} min={new Date().toISOString().split('T')[0]}
class="bg-transparent outline-hidden text-xs dark:color-scheme-dark" class="bg-transparent outline-hidden text-xs dark:scheme-dark"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
on:input={onChange} on:input={onChange}
/> />
@@ -239,7 +239,7 @@
<input <input
type="time" type="time"
bind:value={onceTime} bind:value={onceTime}
class="bg-transparent outline-hidden text-xs dark:color-scheme-dark" class="bg-transparent outline-hidden text-xs dark:scheme-dark"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
on:input={onChange} on:input={onChange}
/> />
@@ -256,7 +256,7 @@
minute = m; minute = m;
onChange(); onChange();
}} }}
class="bg-transparent text-center outline-hidden text-xs dark:color-scheme-dark" class="bg-transparent text-center outline-hidden text-xs dark:scheme-dark"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
/> />
</div> </div>
@@ -214,11 +214,11 @@
<div> <div>
<div class="mb-1 text-xs text-gray-500">{$i18n.t('When')}</div> <div class="mb-1 text-xs text-gray-500">{$i18n.t('When')}</div>
<div class="flex items-center gap-2 text-sm flex-wrap"> <div class="flex items-center gap-2 text-sm flex-wrap">
<input type="date" class="bg-transparent outline-hidden" bind:value={startDate} /> <input type="date" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startDate} />
{#if !allDay} {#if !allDay}
<input type="time" class="bg-transparent outline-hidden" bind:value={startTime} /> <input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startTime} />
<span class="text-gray-300 dark:text-gray-600">–</span> <span class="text-gray-300 dark:text-gray-600">–</span>
<input type="time" class="bg-transparent outline-hidden" bind:value={endTime} /> <input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={endTime} />
{/if} {/if}
<label class="flex items-center gap-1.5 cursor-pointer text-xs text-gray-400 ml-auto"> <label class="flex items-center gap-1.5 cursor-pointer text-xs text-gray-400 ml-auto">
<input type="checkbox" class="accent-blue-500" bind:checked={allDay} /> <input type="checkbox" class="accent-blue-500" bind:checked={allDay} />
@@ -175,7 +175,7 @@
{:else if variables[variable]?.type === 'date'} {:else if variables[variable]?.type === 'date'}
<input <input
type="date" type="date"
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30" class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30 dark:scheme-dark"
placeholder={variables[variable]?.placeholder ?? ''} placeholder={variables[variable]?.placeholder ?? ''}
bind:value={variableValues[variable]} bind:value={variableValues[variable]}
autocomplete="off" autocomplete="off"
@@ -186,7 +186,7 @@
{:else if variables[variable]?.type === 'datetime-local'} {:else if variables[variable]?.type === 'datetime-local'}
<input <input
type="datetime-local" type="datetime-local"
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30" class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30 dark:scheme-dark"
placeholder={variables[variable]?.placeholder ?? ''} placeholder={variables[variable]?.placeholder ?? ''}
bind:value={variableValues[variable]} bind:value={variableValues[variable]}
autocomplete="off" autocomplete="off"
@@ -208,7 +208,7 @@
{:else if variables[variable]?.type === 'month'} {:else if variables[variable]?.type === 'month'}
<input <input
type="month" type="month"
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30" class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30 dark:scheme-dark"
placeholder={variables[variable]?.placeholder ?? ''} placeholder={variables[variable]?.placeholder ?? ''}
bind:value={variableValues[variable]} bind:value={variableValues[variable]}
autocomplete="off" autocomplete="off"
@@ -283,7 +283,7 @@
{:else if variables[variable]?.type === 'time'} {:else if variables[variable]?.type === 'time'}
<input <input
type="time" type="time"
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30" class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30 dark:scheme-dark"
placeholder={variables[variable]?.placeholder ?? ''} placeholder={variables[variable]?.placeholder ?? ''}
bind:value={variableValues[variable]} bind:value={variableValues[variable]}
autocomplete="off" autocomplete="off"
@@ -197,7 +197,7 @@
description={$i18n.t('Set the birth date saved with your profile.')} description={$i18n.t('Set the birth date saved with your profile.')}
> >
<input <input
class={inputClass} class="{inputClass} dark:scheme-dark"
type="date" type="date"
aria-label={$i18n.t('Birth Date')} aria-label={$i18n.t('Birth Date')}
bind:value={dateOfBirth} bind:value={dateOfBirth}