nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
7.05k stars 1.3k forks source link

The color picker slider does not appear #153

Open nao-pon opened 5 years ago

nao-pon commented 5 years ago

Version

v3.5.1

Development Environment

Chrome on Windows

Current Behavior

The color picker slider does not appear. Also, if CSS is adjusted and displayed, the color gradation image is not displayed.

190222-141057

Expected Behavior

A color slider should be displayed when you click on the color field of the color picker.

NikhilGangurde commented 5 years ago

any progress on this issue I am facing the similar issue.

Image :

Screensha2019-09-12 at 12 07 35 PM

slightlynerd commented 5 years ago

I'm currently still having this issue. Is there a workaround for the time being? @junghwan-park

slightlynerd commented 5 years ago

Any hope of this getting resolved soon or is there a workaround @junghwan-park ?

slightlynerd commented 5 years ago

For anyone still experiencing this issue, I managed to resolve it like so:

.tui-image-editor-container .color-picker-control .tui-colorpicker-palette-button {
    font-size: 4px !important;
    border-radius: 50% !important;
    height: 16px;
}

You would also need to add this for the color picker container:

.tui-image-editor-container .color-picker-control {
    width: auto!important;
}

Here's the result: Screen Shot 2019-10-24 at 7 10 43 AM

kritollm commented 5 years ago

Include this in the head of your html:

<link type="text/css" href="https://uicdn.toast.com/tui-color-picker/v2.2.3/tui-color-picker.css" rel="stylesheet">

or copy the tui-color-picker.css from the tui-color-picker npm package. I am not sure if this is omitted from the documentation or whether it is intended to load automatically from the script.

nao-pon commented 4 years ago

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

medTL commented 4 years ago

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

how to make it work in angular?

gokturksigirtmac commented 4 years ago

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

How to make it work in react?

jinwoo-kim-nhn commented 4 years ago

The detail button is intentionally hidden, so it is not a bug. However, we plan to improve the detail button in the future.

smartfit-joonhok commented 4 years ago

@skyturks Just import color picker css file as well. import "tui-color-picker/dist/tui-color-picker.css";

I think this should be documented in the project's README page as well.