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

Show empty button by using option allowEmpty and showPaletteOnly #473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rwam
Copy link

@rwam rwam commented Mar 14, 2017

If you use the option showPaletteOnly: true then there isn't an opportunity to reset the color. I've implemented a possible solution by adding another button in the palette. It looks like the screenshot below.

spectrum-empty-button

See also issues 354 and 369

@FCsean
Copy link

FCsean commented Mar 24, 2020

Found a bug.

.sp-container .sp-clear-palette-only {
    display: none;
}

Should be after

.sp-clear-enabled .sp-clear {
    display: block;
    position:absolute;
    top:0px;
    right:0;
    bottom:0;
    left:84%;
    height: 28px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants