I'm using jquery_colorpicker in the settings form for some custom Panels styles, but the color picker modal displays below the Panels modal.

Could we manually set a z-index value higher than Panels for the colorpicker to make sure that it appears above everything else?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bmcmurray’s picture

Status: Active » Needs review
FileSize
457 bytes

Attached is a patch that sets the z-index to 2000 when opening the colorpicker.

bjalford’s picture

I'm using colorbox and need to set it higher to get it to work. Tried 20000 and it displays above the colorbox but the fields eg hex aren't editable. Any ideas?

Jaypan’s picture

Issue summary: View changes
Status: Needs review » Postponed (maintainer needs more info)

I need steps to reproduce this, to be able to tell if the patch works or not.

aramboyajyan’s picture

Status: Postponed (maintainer needs more info) » Active

The issue is still present. If you want to see an example, you can install Rubik administrative theme and add any fieldset below the colorpicker field.

Here's the screenshot: http://i.imgur.com/HBqULnf.png

Let me know if you need any more info from me.

Jaypan’s picture

Status: Active » Postponed (maintainer needs more info)

add any fieldset below the colorpicker field.

How do I do this?

Jaypan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response for a month, so I'm closing this thread. If someone wants to re-open with steps on how to reproduce the issue, I'll take a look at it.

apmsooner’s picture

Status: Closed (cannot reproduce) » Active

Vertical tabs has a default z-index of 10 so for example if the jquery colorpicker field is the last field in the form ie; right above where additional settings vertical tabs would be, clicking the colorpicker field will display the color popup behind the vertical tabs thus making it non-functional. Setting .colorpicker to higher z-index value would resolve the issue.

Also... not sure what z-index panels modals would be set as by default or if the original issue is that relevant still but setting a high z-index like 1000 might be just fine.

apmsooner’s picture

Title: Set a high z-index on colorpicker so it appears above Panels modals » Set a high z-index on colorpicker so it appears above Vertical tabs and modals
Jaypan’s picture

Status: Active » Postponed (maintainer needs more info)

Still need steps to reproduce.

apmsooner’s picture

@Jaypan,

Just add a jquery colorfied in the manage fields form for a content type. Create a node of that content type. Click on the colorfield, assuming vertical tabs is enabled on your form (which by default it is in a node form), the colorpicker popup will be displayed behind the vertical tabs. If you have multiple fields in your content type, make sure colorpicker field is the last one so it renders right above the vertical tabs section.

apmsooner’s picture

Status: Postponed (maintainer needs more info) » Needs review
Jaypan’s picture

FileSize
35.21 KB
35.21 KB

I'm not seeing it:
Screenshot

Jaypan’s picture

Status: Needs review » Postponed (maintainer needs more info)

Still need directions to reproduce.

apmsooner’s picture

@jaypan, the field itself is not the issue. Its when you click it to generate the popup. The popup is what is behind the vertical tabs. I didn't test this with the admin theme but i would assume the effect is the same. If you're not seeing that still.... I guess we'll just have to let it go as i can override it in my own styles. I'm using firefox browser just fyi.

Jaypan’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Marking as outdated, as version 8.x-2.x is a major re-write, and should have dealt with any issues like this. Please re-open if the issue still stands after upgrade.