Closed nagyt234 closed 1 year ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Fixed issues | #225 |
Enhancement of the Accordion Class
The Accordion class now has a new property: $headerToggleOptions
. This allows for the customization of HTML options for the header toggle tag, providing more flexibility for users. The default options are a 'h5' tag and a 'mb-0' class.
Update to the renderItem
Method
We've updated how the renderItem
method in Accordion class works. It now uses the $headerToggleOptions
property to create the header toggle tag in every item. This means each part of the list can have its own unique look and feel, further improving the class's flexibility.
Testing of New Property and Functionality
A new test, testHeaderToggleTag
, has been added to ensure that the $headerToggleOptions
property and the updated renderItem
method are working as expected. This provides added assurance that these additions to the class are tested and validated, ensuring smooth, reliable performance for users.
Please add a changelog line, thanks.
Please add a changelog line, thanks.
I did.
Thank you.