Add background-color to PinInput

Adds the `bg-background` class to the Pin-input input fields, which styles it similar to regular Input components, and which fixes the background color in dark mode.
This commit is contained in:
Duncan Krebbers 2024-11-12 17:59:18 +01:00 committed by GitHub
parent b7ef4653f7
commit 5d5afa1101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,5 +14,5 @@ const forwardedProps = useForwardProps(delegatedProps)
</script>
<template>
<PinInputInput v-bind="forwardedProps" :class="cn('relative text-center focus:outline-none focus:ring-2 focus:ring-ring focus:relative focus:z-10 flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md', props.class)" />
<PinInputInput v-bind="forwardedProps" :class="cn('relative text-center focus:outline-none focus:ring-2 focus:ring-ring focus:relative focus:z-10 flex h-10 w-10 items-center justify-center border-y border-r border-input bg-background text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md', props.class)" />
</template>