Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The color picker slider does not appear #153

Open
nao-pon opened this issue Feb 22, 2019 · 10 comments
Open

The color picker slider does not appear #153

nao-pon opened this issue Feb 22, 2019 · 10 comments
Labels
Enhancement Enhance performance or improve usability of original features.

Comments

@nao-pon
Copy link

nao-pon commented Feb 22, 2019

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
Copy link

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

Image :

Screensha2019-09-12 at 12 07 35 PM

@slightlynerd
Copy link

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

@slightlynerd
Copy link

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

@slightlynerd
Copy link

slightlynerd commented Oct 24, 2019

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
Copy link

kritollm commented Nov 4, 2019

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
Copy link
Author

nao-pon commented Feb 25, 2020

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
Copy link

medTL commented Apr 23, 2020

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
Copy link

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 jinwoo-kim-nhn added Enhancement Enhance performance or improve usability of original features. and removed Bug labels Jun 8, 2020
@jinwoo-kim-nhn
Copy link
Contributor

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhance performance or improve usability of original features.
Projects
None yet
Development

No branches or pull requests

9 participants