Skip to content

Commit

Permalink
fix(date-picker): keep date picker style consistent for different var…
Browse files Browse the repository at this point in the history
…iants (heroui-inc#2908)
  • Loading branch information
wingkwong authored and Gaic4o committed May 22, 2024
1 parent f869e38 commit 2199400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-trains-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/date-picker": patch
---

keep date picker style consistent for different variants (#2901)
8 changes: 1 addition & 7 deletions packages/components/date-picker/src/use-date-picker-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,7 @@ export function useDatePickerBase<T extends DateValue>(originalProps: UseDatePic
isDateUnavailable,
showMonthAndYearPickers,
onHeaderExpandedChange: setIsCalendarHeaderExpanded,
color:
(originalProps.variant === "bordered" || originalProps.variant === "underlined") &&
isDefaultColor
? "foreground"
: isDefaultColor
? "primary"
: originalProps.color,
color: isDefaultColor ? "primary" : originalProps.color,
disableAnimation,
},
userCalendarProps,
Expand Down

0 comments on commit 2199400

Please sign in to comment.