- Issue created by @joel_osc
- Status changed to Needs review
11 months ago 8:40pm 30 January 2024 - Status changed to Fixed
11 months ago 9:37pm 31 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.
When using the SearchApiBlockform from wxt_library the search block form is missing the label attribute. The markup looks like this:
<div class="form-item js-form-item form-type-search js-form-type-search form-item-search-api-fulltext js-form-item-search-api-fulltext form-no-label form-group">
<input data-drupal-selector="wb-srch-q" class="form-search form-control" placeholder="Search website" type="search" id="wb-srch-q" name="search_api_fulltext" value="" size="27" maxlength="128">
</div>
Instead of:
<div class="form-item js-form-item form-type-search js-form-type-search form-item-search-api-fulltext js-form-item-search-api-fulltext form-no-label form-group">
<label for="wb-srch-q" class="control-label sr-only">Search</label>
<input data-drupal-selector="wb-srch-q" class="form-search form-control" placeholder="Search website" type="search" id="wb-srch-q" name="search_api_fulltext" value="" size="27" maxlength="128">
</div>
Just install wxt and add the SearchApiBlock.
Add the label exactly as is done in SearchBlockForm.php in wxt_library.
None.
None.
None.
Fixed
5.2
WxT Library
Automatically closed - issue fixed for 2 weeks with no activity.