mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: adjust DateInput styling
This commit is contained in:
@@ -204,17 +204,12 @@ const DateInput = ({
|
||||
const finalErrorMessage = internalError || externalErrorMessage;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'w-full flex flex-col gap-2 text-start',
|
||||
className?.wrapper
|
||||
)}
|
||||
>
|
||||
<div className={cn('w-full flex flex-col text-start', className?.wrapper)}>
|
||||
{label && (
|
||||
<label
|
||||
htmlFor={name}
|
||||
className={cn(
|
||||
'w-full text-sm font-normal leading-5',
|
||||
'w-full py-2 text-xs font-semibold leading-5',
|
||||
{ 'text-error': finalIsError },
|
||||
className?.label
|
||||
)}
|
||||
@@ -272,10 +267,10 @@ const DateInput = ({
|
||||
</div>
|
||||
|
||||
{!finalIsError && bottomLabel && (
|
||||
<p className='w-full text-sm opacity-60'>{bottomLabel}</p>
|
||||
<p className='w-full mt-1.5 text-xs opacity-60'>{bottomLabel}</p>
|
||||
)}
|
||||
{finalIsError && finalErrorMessage && (
|
||||
<p className='w-full text-sm text-error'>{finalErrorMessage}</p>
|
||||
<p className='w-full mt-1.5 text-xs text-error'>{finalErrorMessage}</p>
|
||||
)}
|
||||
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user