Chartbuilder icon indicating copy to clipboard operation
Chartbuilder copied to clipboard

Z-index on color palette

Open mhkeller opened this issue 8 years ago • 2 comments

Granted the use of this many colors is obscene but the z-indexing is off if you exceed more than few rows.

screen shot 2015-07-07 at 3 02 13 pm

mhkeller avatar Jul 07 '15 21:07 mhkeller

this is more important than just aesthetics.

The swatches under the "color" and "right axis" can't be selected

yanofsky avatar Jul 09 '15 21:07 yanofsky

The z-index battle on this one is pernicious due to nested elements. As a quick fix, I've added the following style adjustments on here.

The width is specific to using the six color scales but the other adjustments (putting it above the colorpicker) could be part of a more generic solution. One big issue, though, is if you have a color picker as the first element, such as on the chartbuilder-ui demo page, and your els will go off the top of the page.

.cb-colorpicker-els
    width 260px
    top -310px
    &.active::after
        top auto
        bottom 7px

screen shot 2015-07-22 at 11 09 43 am

mhkeller avatar Jul 22 '15 15:07 mhkeller