Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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

diznutz priority asked 2 years 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 2 years ago


Hi!

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.

FREE CONSULTATION

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

Status

Answered

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