Files
notifications-admin/app/templates/views/organisations/add-nhs-local-organisation.html
T
Pea Tyczynska 23497c839c Turn autofocus on for search in broadcast views
Accessibility audit uncovered issues screen-reader users would
have with autofocus on Notify pages. Autofocus can lead to
confusion for those types of users and make them miss parts
of the page.

Hence, we decided that autofocus will be turned off by default
for live-search component.

We decided to keep the autofocus on for live-search text box when:
1. the page is a task page - as opposed to browsing pages, where
user wonders freely, task pages have more established flow, so
page focusing on textbox can actually be helpful.
2. page does not have actionable elements above the autofocus.
2020-09-24 13:06:51 +01:00

35 lines
1.0 KiB
HTML

{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import sticky_page_footer %}
{% from "components/textbox.html" import textbox %}
{% from "components/radios.html" import radios %}
{% from "components/live-search.html" import live_search %}
{% from "components/form.html" import form_wrapper %}
{% set page_title = "Accept our data sharing and financial agreement" %}
{% block per_page_title %}
{{ page_title }}
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
page_title,
back_link=url_for('main.request_to_go_live', service_id=current_service.id)
) }}
{% call form_wrapper() %}
<p class="govuk-body">
{{ form.organisations.label.text }}
</p>
{{ live_search(
target_selector='.multiple-choice',
show=True,
form=search_form,
label='Search by name',
autofocus=True)
}}
{{ radios(form.organisations, hide_legend=True) }}
{{ sticky_page_footer('Continue') }}
{% endcall %}
{% endblock %}