How to change padding in accordion item's child button


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

diznutz pro premium 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
  • User: Pro
  • 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