rich-apple-5609
06/07/2023, 3:39 PMc.default.createElement("button",{className:"bpw-button ",onClick:this.handleButtonClick},this.props.label)
with this:
c.default.createElement("button",{className:"bpw-button "+this.props.label.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, ''),onClick:this.handleButtonClick},this.props.label)
This will slugify the label of the button and add it as a class to the button. This way you can style each button individually from the style file. I have tested it and it works perfectly. Would be great if you can add something like this so I don't need to hack the lite.bundle.js file every release.acceptable-gold-88171
06/07/2023, 4:04 PMcolossal-egg-20510
06/07/2023, 4:13 PMrich-apple-5609
06/07/2023, 5:19 PMfreezing-printer-49373
06/26/2023, 7:15 PM