Skip to content
Snippets Groups Projects
Commit ea3072f3 authored by Bojan Živanović's avatar Bojan Živanović
Browse files

Issue #2905967 by bojanz: Add default classes to checkout pane wrappers

parent 5018c694
No related branches found
Tags 5.x-1.0-alpha2
Loading
......@@ -547,6 +547,9 @@ abstract class CheckoutFlowWithPanesBase extends CheckoutFlowBase implements Che
'#parents' => [$pane_id],
'#type' => $pane->getWrapperElement(),
'#title' => $pane->getDisplayLabel(),
'#attributes' => [
'class' => ['checkout-pane', 'checkout-pane-' . str_replace('_', '-', $pane_id)],
],
];
$form[$pane_id] = $pane->buildPaneForm($form[$pane_id], $form_state, $form);
}
......@@ -560,6 +563,9 @@ abstract class CheckoutFlowWithPanesBase extends CheckoutFlowBase implements Che
'#parents' => ['sidebar', $pane_id],
'#type' => $pane->getWrapperElement(),
'#title' => $pane->getDisplayLabel(),
'#attributes' => [
'class' => ['checkout-pane', 'checkout-pane-' . str_replace('_', '-', $pane_id)],
],
];
$form['sidebar'][$pane_id] = $pane->buildPaneForm($form['sidebar'][$pane_id], $form_state, $form);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment