colorbox icon indicating copy to clipboard operation
colorbox copied to clipboard

Make changing cboxElement class possible

Open rbran100 opened this issue 7 years ago • 2 comments

If this can be exposed/changed in some way that would be great, don't know of the scope of this. But if you end up with 2 colorbox libraries on the same page this is the only point of contact between the two as far as I can tell.

rbran100 avatar Oct 27 '17 19:10 rbran100

That sounds reasonable. The 'cbox' class prefix is saved as a variable, but that variable is privately scoped, therefor changing it requires editing the colorbox script. So that option is available to if you have access to the script.

You could also use the className option to namespace the styles you need to change.

jackmoore avatar Oct 27 '17 19:10 jackmoore

Thanks for the input, I was able to resolve the issue by removing one of the libraries in my case, but in areas where I have less control, it would have been handy to be able to change the class.

I did see the className option which is handy for theming.

rbran100 avatar Oct 27 '17 19:10 rbran100