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] - "base" Class Not Applying Correctly in Autocomplete Component for popoverProps #4484

Closed
kimskovhusandersen opened this issue Jan 3, 2025 · 1 comment · Fixed by #4496
Assignees
Labels
🎨 Scope : Themes / Styles Related to the themes or styles 🐛 Type: Bug Something isn't working

Comments

@kimskovhusandersen
Copy link

kimskovhusandersen commented Jan 3, 2025

NextUI Version

2.4.8

Describe the bug

The base class ("!p-0 border border-red-400") defined in the popoverProps for the Autocomplete component does not seem to apply correctly. Despite being set explicitly, the styles are not reflected in the rendered output.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Use the following configuration for the Autocomplete component:

popoverProps={{
  classNames: {
    base: "!p-0 w-full border border-red-400",
  },
}}

Render the component.
Observe that the base class styles (e.g., border-red-400) are not applied.

Expected behavior

The styles defined in the base class should apply correctly, including padding, width, and border color.

Screenshots or Videos

Screen.Recording.2025-01-03.at.10.41.22.mov
Screenshot 2025-01-03 at 10 43 30

Operating System Version

macOS

Browser

Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 Scope : Themes / Styles Related to the themes or styles 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants