I'm currently using a bootstrap template that features an accordion menu. However, I have come across a scenario on one section of the page where I do not require the items to expand and show additional text, therefore, I would like to remove the arrows indicating expansion.
Despite my efforts in exploring different options, I have yet to find a successful solution. It seems like the 'accordion-button' class is responsible for displaying the arrow icons. Does anyone have any suggestions on how to tackle this issue?
HTML:
<div class="accordion accordion-flush" id="accordionFlushExample">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree"> #1 Nettoyage à haute pression avec ou sans produit tensio-actif
</button>
</h2>
</div>
CSS:
.accordion-flush .accordion-item .accordion-button {
background-color: #FED005!important;
color: #25327B ;
}
.accordion-button:link, .accordion-button:visited, .accordion-button:hover, .accordion-button:active {
background-color: #5500C9 !important;
color:#FFF !important;
text-decoration: none !important;
border: hidden !important;
border-color: #FFF !important;
box-shadow: 0px !important;
}
.accordion-button:focus {
z-index: 3;
border-color: #FFF !important;
outline: 0;
box-shadow: none !important;
}
.accordion-button:focus {
border-color: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.accordion-button:hover, .accordion-button:active {
color: #25327B !important;
font-weight: bold;
}