Skip to content

Commit

Permalink
fix: invalid classname and current date indicator
Browse files Browse the repository at this point in the history
showing when showOutsideDays is false
  • Loading branch information
jaieds committed Dec 30, 2024
1 parent 454ca36 commit f8a39cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/datepicker/datepicker-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const DatePickerComponent = ( {

// Common class for disabled outside days
const disabledOutsideClass =
'bg-transperant opacity-50 text-text-disabled cursor-auto';
'bg-transparent opacity-50 text-text-disabled cursor-auto';

const buttonClasses = cn(
'h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm',
Expand Down Expand Up @@ -391,7 +391,7 @@ const DatePickerComponent = ( {
>
{ ( ! showOutsideDates || ( isPartOfRange && shouldShowDay ) ) &&
format( day.date, 'd' ) }
{ isToday && (
{ isToday && shouldShowDay && (
<span className="absolute h-1 w-1 bg-background-brand rounded-full bottom-1"></span>
) }
</button>
Expand Down

0 comments on commit f8a39cc

Please sign in to comment.