Fix icon color picker rendering issue

This commit is contained in:
Brian Miyaji
2019-08-22 10:16:00 +10:00
parent 76281155f8
commit 30fd474554
3 changed files with 4 additions and 4 deletions

View File

@@ -337,7 +337,7 @@
margin: 3px 0;
}
.sp-icon-color-box input[type=text] {
.sp-color-box-for-icon input[type=text] {
color: #fff;
}

View File

@@ -23,14 +23,14 @@ jQuery(document).ready(function($){
})
.click(function(){
$('.iris-picker').hide();
$(this).closest('.sp-icon-color-box, td').find('.iris-picker').show();
$(this).closest('.sp-color-box-for-icon, td').find('.iris-picker').show();
});
$('body').click(function() {
$('.iris-picker').hide();
});
$('.sp-icon-color-box, .colorpick').click(function(event){
$('.sp-color-box-for-icon, .colorpick').click(function(event){
event.stopPropagation();
});