Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hoapng opened this issue Oct 25, 2024 · 3 comments
Closed

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

hoapng opened this issue Oct 25, 2024 · 3 comments

Comments

@hoapng
Copy link

hoapng commented Oct 25, 2024

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

Copy link

linear bot commented Oct 25, 2024

@hoapng
Copy link
Author

hoapng commented Oct 25, 2024

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
Copy link
Member

fixed in #3773. please wait for next release or use canary branch if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants