Skip to content

Show empty button by using option allowEmpty and showPaletteOnly#473

Open
rwam wants to merge 1 commit intobgrins:masterfrom
rwam:master
Open

Show empty button by using option allowEmpty and showPaletteOnly#473
rwam wants to merge 1 commit intobgrins:masterfrom
rwam:master

Conversation

@rwam
Copy link
Copy Markdown

@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
Copy Markdown

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