feat: easily allow setting accordion and collapsible heights to arbitrary values#38
feat: easily allow setting accordion and collapsible heights to arbitrary values#38Wombosvideo wants to merge 3 commits into
Conversation
|
@Abdelrahmanaman
instead of
because the content height is usually the same for both animations. I've also decided to add the So, what this means for the example you gave in #36: - animate-collapsible-down-[--kb-accordion-content-height]
+ accordion-h-(--kb-accordion-content-height)(But you won't need this, because #37 adds first-level support for Kobalte variables. Future releases might deprecate these variables though) I hope this implementation works for you and again, thanks for the suggestion! |
|
@copilot Fix the merge conflicts |
|
@Wombosvideo I've opened a new pull request, #74, to work on those changes. Once the pull request is ready, I'll request review from you. |
Description
Adds
accordion-h-*andcollapsible-h-*utilities to apply the content height CSS variable.Allows either
numbervalues (in spacing units) or[*]any other value. This makes it possible to set the accordion height usingFixes #36.