refactor: Update TextInput class to include "peer" for styling consistency

This commit is contained in:
kwaroran
2024-05-15 00:37:37 +09:00
parent 3c8ff1b243
commit 6eb6f4f131
3 changed files with 39 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<input
class={"border border-darkborderc focus:border-borderc rounded-md shadow-sm text-textcolor bg-transparent focus:ring-borderc focus:ring-2 focus:outline-none transition-colors duration-200" + ((className) ? (' ' + className) : '')}
class={"border border-darkborderc peer focus:border-borderc rounded-md shadow-sm text-textcolor bg-transparent focus:ring-borderc focus:ring-2 focus:outline-none transition-colors duration-200" + ((className) ? (' ' + className) : '')}
class:text-sm={size === 'sm'}
class:text-md={size === 'md'}
class:text-lg={size === 'lg'}