Skip to content

Commit c6ee418

Browse files
authored
[6.x] Make the Time fieldtype icons clearer (#13125)
1 parent f64c4a8 commit c6ee418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/js/components/ui/TimePicker/TimePicker.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ const setToNow = () => {
4444
<TimeFieldInput
4545
v-else
4646
:part="item.part"
47-
class="rounded-sm px-0.25 py-0.5 focus:bg-gray-100 focus:outline-hidden data-placeholder:text-gray-600 dark:focus:bg-gray-800 dark:data-placeholder:text-gray-400"
47+
class="rounded-sm px-0.25 py-0.5 focus:bg-blue-100 focus:outline-hidden data-placeholder:text-gray-600 dark:focus:bg-blue-900 dark:data-placeholder:text-gray-400"
4848
>
4949
{{ item.value }}
5050
</TimeFieldInput>
5151
</template>
5252
</div>
5353
<div class="flex items-center gap-1">
54-
<Button v-if="clearable" @click="setToNow" type="button" class="" size="xs" v-tooltip="__('Set to now')" icon="time-now" />
55-
<Button v-if="clearable" @click="emit('update:modelValue', null)" type="button" class="" v-tooltip="__('Clear')" icon="x" size="xs" />
54+
<Button v-if="clearable" @click="setToNow" type="button" class="[&_svg]:opacity-80! dark:[&_svg]:opacity-70! hover:[&_svg]:opacity-100!" size="xs" v-tooltip="__('Set to now')" icon="time-now" />
55+
<Button v-if="clearable" @click="emit('update:modelValue', null)" type="button" class="[&_svg]:opacity-80! dark:[&_svg]:opacity-70! hover:[&_svg]:opacity-100!" v-tooltip="__('Clear')" icon="x" size="xs" />
5656
</div>
5757
</TimeFieldRoot>
5858

resources/svg/icons/time-now.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)