Closed Duncank closed 1 week ago
PIN Input demo is working fine in the documentation because of
html.dark {
color-scheme: dark;
}
The main shadcn-ui
Input OTP also has transparent background for the input element
If you have dark-mode feature in your app you must use color-scheme
property to indicate color schemes of your app
Ah; thank you for that insight, that indeed works as it should. Btw: I've setup the dark mode according to the description in the shadcn docs and I did not spot this info there.
๐ Linked issue
894
โ Type of change
๐ Description
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.Stackblitz demo without this fix applied
Resolves #894
๐ธ Screenshots (if appropriate)
Before:
After:
๐ Checklist