Skip to content

Colors stack in the palette #563

@knutsbyviktor

Description

@knutsbyviktor

Version 1.8.0
Downloaded locally and provided via Wro4J

The palette stacks the colors on top of eachother. After inspecting the palette I could see that the spans for the palette was nested into one another. See attached images

Faulty rendering

Faulty html

I unmified the source code and found that a </span> is missing from function paletteTemplate(p, color, className, opts) (row 119).
After modifying that row like this:
html.push('<span title="' + formattedString + '" data-color="' + tiny.toRgbString() + '" class="' + c + '"><span class="sp-thumb-inner" style="' + swatchStyle + ';" /></span></span>');

The desired output was obtained.

Correct rendering

``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions