- πΊπΈUnited States smustgrave
Going to take the suggestion in #9 :) if wrong assumption please re-open.
Discovered when working with #3174107: Add additional testing coverage for Olivero β .
The theme assumes $form['actions']
will have a button keyed submit
. That may not be the key name of the submit button and the class is not attached. As seen in olivero.theme:
/**
* Implements hook_form_alter() for adding classes and placeholder text to the search forms.
*/
function olivero_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (isset($form['actions']['submit']) && (count($form['actions'])) <= 2) {
$form['actions']['submit']['#attributes']['class'][] = 'button--primary';
}
}
Given
'actions' => [
'continue' => [
'#type' => 'submit',
],
],
You receive
'actions' => [
'continue' => [
'#type' => 'submit',
],
'submit' => [
'#attributes' => [
'class' => ['button--primary']
],
]
]
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Going to take the suggestion in #9 :) if wrong assumption please re-open.