-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
ListBox cannot override padding
#1254
Comments
The same is true for Steps To Reproduce
If we want this to be separated to its' own issue, please do tell. |
@coryvirok There's a bit of and overlap for setting the Listbox parent padding and the padding padding down to the child. We do need to give this another review. @Zantonius not quite the same. With |
@coryvirok ok this one ended up being a very simple fix. Essentially we have base classes we apply to each element within the component template, then we append the prop classes immediately following. Looks like we forgot to nix the base padding for this so both the base + prop padding were being added. I've removed this the base padding in favor of the prop now, so this should now behave as expected. The fix is merged into our |
Current Behavior
The docs say that you can provide ListBox and ListBoxItem with custom padding. However, the built-in padding,
px-4 py-2
is always included first. Which means the only way to override is to use a!px-2 !py-2
for e.g.Steps To Reproduce
Create a new ListBox with custom padding:
You'll notice that the rendered HTML contains both built in and "overridden" values:
e.g.
<label class="listbox-item px-4 py-2 cursor-pointer rounded-token px-2 py-2 hover:variant-soft " ...
Anything else?
No response
The text was updated successfully, but these errors were encountered: