mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore: adjust DateInput styling
This commit is contained in:
@@ -226,7 +226,7 @@ const DateInput = ({
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'input h-12 bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
|
'input h-fit bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
|
||||||
{
|
{
|
||||||
'border-error': finalIsError,
|
'border-error': finalIsError,
|
||||||
'border-success': externalValid && !finalIsError,
|
'border-success': externalValid && !finalIsError,
|
||||||
@@ -245,7 +245,10 @@ const DateInput = ({
|
|||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
readOnly // ✅ tidak bisa diketik manual
|
readOnly // ✅ tidak bisa diketik manual
|
||||||
className={cn(
|
className={cn(
|
||||||
'grow bg-transparent cursor-pointer focus:outline-none',
|
'grow bg-transparent cursor-pointer focus:outline-none text-sm leading-tight',
|
||||||
|
{
|
||||||
|
'cursor-not-allowed': readOnly,
|
||||||
|
},
|
||||||
className?.input
|
className?.input
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
@@ -257,8 +260,8 @@ const DateInput = ({
|
|||||||
)}
|
)}
|
||||||
<Icon
|
<Icon
|
||||||
icon='heroicons:calendar-date-range'
|
icon='heroicons:calendar-date-range'
|
||||||
width={14}
|
width={15}
|
||||||
height={14}
|
height={15}
|
||||||
className='cursor-pointer text-base-content/20'
|
className='cursor-pointer text-base-content/20'
|
||||||
onClick={(e) =>
|
onClick={(e) =>
|
||||||
handleClick(e as unknown as React.MouseEvent<HTMLInputElement>)
|
handleClick(e as unknown as React.MouseEvent<HTMLInputElement>)
|
||||||
|
|||||||
Reference in New Issue
Block a user