nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.81k stars 1.49k forks source link

[BUG] - calendarProps - classNames doesn't work #3941

Closed hoapng closed 1 hour ago

hoapng commented 2 hours ago

NextUI Version

2.4.8

Describe the bug

<DatePicker
        ...
        calendarProps={{
          classNames: {
            gridBody: "bg-white",
          },
        }}
/>
<DateRangePicker
        ...
        calendarProps={{
          classNames: {
            gridBody: "bg-white",
          },
        }}
/>

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

I have copied calendarProps-classNames from DateRangePicker to DatePicker, why it works only with DateRangePicker. When I inspected to check, I realized calendarProps in DatePicker doesn't work with any classNames. How can I fix this. Please tell me, thanks.

Expected behavior

I expected how to fix this quickly. Please help me, thanks

Screenshots or Videos

No response

Operating System Version

Win 11

Browser

Chrome

linear[bot] commented 2 hours ago

ENG-1494 [BUG] - calendarProps - classNames doesn't work

hoapng commented 2 hours ago
table tbody[data-slot="grid-body"] {
  background-color: #ffffff;
}

i imported 'style.css' and it works, but i hope this bug will be fixed soon.

wingkwong commented 1 hour ago

fixed in https://github.com/nextui-org/nextui/pull/3773. please wait for next release or use canary branch if necessary.