Skip to content
Snippets Groups Projects
Commit 4a89f916 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4729: cleaning up site search form to have no parent form item divs

parent a71cd3a6
No related branches found
No related tags found
1 merge request!239ISTWCMS 4729 ebremner search form
...@@ -43,6 +43,23 @@ class UwSearchForm extends FormBase { ...@@ -43,6 +43,23 @@ class UwSearchForm extends FormBase {
'uw-input--checkboxform', 'uw-input--checkboxform',
], ],
], ],
'#theme_wrappers' => [],
];
// This is the label that is used for the "phone" view on
// the site search. We need to use form element label here
// by itself, since we use theme_wrappers as an empty array
// above in the input, which would normally give us the form
// label.
$form['label'] = [
'#theme' => 'form_element_label',
'#title' => $this->t('<span class="uw-search--checkboxlabel--labeltext"></span>'),
'#title_display' => 'after',
'#required' => FALSE,
'#id' => 'edit-opentray',
'#attributes' => [
'class' => ['uw-search--checkboxlabel'],
],
]; ];
// The search text. // The search text.
......
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