Skip to content

Commit

Permalink
accordion button bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cbadusch committed Nov 4, 2024
1 parent 635cd88 commit f73e471
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion scss/lexa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2622,10 +2622,12 @@ box-shadow: 0px 12px 30px 0px #0000000D;

.wbfaqcollapsebutton .wbfaqaccordionbuttonm {
display: inline-block;
line-height: 30px;
}

.wbfaqcollapsebutton .wbfaqaccordionbuttonp {
display: none;
line-height: 30px;
}

.wbfaqcollapsebutton.collapsed .wbfaqaccordionbuttonp {
Expand Down Expand Up @@ -2660,4 +2662,8 @@ box-shadow: 0px 12px 30px 0px #0000000D;
}
.wbfaqbreadcrumb.wb_faq-active {
color:#0063A6;
}
}

.wbfaqaccordion {
list-style: none;
}
4 changes: 2 additions & 2 deletions templates/local_wb_faq/entry.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<div class="card">
<div class="card-header p-0 border-0">
<h5 class="accordion-header m-0" id="heading-{{id}}-{{uid}}">
<button class="btn btn-link btn-block text-left collapsed wbfaqcollapsebutton d-flex lexa-h4 text-dark" type="button" data-toggle="faqcollapse" data-target="#collapse-{{id}}-{{uid}}" aria-expanded="{{#open}}true{{/open}}{{^open}}false{{/open}}" aria-controls="collapse-{{id}}-{{uid}}">
<button class="btn btn-link btn-block text-left collapsed wbfaqcollapsebutton d-flex lexa-h4 text-dark" type="button" data-toggle="collapse" data-target="#collapse-{{id}}-{{uid}}" aria-expanded="{{#open}}true{{/open}}{{^open}}false{{/open}}" aria-controls="collapse-{{id}}-{{uid}}">
{{title}}
{{^canedit}}
<i class="fa-solid fa-plus wbfaqaccordionbuttonp ml-auto"></i>
<i class="fa-solid fa-plus wbfaqaccordionbuttonp ml-auto" ></i>
<i class="fa-solid fa-minus wbfaqaccordionbuttonm ml-auto"></i>
{{/canedit}}
{{#canedit}}
Expand Down

0 comments on commit f73e471

Please sign in to comment.