Open chrimesdev opened 2 years ago
GET IT FIXED LAD
@mikemonteith @mikemonteith-livi one for you?
Probably also needs a search_field_label field in the site settings for the header. https://github.com/nhsuk/wagtail-nhsuk-frontend/blob/a51512a40e29a649d373274f7a44530954b11e93/wagtailnhsukfrontend/settings/models.py#L51
Similar to the aria-label:
<label class="nhsuk-u-visually-hidden" for="search-field">
Search the {% if organisation_name %}{{ organisation_name }}{% if organisation_split_name %} {{ organisation_split_name }}{% endif %}{% else %}NHS{% endif %} website
</label>
Description
The header search form label
Search the NHS website
is hard coded into the template and cannot be customised.For example if a GP practice
X website
is using the Wagtail plugin it cannot change the search form label to beSearch the X website
.The easiest solution may be similar to the
search_action
endpoint configuration;to