Update accordion macro
This commit is contained in:
parent
266cc96fb3
commit
b1a478d3c1
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ the accordion item.
|
|||
|
||||
Example usage:
|
||||
(accordion () \"Title 1\" \"Content 1\" \"Title 2\" \"Content 2\")"
|
||||
(let ((class (if flush "accordion accordion-flush" "accordion")))
|
||||
(let ((class (concatenate 'string "shadow " (if flush "accordion accordion-flush" "accordion"))))
|
||||
`(spinneret:with-html
|
||||
(:div :class ,class
|
||||
:id ,id
|
||||
|
@ -35,7 +35,7 @@ Example usage:
|
|||
for collapse-class = (concatenate 'string "accordion-collapse collapse" (when (= counter 1) " show"))
|
||||
for btn-class = (concatenate 'string "accordion-button" (when (not (= counter 1)) " collapsed"))
|
||||
collect `(:div :class "accordion-item"
|
||||
(:h2 :class "accordion-header"
|
||||
(:div :class "accordion-header"
|
||||
(:button :class ,btn-class
|
||||
:type "button"
|
||||
:data-bs-toggle "collapse"
|
||||
|
|
Loading…
Add table
Reference in a new issue