Topic: How to change padding in accordion item's child button

diznutz priority asked 1 year ago

Expected behavior Have an API property available for changing the style of the MDBAccordionItem's child button. For example, buttonClassName. Child button modified from developer tools

Actual behavior There is not such option available so it's not possible to customize the button's look. Child button that is not customizable

Krzysztof Wilk staff answered 1 year ago


I added a task for that to our Trello board. For now, you can use custom CSS to achieve that, i.e.:

.accordion-item .accordion-button,
.accordion-button:not(.collapsed) {
  color: red;

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 3.0.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No