When a reusable custom content pane is added to a panel, the panel pane adds generic css classes by position (e.g. pane-1, pane-2, pane-3). These change if the pane's are re-ordered. Sometimes it is helpful to have a CSS class that refers to a specific reusable custom content pane regardless of the pane's position in the panel. This patch adds the custom content pane's machine name as an additional CSS class.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupal_was_my_past’s picture

Status: Active » Needs review

Setting status to needs review since it includes a patch for review.

merlinofchaos’s picture

Status: Needs review » Needs work

I believe it would be better if the reusable type added this via $pane->css_class rather than hardcoding it into the preprocess.

gmclelland’s picture

I would love to see this as well. Unless I'm missing it, I don't see any systematic way of styling specific custom content panes without the machine name being available as a css class? Of course you can add a class manually to each pane in the mean time.