Replies: 3 comments
-
I would probably add a const picker = new CP(source, {
fit: [0, 0], // Force `left` and `top` position to `0`
parent: source.parentNode
}); Or by changing the picker.on('fit', () => {
picker.self.style.left = 0;
picker.self.style.top = 0;
}); |
Beta Was this translation helpful? Give feedback.
-
Sounds good to me :) Another good idea would be to use class names rather than |
Beta Was this translation helpful? Give feedback.
-
Use pseudo class and element this way: .color-picker\:h::before {}
.color-picker\:h:hover {} |
Beta Was this translation helpful? Give feedback.
-
I'm attaching the the picker to the elements parent and positioning it relative to that.
I override the inline style with
.color-picker{position:absolute;top:20px!important;left:0!important;
This works fine but it would nice to have the option to turn off the dynamic inline style positioning.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Beta Was this translation helpful? Give feedback.
All reactions