mdbassit / Coloris

A lightweight and elegant JavaScript color picker. Written in vanilla ES6, no dependencies. Accessible.
https://coloris.js.org/examples.html
MIT License
443 stars 58 forks source link

Possibility to change z-index in option #157

Closed itajackass closed 1 month ago

itajackass commented 1 month ago

Hi, nice plugin!! But there is a problem is the plugin is on a modal element. Cause z-index is set to 1000, in some customized theme, the picker is covered by modal. I suggest an option to set dinamically z-index based on needed. Thanks

mdbassit commented 1 month ago

Thanks for the kind words. I think what you need is to set the parent option to the model dialogue. See https://github.com/mdbassit/Coloris/issues/100

itajackass commented 1 month ago

Ok i've seen now! Worked perfectly, thanks