Skip to content

Commit

Permalink
fix(date-picker): adding props from calendarProps to the getCalendarP…
Browse files Browse the repository at this point in the history
…rops
  • Loading branch information
Maharshi Alpesh authored and Maharshi Alpesh committed Sep 17, 2024
1 parent bed4a59 commit dba5542
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/components/date-picker/src/use-date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ export function useDatePicker<T extends DateValue>({
...ariaCalendarProps,
...calendarProps,
classNames: {
base: slots.calendar({class: classNames?.calendar}),
content: slots.calendarContent({class: classNames?.calendarContent}),
...calendarProps.classNames,
base: slots.calendar({class: clsx(classNames?.base, calendarProps.classNames?.base)}),
content: slots.calendarContent({
class: clsx(classNames?.calendarContent, calendarProps.classNames?.content),
}),
},
};
};
Expand Down

0 comments on commit dba5542

Please sign in to comment.