10up / component-library

A library of barebones front-end components built with WordPress and accessibility in mind.
https://baseline.10up.com/
MIT License
59 stars 11 forks source link

Allow different class names #16

Open nicholasio opened 3 years ago

nicholasio commented 3 years ago

Currently, we need to use accordion-header, accordion-content, accordion-label classes.

It would be nice to allow the user the use other class names and pass those class names to the plugin via options maybe?

Caveat is they would need to use their own CSS.

Firestorm980 commented 3 years ago

@nicholasio The PR linked adds settings for custom classes to the options. I wonder if we should change up the CSS so we can still have working accordions with custom classes by targeting them another way (data- maybe)?